Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example JSON for Trade License

Code Block
languagejs
dynamicMdms : {
            uiFramework: 
        uiFramework: "custom-containers",
            componentPath: 
        componentPath: "DynamicMdmsContainer",
            props: {
              dropdownFields: [
                {
                  key : 'tradeCategory'
                },
                {
                  key : 'tradeType'
                },
                {
                  key : 'tradeSubType', 
                  callBack: tradeSubTypeChange
                }
              ],
              moduleName: "TradeLicense",
              masterName: "TradeType",
              rootBlockSub : 'tradeUnits',
              type : 'TL',
              callBackEdit: updateMdmsDropDowns,
   
        props: {
          dropdownFields: [
            {
              key : 'tradeCategory'
            },
            {
              key : 'tradeType'
            },
            {
              key : 'tradeSubType',
              callBack: tradeSubTypeChange, // Optional
              isDisabled: false , // Optional
              fieldType : "autosuggest" // Optional
            }
          ],
          moduleName: "TradeLicense",
          masterName: "TradeType",
          rootBlockSub : 'tradeUnits',
          type : 'TL',
          callBackEdit: updateMdmsDropDowns,
          isDependency : "Licenses[0].tradeLicenseDetail.structureType"
            }
          DynamicMdms.common-masters.structureTypes.structureSubType"
        }
}

The “dropdownFields” Values are the main picture to manage number of dynamic drop down’s .

...