1. Datový typ OG - JSClassDefMDRelationScriptInfo

    Article: AN0002466Updated: 23.10.2021

    The object keeps instanci of the master-detail relation (which must not be changed, because it is shared across the whole ObjectGears instance) and provides properties for set up before display in a detailed form (DataDetail.aspx).

    The object is available in scripts in the class detail, where you can influence display of master-detail relationships in the event OnAfterLoadColumns on DataDetail.aspx.

    Object properties

    Name Description
    bool Enabled Indication, whether the relationship is enabled for display.
    bool EnableDelete Indication, whether record deletion should be enabled.
    bool EnableNew Indication, whether creation of new records should be enabled.
    bool EnableSelect Indication, whether record selection should be enabled.
    string GroupName Name of the group in the current localization. The property is just for reading.
    string GroupName_Loc Name of the group in the format for all required localizations.
    int Order Order of the relationship.
    string NewReturnUrlPart Value of Url variables for new record.
    bool ShowDatasInArchive Indication, whether archive relationship should display class records.
    bool ShowEmailsInArchive Indication, whether archive relationship should display emails.
    bool ShowFilesInArchive Indication, whether archive relationship should display files.
    string TabName Name of the tab in current localization. Property just for reading.
    string TabName_Loc Name of the tab in the format for all required localizations.

    Property Enabled can just disable the relationship. Relationship disabled in the configuration cannot be enabled by means of scripts.

    You can enter any integer (positive or negative) for the property Order. Before displaying, relationships will be orderd in an ascending order according to this number. The right order can be achieved by chaning this property. In the default setup relationships are numbered from 10 with a step of 10.

    Properties ...InArchive are used just in archive relations. It has no sense to use them for other relations, their values will be ignored.

     

     

×