Hi,
In a ListGrid i have multiple fields that dependend on the same dataSource. In the datasource "mainDS" i have the key of the related data (plantRefId). The first fields works as expected but i dont know how show in rest of fields the "name" and "description" located in the datasource plantDS.
Another important thing would not have to implement the function changed in "plantRefId" field when editing the code of the plant.
Is there a way to automatically update the data every time you change the CODE field?
...
dataSource:mainDS,
fields:[
{title: "CODE",
name: "plantRefId",
displayField:"code",
valueField: "id",
optionDataSource:ds.plantDS,
changed:"isc.say('pepe')"
},
{title: "PLANT",
name: "name", // ¿?¿?
canEdit:false,
displayField:"name",
valueField: "id",
optionDataSource:ds.plantDS
},
{title: "DESCRIPTION",
name: "description", //¿?¿?
canEdit:false,
displayField:"description",
valueField: "id",
optionDataSource:ds.plantDS
}
]
...
thank you!
In a ListGrid i have multiple fields that dependend on the same dataSource. In the datasource "mainDS" i have the key of the related data (plantRefId). The first fields works as expected but i dont know how show in rest of fields the "name" and "description" located in the datasource plantDS.
Another important thing would not have to implement the function changed in "plantRefId" field when editing the code of the plant.
Is there a way to automatically update the data every time you change the CODE field?
...
dataSource:mainDS,
fields:[
{title: "CODE",
name: "plantRefId",
displayField:"code",
valueField: "id",
optionDataSource:ds.plantDS,
changed:"isc.say('pepe')"
},
{title: "PLANT",
name: "name", // ¿?¿?
canEdit:false,
displayField:"name",
valueField: "id",
optionDataSource:ds.plantDS
},
{title: "DESCRIPTION",
name: "description", //¿?¿?
canEdit:false,
displayField:"description",
valueField: "id",
optionDataSource:ds.plantDS
}
]
...
thank you!