Multiple list source parameter
Use this paramater to a combo box column that requires to be referenced to several application data sources on which records are displayed as list. To determine the source, it must be triggered by another column.
JSON Identifier: MFS@Swtch
Parameter |
Description |
Possible values |
---|---|---|
|
Columns to display in the drop-down list. These columns becomes searchable. This is the |
|
|
This is the parameter where we define which column to depend on for the switch. |
|
|
This is the parameter where we define which table to set the value when a record is selected. |
|
|
This is the parameter where we define which column to set the value when a record is selected.
Note: Even the table to set have common column name with that of the source.
|
|
|
This is the parameter used when the selected primary key of the retrieved base data table in the Switch is not used as a value but it will use another column from the retrieved base data table. |
|
Switch |
This is the parameter where the user defines which base data table to retrieve the columns from based on the column defined in This explains how each operator are used:
Each switch definition will then be separated by a comma. |
|
See this example:
MFS@Swtch={"Col":["AddressId","Address"],"Pk":"AddressId","Cmp":"ServiceLineAddress.AddressSource","SetTbl":"ServiceLineAddress","SetVal":["Name", "Address", "City", "State", "ZipCode", "CountryCODE", "PlaceCODE", "AddressTypeCODE","AddressType"],"Switch":{"1":["AccountAddress","AccountID=ServiceOrderHead.AccountID","=,=,=,=,=,=,=,=,!="],"2": ["CRMUserAddress","CRMUserID=ServiceAssignmentElement.CRMUserID","=,Address1|Address2|Address3|Address4,=,=,=,=,=,!=,="],"3":["EquipmentLocation","OriginIdentity=Equipment.OriginIdentity","=,=,=,=,=,=,=,=,!="],"5":["ServiceAdHocAddress","","=,=,=,=,=,=,=,!=,!="],"6":["AccountAddress","AccountID=ServiceOrderHead.AccountID","=,=,=,=,=,=,=,=,!="]}}