MapperDatasheet Methods |
The MapperDatasheet type exposes the following members.
Name | Description | |
---|---|---|
AddField |
Adds a field to the Fields collection
(Inherited from MapperKernel.) | |
AddMapperCommand |
Used by mapper itself to add mapper commands so that we can tell if a newly added command
was added by the mapper or externally.
(Inherited from MapperKernel.) | |
AddRemoveableMapperFilters |
Add removeable mapper filters to the Filters menu.
| |
ApplyCommandFilter |
Applies or removes the specified user filter command if that command exists and is suitable for the specified MOP.
| |
ApplyContext(Boolean, Boolean) |
Apply the MapperDatasheet persistent context.
| |
ApplyContext(Boolean, Boolean, Boolean) |
Apply the MapperDatasheet persistent context.
| |
ApplyViewState |
Called when the MapperExecCmd.ApplyViewState command is invoked.
(Overrides MapperKernelApplyViewState.) | |
BindElements |
Bind the mapper's fields to the controls in the specified control collection. Controls
are bound by IField.ControlName which by default is the same as IField.Key.
(Overrides MapperKernelBindElements(ControlCollection, Boolean).) | |
BindPage(Page, Boolean) |
Binds the mapper to the current .Net Page.
(Inherited from MapperKernel.) | |
BindPage(Page, Control, Boolean) |
Binds the mapper to the current .Net Page.
(Inherited from MapperKernel.) | |
BindPage(Page, Control, Boolean, MapperBindFlags) |
Binds the mapper to the current .Net Page.
(Inherited from MapperKernel.) | |
BuildClientExpression |
Build a javasript expression for the row calculation for the specified field.
(Inherited from MapperKernel.) | |
BuildQueryFilter |
Build the filter for the operational data query.
(Inherited from MapperKernel.) | |
BuildQueryFrom |
Build the FROM clause for the operational data query.
(Inherited from MapperKernel.) | |
BuildTableInfo |
Builds a representation of the physical table(s) underlying a mapper including the SQL
for each table required to execute the specified operation.
(Inherited from MapperKernel.) | |
BulkDeleteBegin |
Initiate a bulk delete using the mapper and fire its corresponding extension event.
The object controlling the bulk operation typically makes this call before performing the
delete operations in a loop using the same mapper instance.
The bulkContext will be provided in the BulkContext parameter for all mapper events performed
during the bulk operation. If a null bulkContext object is provided, the method will instantiate
one for you. If you want a custom bulkContext, you should derive from the base EventBulkContext
object and provide an instance of your derived class.
If BulkDeleteBegin is called, you should call BulkDeleteEnd when the operation completes.
Note that the MapperBulkBeforeDelete event is fired from within this method.
(Inherited from MapperKernel.) | |
BulkDeleteEnd |
Complete a bulk delete operation that was initiated with a call to BulkDeleteBegin(EventBulkContext).
This method will delete the mapper's internal bulk context object set by that call.
This method should be called if, and only if, BulkDeleteBegin was called.
Note that the MapperBulkAfterDelete event is fired from within this method.
(Inherited from MapperKernel.) | |
BulkInsertBegin |
Initiate a bulk insert using the mapper and fire its corresponding extension event.
The object controlling the bulk operation typically makes this call before performing the
insert operations in a loop using the same mapper instance.
The bulkContext will be provided in the BulkContext parameter for all mapper events performed
during the bulk operation. If a null bulkContext object is provided, the method will instantiate
one for you. If you want a custom bulkContext, you should derive from the base EventBulkContext
object and provide an instance of your derived class.
If BulkInsertBegin is called, you should call BulkInsertEnd when the operation completes.
(Inherited from MapperKernel.) | |
BulkInsertEnd |
Complete a bulk insert operation that was initiated with a call to BulkInsertBegin(EventBulkContext).
This method will delete the mapper's internal bulk context object set by that call.
This method should be called if, and only if, BulkInsertBegin was called.
(Inherited from MapperKernel.) | |
BulkUpdateBegin |
Initiate a bulk update using the mapper and fire its corresponding extension event.
The object controlling the bulk operation typically makes this call before performing the
update operations in a loop using the same mapper instance.
The bulkContext will be provided in the BulkContext parameter for all mapper events performed
during the bulk operation. If a null bulkContext object is provided, the method will instantiate
one for you. If you want a custom bulkContext, you should derive from the base EventBulkContext
object and provide an instance of your derived class.
If BulkUpdateBegin is called, you should call BulkUpdateEnd when the operation completes.
(Inherited from MapperKernel.) | |
BulkUpdateEnd |
Complete a bulk update operation that was initiated with a call to BulkUpdateBegin(EventBulkContext).
This method will delete the mapper's internal bulk context object set by that call.
This method should be called if, and only if, BulkUpdateBegin was called.
(Inherited from MapperKernel.) | |
CanDelete |
Determine if UI should allow record delete's for this mapper.
| |
CanDrilldown |
Determine if mapper supports user drilldown to detail record.
| |
CanEdit |
Determines whether or not the datasheet can support editing.
| |
CanEditInList |
Determine if UI should allow record editing for this mapper via the EditInList mechanism.
| |
CanFilter |
Does this field support filtering (in this mapper)?
| |
CanFreezeColumns |
Determines if datasheet left-side column freezing is supported.
| |
CanFreezeHeader |
Determines if datasheet header row freezing is supported.
| |
CanGroup |
Is Grouping allowed for the entire datasheet.
| |
CanImmediateEdit |
Determines wether the datasheet can support editing via the ImmediateSave mechanism.
| |
CanPin |
Determine if pinning items is supported.
| |
CanResize |
Does this mapper support user column resizing?
| |
CanResize(IField) |
Does this field support user column resizing?
| |
CanSelect |
Determine if mapper supports record selection (i.e. checkbox row selectors).
| |
CanSort |
Does this mapper support user sorting?
| |
Class |
Get the Css Class for this row.
| |
ClearAllUserFilters |
Clear all forms user user-specified filtering.
(Overrides MapperKernelClearAllUserFilters.) | |
ClearDatasheetPreferences |
Clear the datasheet preferences for the current user for a single MOP or all MOPs.
The primary purpose of this method is to consolidate code that allows the user to clear
their datasheet filtering/sorting/grouping preferences when these preferences result in
a list page being "stuck" with an invalid or timeout-producing query.
| |
ClearSortAndFilterPreferences |
Clear the user's sort and filter preference for this page.
| |
Clone(IMapper, MapperCloneFlags) |
Create a clone of the mapper. Unless otherwise specified by modifier flags,
the clone will be requeried using the same filters and sort as the original mapper.
(Inherited from MapperKernel.) | |
Clone(IMapper, MapperCloneFlags, Flavors) |
Create a clone of the mapper. Unless otherwise specified by modifier flags,
the clone will be requeried using the same filters and sort as the original mapper.
(Inherited from MapperKernel.) | |
Close |
Closes all internal resources
(Inherited from MapperKernel.) | |
CreateBndLkup |
Creates a new control implementing the IBndLkup interface.
Currently the determination of which control to use is based on whether or not the application is Bootstrap based.
(Inherited from MapperKernel.) | |
CreateField |
Creates a new field object.
(Inherited from MapperKernel.) | |
CurrentGrouping |
Gets the current grouping sort clause. Typically this is a field key name optionally followed by
" DESC" when descending sort is in use.
(Inherited from MapperKernel.) | |
DataChanged |
A change to the underlying data has occurred and the mapper should requery accordingly.
Currently this provides a mechanism to tell the datasheet not to use its posted-back operational
data and to requery instead. Note that MapperAfterLayout is the
earliest event for which this has effect in the current datasheet life-cycle.
(Overrides MapperKernelDataChanged(ExtensionEvents).) | |
DefaultGrouping |
Gets the default grouping.
(Inherited from MapperKernel.) | |
DefaultSortClause |
Get any DefaultSort and preprocess appropriately (e.g. apply picklists).
(Inherited from MapperKernel.) | |
Delete |
Delete the current record.
Note that, following the delete and all associated mapper events, the mapper will perform a MoveNext to position
to the next record in the filter. Because of this, when deleting multiple records you should not perform a MoveNext
except on those rows you do not intend to delete.
See also DeleteAll to delete all records in the filter.
(Inherited from MapperKernel.) | |
DeleteAll |
Delete all records in the current filter.
DeleteAll is a bulk operation and as such will fire the MapperBulkBeforeDelete and
MapperBulkAfterDelete events.
Typically at the start of DeleteAll processing an EventBulkContext is established, however, you may
establish a custom bulk context by calling BulkDeleteBegin(EventBulkContext) immediately prior to calling DeleteAll.
(Inherited from MapperKernel.) | |
DeleteRelatedFiles |
Delete the file, if any, associated with each field in this row in the mapper
where the field so indicates.
(Inherited from MapperKernel.) | |
DependencyOrderFields |
Generate a list of dependency-ordered fields. The dependencies are based on property references to
other fields.
(Inherited from MapperKernel.) | |
DetailLink |
Generate a link URL to this mapper's corresponding detail for the row (specified by the
provided RowKey). By default the detail MOP is module!detail where module is the module
of the datasheet's page and detail is the literal page "detail". This can be
overridden by setting the page's "DetailTarget" property to the detail target MOP.
| |
DetermineGrouping |
Determine the grouping group and group caption for this item.
(Inherited from MapperKernel.) | |
Dispose |
Close the database connection(s)
(Inherited from MapperKernel.) | |
DoCommand |
Execute the specified command.
Typically commandName is the ID of one of the MapperCommand
items added to the mapper's Commands collection.
To invoke a command by its Command, pass a 1 in the flags parameter.
(Overrides MapperKernelDoCommand(String, Int32, Object).) | |
DoSearchWithinList |
Used to apply a full-text search (FTS) within the currently filtered list.
| |
DupeCheck |
Throws an error if saving this record would create a duplicate record
as defined by those fields marked with the DupeCheck attribute.
(Inherited from MapperKernel.) | |
EncodeText(String, Boolean) |
Encode the provided text for use in the DataGrid. The encoding may vary by target
browser. Example of this include handling truncated text in Safari, and handling hidden
columns in browsers other than IE and Firefox.
| |
EncodeText(String, Boolean, Boolean, String, Boolean) |
Encode the provided text for use in the DataGrid. The encoding may vary by target
browser. Example of this include handling truncated text in Safari, and handling hidden
columns in browsers other than IE and Firefox.
| |
Equals | (Inherited from Object.) | |
EscapeExpression |
Excape expressions to prevent possible field reference evaluation.
Currently the only escaping performed is to replace all square brackets
("[") with double square brackets. Resolving an escaped expression will
yield the original expression.
(Inherited from MapperKernel.) | |
Exec(MapperExecCmds, Enum, Object) |
The Exec method provide extended functionality for mappers.
See MapperExecCmds for the enumerated list of commands.
(Inherited from MapperKernel.) | |
Exec(MapperExecCmds, Int32, Object) |
The Exec method provide extended functionality for mappers.
See MapperExecCmds for the enumerated list of commands.
(Inherited from MapperKernel.) | |
ExtractSchemaInfo |
Extracts the data types from the query and set on the fields.
(Inherited from MapperKernel.) | |
FieldBehaviorOpts |
Get the behaviour options for the specified field.
(Inherited from MapperKernel.) | |
FieldLabel |
Obtain the appropriate label text for the specified field.
(Inherited from MapperKernel.) | |
FieldListOpts |
Get the filter list options for the specified field.
| |
FieldLog |
Devlog a field-specific entry using caller as source with mapper and field identified.
(Inherited from MapperKernel.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
FireEvent(ExtensionEvents) |
Fire a mapper extension event with empty parameters.
(Inherited from MapperKernel.) | |
FireEvent(ExtensionEvents, EAPEventArgs) |
Fire a mapper extension event with the specified event arguments.
(Inherited from MapperKernel.) | |
FireEvent(Enum, ExtensionEvents, Object, EAPEventArgs, Int32, Object) |
See IMapper.FireEvent.
(Overrides MapperKernelFireEvent(Enum, ExtensionEvents, Object, EAPEventArgs, Int32, Object).) | |
FireFieldEvent(ExtensionEvents, IField) |
Fire a field extension event for the specified field.
(Inherited from MapperKernel.) | |
FireFieldEvent(ExtensionEvents, IField, EAPEventArgs) |
Fire a field extension event for the specified field.
(Inherited from MapperKernel.) | |
FireRowCurrentEvent |
Fire the ExtensionEvents.RowCurrent event. Immediately prior to the event being
fired the mapper's DeleteLocked property is cleared and RowLocked property is cleared as are those of all the mapper's
fields.
(Inherited from MapperKernel.) | |
ForceFilter |
Set a ForceFilter for the specified MOP. A ForcedFilter set as a preference
just before navigation will cause a one-time application of the specified
filter to the page being navigated to. The filter will be set as a selected
user filter on the page. Note that the ForceFilter will expire if not used
promptly.
| |
GenDataRow |
Generate javascript for DataRow object used to access mapper values, by field key, on the client.
(Inherited from MapperKernel.) | |
GetCaption |
Gets the mapper's "caption" property per flags.
The result is exposed via IMapper.Exec(MapperExecCmds.Caption).
Note that GetCaption() is normally overridden by derived classes to render a caption
appropriate for the type of mapper.
(Overrides MapperKernelGetCaption(CaptionFlags).) | |
GetCascadedText(String, String) |
Get the specified localized text for this page. Obtaining the text is a cascading
process from most specific to least specific always using the IDS as the id:
1) Look for the text item in the PageInfo's TextItems collection,
2) If not found, look for the text item in the mapper's TextItems collection,
3) If not found, look for the item in the locale resource file,
4) If not found, use the provided defaultText.
Note that the text is resolved for field expressions. To avoid this or for additional options,
use, GetCascadedText(String, String, CascadedTextOptions).
(Inherited from MapperKernel.) | |
GetCascadedText(String, String, CascadedTextOptions) |
Get the specified localized text for this page. Obtaining the text is a cascading
process from most specific to least specific always using the IDS as the id:
1) Look for the text item in the PageInfo's TextItems collection,
2) If not found, look for the text item in the mapper's TextItems collection,
3) If not found, look for the item in the locale resource file,
4) If not found, use the provided defaultText.
(Inherited from MapperKernel.) | |
GetCascadedText(String, String, CascadedTextOptions, IField) |
Get the specified localized text for this page. Obtaining the text is a cascading
process from most specific to least specific always using the IDS as the id:
1) Look for the text item in the field's TextItems collection (if provided),
2) If not found, look for the text item in the PageInfo's TextItems collection,
3) If not found, look for the text item in the mapper's TextItems collection,
4) If not found, look for the item in the application's TextItems collection,
5) If not found, look for the item in the locale resource file,
6) If not found, use the provided defaultText.
(Inherited from MapperKernel.) | |
GetDescription |
Gets the mapper's "description" property and resolves it for field expressions. The result
is exposed via IMapper.Exec(MapperExecCmds.Description).
(Inherited from MapperKernel.) | |
GetFieldList |
Gets a semi-colon separated list of fields to render for this mapper based on various PageElementInfo properties including
FieldList, FieldListMobile, and GroupList, or on a value set programmatically via SetFieldList(String, SetFieldListOpts).
Also handles the HiddenFields property when
HiddenFields is specified. Note that the possibililty of HiddenFields complicates construction
of a field list and typically requires calling this method first to get a possible list of explicitly shown fields (where no
such list means to show all fields normally visible in the mapper) then calling the method again to get a possible list of explicitly
hidden fields and combining the results (including handling the case where fields are explicitly hidden, but not explicitly
shown).
(Inherited from MapperKernel.) | |
GetFieldText |
Get the specified localized text for the specified field. Obtaining the text is
a three step process:
1) Look for the text item specified by name in the field's TextItems collection,
2) if not found, look for the item specified by ids in the locale resource file,
3) if not found, use the provided defaultText.
(Inherited from MapperKernel.) | |
GetFilter |
Returns the complete filter.
(Inherited from MapperKernel.) | |
GetFireAndForgetCountHelper |
Returns the FireAndForgetCountHelper object for a given fire and forget sql request
(Inherited from MapperKernel.) | |
GetFrom |
Get the mapper's FROM clause (without the word FROM).
(Inherited from MapperKernel.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetIcon |
Gets a standard icon or its application-specific override if one is specified.
| |
GetKeyset |
Get an array of keys using the current filter.
(Inherited from MapperKernel.) | |
GetLink |
Build a URL to the current mapper per the specified flags.
(Inherited from MapperKernel.) | |
GetMapperText |
Get the specified localized text for this mapper. Obtaining the text is
a three step process:
1) Look for the text item specified by name in the mapper's TextItems collection,
2) if not found, look for the item specified by ids in the locale resource file,
3) if not found, use the provided defaultText.
(Inherited from MapperKernel.) | |
GetMissingRequiredFields |
Get a list of the required fields whose values are null or blank.
(Inherited from MapperKernel.) | |
GetRecordCount |
Determine the number of data records with the current filter and without any
TopN qualifier.
(Inherited from MapperKernel.) | |
GetRecordCountSafe |
Returns the RecordCount (an int) for the mapper, but catches any error that is thrown. Use this
exec command instead of RecordCount if you want to guarantee that no error is thrown.
(Inherited from MapperKernel.) | |
GetRowKeyFields |
Get the collection of fields in the mapper that comprise the row keys.
(Inherited from MapperKernel.) | |
GetSelectedKeys |
Gets an ArrayList of the currently selected keys. The base implementation is appropriate
for detail use where there is just a single current row. For other uses this method
should be overridden.
(Overrides MapperKernelGetSelectedKeys(EAPEventArgs).) | |
GetSort |
Get the sort clause. The base class implementation is overridden here to support grouping.
(Overrides MapperKernelGetSort.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GrouperField |
Get the grouper field associated with the specified field. Note that this
is overridden in MapperDatasheet because grouping there is more limited.
(Inherited from MapperKernel.) | |
HasFBF |
Determine whether or not the datasheet should have a Filter-by-Form (FBF) row.
| |
HasPermission |
Determines if the mapper has the specified ObjectPermissions for the current user.
If the object has no assigned permisions, the return value is true.
(Inherited from MapperKernel.) | |
Init(String, IAppContext) |
This method initializes the mapper.
(Inherited from MapperKernel.) | |
Init(String, IAppContext, Page) |
This method initializes the mapper.
(Inherited from MapperKernel.) | |
Init(String, IAppContext, Page, PageInfo) |
This method initializes the mapper.
(Overrides MapperKernelInit(String, IAppContext, Page, PageInfo).) | |
Insert | Insert a new record. Called by IMapper.Save when mapper is positioned on a new row. (Inherited from MapperKernel.) | |
InternalSetRecordCount |
The internal _recordCount property should always be set using this method to ensure that associated
information, specifically _recordCountError, is also set properly.
(Inherited from MapperKernel.) | |
IsAttrSet |
Determines if a particular attribute (or any of a set of attributes) is set.
Note that this is a shorthand for the expression (0 != (mapper.Attributes & attributes)) (C#)
or (0 <> (mapper.Attributes Or attributes)) (VB).
(Inherited from MapperKernel.) | |
IsCellAttrSet |
Determines if the specified CellTypeAttribute is set. Since a CellTypeAttribute is valid
only for a particular CellType (since the bits are reused for other CellTypes), we must
check both the CellType and CellTypeAttributes.
(Inherited from MapperKernel.) | |
IsConfiguredFor |
Determines if the mapper is currently configured for the specified MapperCapabilities.
(Overrides MapperKernelIsConfiguredFor(MapperCapabilities).) | |
IsGroupedInDatasheet |
Determines whether or not the specified field is grouped inside another field when presented in a datasheet.
(Inherited from MapperKernel.) | |
IsGroupingColumns |
Determine if column grouping is specified for this list. Note that even if grouping
is specified, it is possible that we will end up NOT adding a grouper header due to
various factors (e.g. user having hidden all grouped cells).
(Inherited from MapperKernel.) | |
IsOmittedWhenHidden |
Determines whether or not this field should be included in the HTML if it is hidden.
There are two aspects to this:
1) Data sensitivity - If the data is marked sensitive and it is not visible in the UI
then DO NOT put it in the HTML!
2) Performance - We don't want stuff we don't need in the HTML. However, we often
need hidden data in the HTML for use in some client-side script.
| |
IsRequestAction |
Determines whether or not the mapper is currently performing the specified HttpRequest action, else false.
This is generally based on the event target (__EVENTTARGET) from the request.
Note that most of these actions really apply only to the MapperDatasheet.
(Overrides MapperKernelIsRequestAction(MapperRequestAction).) | |
IsSelector |
Determines if the specified id is that of a datasheet selector checkbox, and, if so,
extracts the RowKey value from it.
| |
IsSensitive |
Determines whether this field is a "sensitive" field. A sensitive field should not have
its value discoverable in the HTML source if the field value is not supposed to be visible
to the user.
| |
IsUserHidden |
Determine if the specified field that should be hidden due to user preferences.
(Inherited from MapperKernel.) | |
IsVisible |
Is the specified field visible?
| |
Layout |
Layout the current mapper controls.
(Overrides MapperKernelLayout(Boolean).) | |
LayoutOnPost |
Determines whether or not a layout is required on a post-back.
(Overrides MapperKernelLayoutOnPost.) | |
Load |
Loads the mapper's meta-data from the RepositoryIDatabase.
Use Load(MapperLoadFlags) to load the mapper with specific load options.
(Overrides MapperKernelLoad.) | |
Load(MapperLoadFlags) |
Loads the mapper's meta-data from the RepositoryIDatabase.
(Inherited from MapperKernel.) | |
Load(DataTable, MapperLoadFlags) |
Sets up the mapper's meta-data per the table's schema.
If so specified the mapper will use the table's data.
(Inherited from MapperKernel.) | |
LogFieldCounts |
Register debug info about field counts including total, omitted, hidden.
(Inherited from MapperKernel.) | |
MapperLog(String, String, Exception) |
Devlog an exception using caller as source with mapper identified.
(Inherited from MapperKernel.) | |
MapperLog(String, String, String, LogMessageLevel, LogCategory) |
Devlog an entry using caller as source with mapper identified.
(Inherited from MapperKernel.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MergeSort |
Merge two sort clauses. SQL-Server will error if the same column is used more than once in an ORDER BY clause.
If that happens on a saved sort there's no way to recover without clearing user preferences. This method
will throw out any repeated columns.
(Inherited from MapperKernel.) | |
MoveBOF |
Move to the Beginning Of File (BOF). That is, position the cursor just prior to the first record in the mapper.
Note that this will throw an InvalidMapperMovement error if the mapper is
positioned on or beyond the first record and is not BiDirectional.
Use MoveFirst to position directly to the first data row.
(Inherited from MapperKernel.) | |
MoveFirst |
Move to the first record in the mapper.
Note that this will throw an InvalidMapperMovement error if the mapper is
positioned beyond the first record and is not BiDirectional.
Use MoveBOF to position just prior to the first data row.
(Inherited from MapperKernel.)You should not call MoveFirst prior to calling MoveNext to loop through records in a mapper as this will result in the first record being skipped (unless of course you want to skip the first record). Immediately following a Requery(RequeryHints) the mapper will already be positioned BOF and you can simply loop by calling MoveNext. If you are using a BiDirectional mapper and need to perform subsequent MoveNext loops, call MoveBOF to position just prior to the first data row before starting each subsequent MoveNext. | |
MoveLast |
Move to the last record in the mapper.
(Inherited from MapperKernel.) | |
MoveNew |
Move to a new record.
(Inherited from MapperKernel.) | |
MoveNew(Boolean) |
Move to a new record.
(Inherited from MapperKernel.) | |
MoveNext |
Move to the next record in the mapper.
(Inherited from MapperKernel.)You should not call MoveFirst prior to calling MoveNext to loop through records in a mapper as this will result in the first record being skipped (unless of course you want to skip the first record). Immediately following a Requery(RequeryHints) the mapper will already be positioned BOF and you can simply loop by calling MoveNext. If you are using a BiDirectional mapper and need to perform subsequent MoveNext loops, call MoveBOF to position just prior to the first data row before starting each subsequent MoveNext. | |
MovePrev |
Move to the previous record in the mapper.
Note that this will throw an InvalidMapperMovement error if the mapper is not BiDirectional.
(Inherited from MapperKernel.) | |
MoveRelative(Int32, Boolean) |
Move to a record relative to the current record.
Note that this will throw an InvalidMapperMovement error if movement is negative and the mapper is not BiDirectional.
(Inherited from MapperKernel.) | |
MoveRelative(Int32, Boolean, MoveReason) |
Move to a record relative to the current record.
Note that this will throw an InvalidMapperMovement error if movement is negative and the mapper is not BiDirectional.
(Overrides MapperKernelMoveRelative(Int32, Boolean, MoveReason).) | |
MoveTo(Int32) |
Move to the specified row number (1-based).
Note that RowCurrent events are NOT fired and data is NOT
moved through the mapper's Fields during the move. In general you should use
this method to position the mapper to the record immeditately PRIOR to the first record of
interest and then use MoveNext to iterate through one or more records of interest.
(Inherited from MapperKernel.)Remarks
Note that this will throw an InvalidMapperMovement exception if the mapper is
positioned beyond the specified record and is not BiDirectional.
Examples
For example, to implement a page size of 10 records and read data for the 2nd page, you would
first call mapper.MoveTo(10); to position to the 10th row (the last row of page 1) then
iteratively call mapper.MoveNext(); until you have read 10 records (11 through 20) or
until mapper.MoveNext();MoveNext() returns false indicating that there are no more records.
| |
MoveTo(String) |
Move to the row corresponding to the specified RowKey.
(Inherited from MapperKernel.) | |
OnItemCommand |
Called when the user invokes an ItemCommand on the DataGrid.
| |
OnPageIndexChanged |
Called when user pages through the mapper.
| |
OnSort |
Handle a sort command from the UI (user clicked on sortable column header).
| |
OpenOperationalData |
Wrap the MapperKernel::OpenOperationalData so we can do some Datasheet-specific pre- and post-query
processing. The query can be invoked in several ways, directly from the datasheet in FillTable(),
or from MapperKernel::Requery and this provides a single entry point for all cases.
Note that we let the base class do the actual query.
(Overrides MapperKernelOpenOperationalData.) | |
PerformExpressionModification |
Modify a resolved expression per the specified expression attributes.
(Inherited from MapperKernel.) | |
Permissions |
Gets the ObjectPermissions for the mapper.
(Inherited from MapperKernel.) | |
PersistColWidthPreference |
Persist the column width for the specified mapper and field.
| |
PicklistRefresh |
Refresh appropriate picklists used by fields in this mapper. Currently that means picklists
marked "volatile". And, for each picklist flushed, remove it from session cache (if cached)
and have CloneParent flush as well.
(Inherited from MapperKernel.) | |
PopulateDefaultsFromParent |
Populate the mapper's fields' default values with values from a parent mapper, if any.
(Inherited from MapperKernel.) | |
PopulateFields |
Populate field values from the mapper's internal EOFReader.
(Inherited from MapperKernel.) | |
PopulateFromDefaults |
Populate the mapper's field values from their defaults.
(Inherited from MapperKernel.) | |
PopulateFromPage |
Populate the mapper's field values by extracting values from the page's controls per their field bindings.
(Overrides MapperKernelPopulateFromPage(Page).) | |
PopulateFromSource |
Populate the mapper's field values from the mapper's data source.
(Overrides MapperKernelPopulateFromSource(MapperKernelPopulateFlags).) | |
PostRequery |
Called immediately following OpenOperationalData() to allow a derived type to perform
post-requery handling. The MapperKernel::PostRequery() has an empty implementation.
Note that if PreRequery() is called, PostRequery() is called even if PreRequery() returns
false such that OpenOperationalData() was not called.
(Overrides MapperKernelPostRequery(Boolean).) | |
PreRequery |
Called immediately before OpenOperationalData() to allow a derived type to perform
pre-requery handling. The MapperKernel::PreRequery() has an empty implementation.
(Overrides MapperKernelPreRequery.) | |
QueryAggregateData |
Query for mapper aggregate data.
(Inherited from MapperKernel.) | |
QueryOperationalData |
Query the operational data for the mapper.
(Inherited from MapperKernel.) | |
RegisterMapperLog |
Register DevLog information for logging if and only if the mapper's operational query fails.
(Inherited from MapperKernel.) | |
Requery |
Opens the operational data reader, or fills the internal DataTable, for the mapper.
(Inherited from MapperKernel.) | |
ResolveExpression(ExpressionResolutionFlags, String, String) |
Resolve an expression containing field references.
(Inherited from MapperKernel.) | |
ResolveExpression(String, DataTable, Int32, String) |
Resolve an expression possibly having field references. Since while filling the
datasheet the fields data has already passed through the fields and left them
positioned beyond the last row of interest, we need to get the field values from
the DataTable.
| |
ResolveExpression(String, DataTable, Int32, String, ExpressionResolutionFlags) |
Resolve an expression possibly having field references. Since while filling the
datasheet the fields data has already passed through the fields and left them
positioned beyond the last row of interest, we need to get the field values from
the DataTable.
| |
ResolveSortSpec |
Resolve a !Sort() expression into its constituent parts.
(Inherited from MapperKernel.) | |
ReuseGridData |
The datasheet is presenting data rows posted back in the grid from the previous request and NOT from
requerying. Try to reconstitute certain information that we would otherwise have created during the requery.
(Overrides MapperKernelReuseGridData.) | |
RowButtonClick |
Called when a user clicks a row button.
| |
RowDigest |
Generate a digest of the field values in the mapper for the current row.
(Inherited from MapperKernel.) | |
RowKeyFilter |
RowKeyFilter is used to build a filter unique for a RowKey obtained from the
RowKey property.
(Inherited from MapperKernel.) | |
RowRequery |
Requeries the current row following a save in order to pick up any trigger or calculated
column changes.
(Inherited from MapperKernel.) | |
Save |
Save the current changes. If no fields are Dirty, no save is performed.
You can use the Save(MapperSaveOptions) to override certain standard Save behaviour, the standard behaviour is typically recommended.
See Save(MapperSaveOptions) for some additional information about mapper saves.
(Inherited from MapperKernel.) | |
Save(MapperSaveOptions) |
Save the current changes allowing for specific MapperSaveOptions options. If no fields are Dirty, no save is performed.
Saves are typically performed using the Save method with default mapper Save behaviour.
(Overrides MapperKernelSave(MapperSaveOptions).) | |
SavedFilterApply(String, FilterFlags, SavedFilterApplyOptions) |
Apply the specified SavedFilter to the mapper including any full-text search value.
(Inherited from MapperKernel.) | |
SavedFilterApply(SavedFilter, FilterFlags, SavedFilterApplyOptions) |
Apply a SavedFilter to the mapper including any full-text search value.
(Inherited from MapperKernel.) | |
SaveFilter(String, FilterAttributes, SaveFilterOptions) |
Save off a NetQuarry.SavedFilter for this mapper capturing its current filter and sort state.
(Inherited from MapperKernel.) | |
SaveFilter(String, String, FilterAttributes, SaveFilterOptions) |
Save off a NetQuarry.SavedFilter for this mapper capturing its current filter and sort state.
(Inherited from MapperKernel.) | |
SelectedKeys |
SelectedKeys is used to obtain a list of the RowKeys for the rows
currently selected in the mapper. In a detail this is the current row.
In a datasheet this is the set of selected rows.
(Inherited from MapperKernel.) | |
SelectedKeys(EAPEventArgs) |
SelectedKeys is used to obtain a list of the RowKeys for the rows
currently selected in the mapper. In a detail this is the current row.
In a datasheet this is the set of selected rows.
If an EAPEventArgs object is provided from a particular mapper event that
can specify one or more RowKeys, e.g. EAPCommandEventArgs.RowKey
and one or more RowKeys are specified in that object, then the RowKey(s) from the event will be returned.
(Inherited from MapperKernel.) | |
SelectorClientID |
Generate a clientID for a row selector checkbox.
| |
Send(String, String) |
Simple way to send a message using this mapper and a template. The mapper sets up the message, the relationships,
and creates the template data appropriate from the current row before sending.
(Inherited from MapperKernel.) | |
Send(String, String, NameValueCollection) |
Simple way to send a message using this mapper and a template. The mapper sets up the message, the relationships,
and creates the template data appropriate from the current row before sending.
(Inherited from MapperKernel.) | |
Send(String, String, NameValueCollection, MessageRelationships) |
Simple way to send a message using this mapper and a template. The mapper sets up the message, the relationships,
and creates the template data appropriate from the current row before sending.
(Inherited from MapperKernel.) | |
SetDataSource |
Set the mapper's data source.
(Inherited from MapperKernel.) | |
SetFieldList |
Sets the semi-colon separated list of fields to render for this mapper. Setting this value programmatically overrides any
meta-data specified list. See GetFieldList(GetFieldListOpts).
(Inherited from MapperKernel.) | |
SetupClientExpressions |
Generates the RowCalc() javascript for the mapper.
(Inherited from MapperKernel.) | |
SetUpFromPageInfo |
Set up this mapper from a PageInfo object.
(Inherited from MapperKernel.) | |
SetValuesFromForm |
Set the mapper's field values from the current post.
(Inherited from MapperKernel.) | |
Signature |
Generates a signature string for the mapper as currently filtered and sorted.
(Inherited from MapperKernel.) | |
SortSpec |
Extract the parts of a SortSpec from a SortSpec.
(Inherited from MapperKernel.) | |
SortSpecFieldKey |
Get the field key from a SortSpec.
(Inherited from MapperKernel.) | |
StickyFBF |
Determine if sticky (persistent) FBF is supported.
| |
ToString | (Inherited from Object.) | |
TryGetRowKeys |
Try to get one or more RowKeys specifically identified in mapper event args.
(Inherited from MapperKernel.) | |
Update |
Update the current record. Called by IMapper.Save when mapper is positioned on an existing row.
(Inherited from MapperKernel.) | |
UserCanFilter |
Determine whether or not this mapper supports user filtering. Currently the datsheet supports
this using Filter-by-Form (FBF) mechanism.
(Overrides MapperKernelUserCanFilter.) | |
UserOrderedFieldList |
Retrieves the list of mapper field keys in the order they should be presented to the user in a
datasheet taking any user-customized column order into account.
Unless a explicit ColOrder property is specified on the mapper, first are fields marked
with FreezeColumn the are fields explicitly ordered by the user and then all other fields.
Note that field visibility is NOT taken into account and, in fact, the list may include keys for which no field is defined.
The list is guaranteed to not include duplicates.
(Inherited from MapperKernel.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |