Versions Compared

Key

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

...

Source path : https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-tradelicence-dev/src/ui-config/screens/specs/tradelicence/applyResource/tradeDetails.js

All the dropdown drop down data are mapped through mdms response.

For to display MDMS data we have common container in UI Framework ( “DynamicMdmsContainer“ ).

In Trade License : We used common container for Trade Category , Trade Type , Trade Sub Type , Structure Type and Sub Structure Type, Ownership , and Sub Ownership .

Sample JSON for Structure Type and Sub Structure Type :

Code Block
dynamicMdmsStructureType : {
      uiFramework: "custom-containers",
      componentPath: "DynamicMdmsContainer",
      props: {
        dropdownFields: [
          {
            key : 'structureType',
            isDisabled:getQueryArg(window.location.

...

Example :

...

href, "action") === "EDITRENEWAL"? true:false
          },
          {
            key : 'structureSubType',
            callBack : structureSubTypeChange
          }
        ],
        moduleName: "common-masters",
        masterName: "StructureType",
        rootBlockSub : 'structureTypes',
        callBackEdit: updateStructureTypes
      }
    }

Example :

jsonPath , sourceJsonPath are created as a dynamic in ( “DynamicMdmsContainer“ ) based on module name and rootBlockSub , Key .

jsonPath is used to store the data in specified path when clicking event triggers or on handleFieldChange.

...