MapperUtils Methods |
The MapperUtils type exposes the following members.
Name | Description | |
---|---|---|
addFilePathDBFieldsToUpload |
Assign the field to require a file to be slurped into the database. Only for FilePath fields and only for those with FileInDB
| |
ApplyFileHandlingAttrs |
Apply the IE6/https/attachment-download hack (RequiredIE6FileDownloadHack(IField)), if appropriate.
| |
ApproxWidthInPixels |
Estimate the width of the string, in pixels, for the specified point size.
| |
BuildReportUrl |
Build a URL for a report.
| |
CloneAsDetail |
Clone the provided mapper, filter on the specified RowKey, requery the mapper, and position to the first row.
| |
ControlHasState |
Determine if a control has state vs. one that is stateless. Stateless controls
need to have their values set from data and never from the page.
| |
DeleteRecord |
Delete a record by cloning the provided mapper filtered on the specified RowKey and deleting.
Since a clone is used the original mapper is not affected.
| |
ExpressionFlags |
See ExpressionParser.ExtractFlags().
| |
ExpressionParse(String, String) |
See ExpressionParser.Parse().
| |
ExpressionParse(String, String, String) |
See ExpressionParser.Parse().
| |
FieldRootControl(WebControl) |
Retrieve the root control for the specified control. Generally the root control is simply the
Textbox control, Select control, etc. However, in some cases the control is wrapped (e.g. RadioButtons)
in which case the control returned is the outermost wrapper.
| |
FieldRootControl(IField) |
Retrieve the root control for the field. Generally the root control is simply the field's
Textbox control, Select control, etc. However, in some cases the control is wrapped (e.g. RadioButtons)
in which case the control returned is the outermost wrapper.
| |
FireFieldButtonClick |
Fire a FieldButtonClick event, assuming the corresonding field is found, visible, and not locked.
| |
GenDestFileName |
Generate a destination filename for a FilePath cell field.
| |
GetEmailFieldFromMapper |
Find any EmailAddr field in the specified mapper. If multiple EmailAddr fields are found, return
the first one and DevLog a warning that there are multiple addresses.
| |
GetPageElement(IMapper) |
Gets the PageElementInfo for the IMapper, if available.
Note that this is simply a wrapper around the GetPageElement command.
| |
GetPageElement(TypedMapper) |
Gets the PageElementInfo for the TypedMapper, if available.
Note that this is simply a wrapper around the GetPageElement command.
| |
IsCellAttrSet |
Determines if the specified CellTypeAttribute is set on the specified field.
Since a CellTypeAttribute is valid only for a particular CellType (since the
bits are reused for other CellTypes), both the CellType and CellTypeAttributes
are checked.
| |
IsControlAttrSet(WebControl, String) |
Determine if the specified attribute is set on the WebControl.
| |
IsControlAttrSet(WebControl, String, String) |
Determine if the specified attribute is set to other than the specified value on the WebControl.
| |
IsFileCell |
Is the specified cell type one that represents a stored file when populated?
| |
IsPageElement(IMapper, String, String) |
Determines if the IMapper is being rendered for the specified MOP and
Name of the PageElementInfo.
This method is safe to use even if the mapper is null, has no MOP, and/or has no
PageElementInfo associated.
| |
IsPageElement(TypedMapper, String, String) |
Determines if the TypedMapper is being rendered for the specified MOP and
Name of the PageElementInfo.
This method is safe to use even if the mapper is null, has no MOP, and/or has no
PageElementInfo associated.
| |
LockControl |
Lock the specified control. Note that the manner in which the locking is
performed is control-type-specific. Use UnlockControl() to undo this operation.
| |
MonitoredFieldsDirty |
Compares the set of dirty fields in the provided mapper with a semi-colon delimited list of fields to monitor.
| |
ReferencesUnavailableMOP |
Determines if the specified URL has a MOP specified (mop parameter) with a value that references a page not available in the current session.
| |
ReportHasPermission |
Implements a metadata only way to ensure that the user of this report has permissions to actually see it.
| |
RequiredIE6FileDownloadHack |
Determine if we need the IE6/https/attachment-download hack.
| |
ResolveExpression |
Resolve the specified field expression using ExpressionResolve mapper command.
See ExpressionParser for more information about field expressions.
Use ExpressionEscape to escape apparent field references in a string.
Note that although, for historical reasons, the ExpressionResolve
command will throw an error if the expression contains an unresolvable field or other syntax error,
this method DOES NOT throw by default because it adds the DoNotThrow flag
UNLESS the ThrowOnAnomaly flag is set.
| |
ResolveReferences |
See ExpressionParser.ResolveReferences().
| |
ResponsiveListBreakpoints |
Determines whether or not a list pivot breakpoint was specified, and if it was, constructs lists of classes
to apply to elements that should be hidden when the list is pivoted vs. those that should be hidden when un-pivoted.
| |
ScreenReaderCheckboxLabel |
Generate an HTML Label element appropriate for use in Screen Readers for the visually impaired
where the Label should not show (e.g. a row selector checkbox in a datasheet). The
| |
SecureIE6 |
Determine if running site is HTTPS and if browser is IE6 or older.
| |
SetupEmailMapper(IAppContext, String, String, Template, Boolean, String, String, IField, IField) |
Set up a mapper (includinig requerying) for emailing.
| |
SetupEmailMapper(IAppContext, String, String, Template, Boolean, String, String, IField, IField, SavedFilterApplyOptions) |
Set up a mapper (includinig requerying) for emailing.
| |
SetupEmailMapper(IAppContext, String, String, String, Template, Boolean, String, String, IField, IField) |
Set up a mapper (includinig requerying) for emailing.
| |
SetupEmailMapper(IAppContext, String, String, String, Template, Boolean, String, String, IField, IField, SavedFilterApplyOptions) |
Set up a mapper (includinig requerying) for emailing.
| |
SetupEmailMapper(IAppContext, String, String, String, Template, Boolean, String, String, IField, IField, SavedFilterApplyOptions, Boolean) |
Set up a mapper (includinig requerying) for emailing.
| |
SetupEmailMapper(IAppContext, String, String, String, Template, Boolean, String, String, IField, IField, SavedFilterApplyOptions, Boolean, Int32) |
Set up a mapper (includinig requerying) for emailing.
| |
SetUpFilterWidget |
Set up a filter widget.
| |
SetUpResponsiveTableDataCell |
Sets up a data cell (TD) for use in a responsive table supporting breakpoint pivoting.
| |
TelerikSetupPrerequisites |
Set up prerequisites for the Telerik Rad controls.
| |
TogglerItemCaption |
Gets the item description for use as a toggler caption.
| |
UnlockControl |
Lock the specified control. Note that the manner in which the locking is
performed is control-type-specific. This is the inverse of LockControl.
| |
UseInplaceDrilldown |
Feature helper function for how to handle datasheet drilldowns where the datasheet has PopupDetail set.
| |
UseInplaceFind |
Feature helper function for the PopupManagement feature InPlaceFind setting.
| |
UseInplaceNew |
Feature helper function for the PopupManagement feature InPlaceNew setting.
|