Tantalim SmartSelect
Creating dynamic select boxes can get complex very fast. Tantalim comes with a robust and full featured selection tool called SmartSelect.
From the FieldDefinition
{
"fieldName": "TableModuleName",
"fieldLabel": "Module",
"fieldType": "select",
"select": {
"model": "ListModules",
"targetID": "TableModuleID",
"sourceValue": "ModuleModuleName",
"otherMappings": [
{
"source": "ModuleModuleCode",
"target": "TableModuleCode"
}
],
"where": []
}
}
From the server
<ui-select
item-model="{{select.model}}"
item-value="{{select.sourceValue}}"
instance-model="{{../../modelName}}"
instance-key="{{select.targetID}}"
instance-value="{{fieldName}}"
other-mappings="{{json this.select.otherMappings}}"
>
</ui-select>