EditElementCallbackFore: String;
The EditElementCallbackFore property sets a method to replace the standard view of the Dictionary Element Properties dialog box with a custom view in the desktop application.
The path to the method is specified in the following format: <Unit ID>[.<Class name>].<Method name>.
When the property is set, the specified method and its signature are checked.
To delete the set method, set the EditElementCallbackFore property to empty value.
Executing the example requires that the repository contains an MDM dictionary with the RDS identifier, a unit with the MODULE identifier to replace appearance of the dialog box, the AddOrEditElement JS-function, and a custom dialog box appearance form.
Add links to the Metabase, Rds system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Obj: IMetabaseObject;
Dict: IRdsDictionary;
Begin
// Get current repository
MB := MetabaseClass.Active;
// Get MDM dictionary
Obj := MB.ItemById("RDS").Edit;
Dict := Obj As IRdsDictionary;
// Set unit to replace standard element card
Dict.EditElementCallbackFore := "MODULE.AddOrEditElement";
// Set JS function to replace standard element card
Dict.EditElementCallbackJS := "AddOrEditElement";
// Save dictionary
Obj.Save;
End Sub UserProc;
After executing the example, the JS-function, unit, and function are set in the MDM dictionary on the Card tab.
See also: