TypedMapperExtensionT Methods |
The TypedMapperExtensionT generic type exposes the following members.
Name | Description | |
---|---|---|
AuditDelete |
Fired when the mapper has performed a delete operation and any auditing should be performed
in response to this event.
| |
AuditInsert |
Fired when the mapper has performed an insert operation and any auditing should be performed
in response to this event.
| |
AuditMessage |
Fired when an application wants to log a custom message to the audit trail table.
| |
AuditUpdate |
Fired when the mapper has performed an update operation and any auditing should be performed
in response to this event.
| |
Custom |
An event in the range of ExtensionEvents.CustomStart and ExtensionEvents.CustomEnd has been fired.
| |
Equals | (Inherited from Object.) | |
ExtensionCommand |
Handle extension commands.
(Inherited from MapperExtensionBase.) | |
FieldAjaxSave |
Fired when a new field value has been sent back via an AJAX call.
Detailed save information is provided in the FieldAjaxSaveEventArgs parameter.
| |
FieldAnomaly |
Fired when a field anomaly has been detected.
Detailed anomaly information is provided in the FieldAnomalyArgs parameter.
| |
FieldBuildFilter |
Fired when the field has been asked to build a filter on itself. This event provides an opportunity
for an extension to create a custom filter.
Detailed information about the filter building request is provided in the BuildFilterArgs parameter.
| |
FieldButtonClick |
Fired when the field's button has been clicked. A button click event is supported in both the detail and datasheet
versions of the mapper.
Note that when the FieldButtonClick event is received, the mapper will already have been positioned to the record
on which the click was performed. In the case of a FieldButtonClick on a datasheet, the original list mapper is
cloned, the cloned positioned to the appropriate record, and the event fired on the clone.
Examples
The following FieldButtonClick handler demonstrates how to return an error from an event and execute
a SQL statement to update a table.
public override void FieldButtonClick(IField sender, EAPEventArgs e) { if (sender.Key == "btn_enable") { IField fldID = sender.Fields["dealer_id"]; IField fldDealershipID = sender.Fields["dealership_id"]; string dealerID = EAPUtil.ToString(fldID.Value); string sql = string.Format("UPDATE dealer SET status_id = 1 WHERE dealer_id = '{0}'", dealerID); if (0 == EAPUtil.ToString(fldDealershipID.Value).Length) { e.Error("You must select a dealership for this dealer before they can be enabled."); return; } sender.Database.Execute(sql); } } In general, if the handler wants to take advantage of the FieldButtonClickArgs object, it should test the type of the e parameter before attempting to use it since that arg type is not provided in all cases. For exampe: FieldButtonClickArgs args = e as FieldButtonClickArgs; if (args != null) { args.Message = "The message!"; } | |
FieldConfirm |
Fired when an action occurs on a field that requires confirmation and the field has been configured to use
a FieldConfirm event.
Detailed request information, though typically not needed, is provided in the FieldConfirmArgs parameter.
The handler should configure the FieldConfirmArgs.MessagePopResponse as desired.
| |
FieldCreateControl |
Fired when a field with CellType of Dynamic needs to
create a WebControl (typically for use in a detail page or editable datasheet). In response the
exension should specify the CellTypes and/or WebControl to use.
The CellTypes is set by calling SetCellType(CellTypes, Int32) and
the WebControl is set via BaseControl. If only the CellTypes
is set then the field will perform normal control creation and configuration for that CellTypes.
If a live WebControl object is provided via BaseControl then that control
will be used and it is the extension's obligation to perform most set up.
See CreateControlArgs for additional information about how to respond to this event.
| |
FieldTest |
Fired when the field should execute it's self-test.
| |
FileDownload |
Fired when a file is about to be downloaded.
| |
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.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetText |
Get the specified localized text for this mapper. Obtaining the text is
a four step process:
1) Look for the text item in the mapper's TextItems collection,
2) if not found, look for the item in the extension'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 MapperExtensionBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HandleEvent |
IExtension.OnEvent handler. Note that generally speaking, you will want to override the individual
methods specific to the event and not implement the interface directly.
(Overrides MapperExtensionBaseHandleEvent(ExtensionEvents, Object, EAPEventArgs).) | |
Info |
Return requested information about the extension.
(Inherited from MapperExtensionBase.) | |
MailAfterSend |
Fired when mail has been successfully sent to the recipient represented by the current row in the mapper.
| |
MailBeforeSend |
Fired when mail is about to be sent to the recipient represented by the current row in the mapper.
| |
MapperAfterLayout |
Fired when the mapper has just layed out the mapper's UI.
| |
MapperAfterLoad |
Fired when the mapper's meta-data has been loaded, fields created, etc, but no field controls created.
This is typically the only opportunity to alter field CellType programmatically
for fields not specified as Dynamic.
Immediately after this event is fired, the mapper fires the ApplicationMapperLoad event to
provide the Application with an opportunity to "hook" the mapper.
| |
MapperAfterRequery |
Fired when the mapper has just requeried its operational data.
| |
MapperBeforeLayout |
Fired when the mapper is just about to begin laying out the mapper's UI.
| |
MapperBeforeRequery |
Fired when the mapper is just about to requery its operational data.
| |
MapperBuildFilter |
Fired when the mapper is building a filter. During this event any changes to the filter criteria,
table, and/or columns are detected and used for the actual filter.
| |
MapperBulkAfterDelete |
Fired when a bulk delete operation, using this mapper, has been completed.
| |
MapperBulkAfterInsert |
Fired when a bulk insert operation, using this mapper, has been completed.
| |
MapperBulkAfterUpdate |
Fired when a bulk update operation, using this mapper, has been completed.
| |
MapperBulkBeforeDelete |
A bulk delete operation, using this mapper, is being started.
| |
MapperBulkBeforeInsert |
Fired when a bulk insert operation, using this mapper, is being started.
| |
MapperBulkBeforeUpdate |
Fired when a bulk update operation, using this mapper, is being started.
| |
MapperCommand |
Fired when a mapper command has been invoked.
| |
MapperExecSQL |
Fired when the mapper is about to execute a SQL statement. The SQL to be executed
is contained in the ExecSQLArgs parameter. Any change made to the SQL in
that parameter cause the altered SQL to be used instead of the mapper-generated
SQL.
| |
MapperQueryError |
Fired when the mapper has just requeried and there has been an error.
You must return HandledByExt and set the desired error message in the event arguments.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnEvent |
This method is called to fire an event. The extension responds to this event.
(Inherited from MapperExtensionBase.) | |
OnSetOwner |
Creates the TypedMapper instance
(Overrides MapperExtensionBaseOnSetOwner.) | |
OnUnload |
Reive notification that the extension is being unloaded and fire
the attached TypeMapper.OnUnload() event.
(Overrides MapperExtensionBaseOnUnload.) | |
Other |
Handles an un-recognized event.
| |
RowAfterDelete |
Fired when the mapper has just completed deleting an entire row from the database.
| |
RowAfterInsert |
Fired when the mapper has just completed inserting an entire row into the database.
| |
RowAfterUpdate |
Fired when the mapper has just completed updating an entire row in the database.
| |
RowAjaxRequest |
Fired when an AJAX request was directed to this mapper. The mapper has been requeried on the requested
RowKey and the extension should take appropriate action which might include returning a JSON response
in the event arguments.
Upon return, the HTTP response will be cleared and any JsonResponse set in the event args will be written
to the response. If the extension DOES NOT want this value written to a cleared response object, set the
ExtResults.HandledByExt or ExtResults.ContinueNoExec result in the event args. Note that a cancel result
will also prevent the HTTP response from being modified.
| |
RowBeforeDelete |
Fired when the mapper is just about to delete an entire row from the database.
| |
RowBeforeInsert |
Fired when the mapper is just about to insert an entire row into the database.
| |
RowBeforeUpdate |
Fired when the mapper is just about to update an entire row in the database.
| |
RowCurrent |
The mapper has just positioned to a different record.
| |
RowDrilldown |
Datasheet drilldown buttons are normally rendered as links to the same detail page with a different
RowKey per link. However, when the DrilldownAttrs.FireDrilldownEvent bit is set, the drilldown
button is rendered as a button that, when clicked, posts back the page causing the mapper to fire
the this event. The event will be fired on a clone of the mapper positioned to the row
that was clicked (per its RowKey). Typically an extension handling this event will
programmatically determine the drilldown target and call Navigate(String, String, String, String) or
alter the RowDrilldownArgs values to specify a new target MOP and/or RowKey and
allow the mapper to perform the custom navigation. If no action is performed by the extension
then the mapper will perform the Application.Navigate using the same MOP and RowKey that it would
have used had the FireDrilldownEvent not been set.
| |
RowExecSQL |
Fired when the mapper is just about to execute a single SQL statement that is row-specific
(e.g. executing an INSERT, UPDATE or DELETE statement).
| |
RowSetDefaults |
Fired when the mapper is moving to a new record and has just completed populating defaults.
Immediately following this event it will fire the RowCurrent event.
The intent is to provide an opportunity for programmatically setting defaults to field values.
Generally it is expected that any field values will be set using
C# IField.SetValue(val, SetValFlags.DoNotMakeDirty, null); C# IField.Value = val; C# IField.DefaultValue = val; C# e.Result = ExtResults.DataChanged; | |
RowValidate |
This event is fired by WizSimpleImport (and possibly other import mechanisms) during its validate-only phase
each time the import mapper has been populated with all data from the current import record and all
built-in validation has been performed.
RowValidateArgs are provided in the Event Args.
| |
ToString | (Inherited from Object.) |
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.) |