Hi,
I’m building an application similar to the demoApp provided in the Evaluation SDK . However, instead of listing categories, I’m using a ListGrid of data sources, so when the user click on the datasource, the user can see the details, find items, etc. (I based my code from supplyItemDMI example).
The problem is whenever I change datasources, the DynamicForm is set to use the new fields. Okay, but I want to add a “Save Item” button after the datasource has been bound to the DynamicForm.
I tried this, but without success (considering the fields attribute from DynamicForm is an Array instance):
isc.ListGrid.create({
emptyMessage:"No item....",
autoDraw:false,
ID:"boundList",
recordClick:"boundForm.editRecord(record); boundView.viewSelectedData(boundList); addSaveButton();"
});
function addSaveButton() {
boundForm.fields.add({name:"btSave", editorType:"button", align:"center", width:100, colSpan:4, title:"Save Item", click:"boundForm.saveData()"});
}
Any suggestions?