The Card tab is used to redefine the predefined view of the Dictionary Element Properties dialog box for a custom one.
If an MDM dictionary is created in MDM repository, a display mode can be created for the Dictionary Element Properties dialog box. To do this, select the View > Element Card main menu item in the MDM repository main window. Depending on the selected display mode, the Dictionary Element Properties dialog box may look as a predefined or as a custom dialog box. The following belong to the predefined view:
Standard view:
Table view:
NOTE. The standard view is available for the MDM dictionary created outside the MDM repository.
The standard dialog box is available in the web application:
Use the Card tab to replace the predefined dialog box with the custom one:
On the tab, in the drop-down list select assembly, unit or form and a function to replace the dialog box in the desktop application; specify the JS-function to replace the dialog in the web application.
The following must be passed as parameters in the function:
ParentWnd: IWin32Window. A form used for creating a custom dialog box.
Elements: IRdsDictionaryElements. The parameter that is used to work with a dictionary element: return element data, create an object with element data, insert a new element and update element data.
ElemKey: Integer. The parameter that passes key of edited dictionary element.
NewElem: Boolean. The parameter that determines whether there is a new element that is created on editing.
ReadOnly: Boolean. The parameter that determines element editing permissions.
InitData: IRdsDictionaryElementData. The parameter that determines value of the element that is created on editing by the specified attribute.
The following must be passed as parameters in the JS-function:
Tree: PP.Rds.Ui.DictionaryTree. The MDM dictionary tree, which elements will be changed.
Operation: PP.Rds.ElementOperation. The requested operation that is used to add or update changed element.
ItemKey: String. The key of edited or copied element.
ParentKey: String. The parent element key on adding or copying.
IsReadOnly: Boolean. The parameter that determines element editing permissions.
After the predefined dialog box is replaced with the custom one on adding or editing the element, the custom dialog box is displayed in the desktop application; in the web application, attribute values are changed without displaying the dialog box, according to the operations specified in the function.
For details about creating a custom dialog box, see the How to Create a Custom View of the Dictionary Element Properties Dialog Box? section.
Standard dialog box view:
Custom dialog box view:
See also: