IRdsDictionary.EditElementCallbackFore

Syntax

EditElementCallbackFore: String;

Description

The EditElementCallbackFore property sets a method to replace standard view of the Dictionary Element Properties dialog box with the custom one in the desktop application.

Comments

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.

Example

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. The example of unit and form is specified in the How to Create a Custom View of the Dictionary Element Properties Dialog Box article.

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, JS function, unit, and function are set in the MDM dictionary on the Card tab.

See also:

IRdsDictionary