I have a ListGrid with two fields that are in related tables. When the data is displayed, if I double click on each row it fills in the data properly from the related tables, but I cannot seem to get it to do this automatically.
I’ve tried adding a “dataArrived(beginrow, endrow)” function, and then looping through and doing a “fetchRelatedData()” on each record between beginrow and endrow, but that seems to hang the application with the message:
“Finding records that match your criteria”…
See fields “templateID” and “phaseID”.
isc.ListGrid.create({
ID:"itemList",
dataSource:"genesysRule",
useAllDataSourceFields:true,
fields:[
{name:"name", title:"Name", showHover:true, canEdit:true},
{name:"description", showHover:true, canEdit:true},
{name:"templateID", tile:"Phase", optionDataSource:"genesysRuleTemplate", displayField:"name", valueField:"templateID", canEdit:false},
{name:"category", canEdit:false},
{name:"phaseID", tile:"Phase", editorType:"select", optionDataSource:"genesysRuleTemplatePhase", displayField:"phase", valueField:"templatePhaseID", canEdit:true},
{name:"fromDate", canEdit:true},
{name:"toDate", canEdit:true}
],
recordClick:"this.updateDetails()",
canEdit:true,
modalEditing:true,
cellChanged:"this.updateDetails()",
alternateRecordStyles:true,
canDragRecordsOut:true,
canRemoveRecords:true,
leaveScrollbarGap: false,
hoverWidth:200,
hoverHeight:20,
selectionType:"single",
... (continues)
Thanks for any assistance!