Hi Isomorphic,
please see this modified testcase (v12.0p_2020-04-16).
As you can see, a click on fetchData() issues a prompt while reloading (expected). This does not happen for a click on exportData(). I'd expect a prompt here as well.
Best regards
Blama
please see this modified testcase (v12.0p_2020-04-16).
As you can see, a click on fetchData() issues a prompt while reloading (expected). This does not happen for a click on exportData(). I'd expect a prompt here as well.
Best regards
Blama
Code:
isc.ListGrid.create({
ID: "supplyItemList",
width:"80%", height:"100%", alternateRecordStyles:true,
dataPageSize: 2000,
dataSource: supplyItem,
autoFetchData: true,
showFilterEditor: true
});
isc.Button.create({
ID: "exportDataButton",
title: "exportData()",
click: function () {
supplyItemList.exportData({ exportAs: "ooxml",
exportFields: ["gdp", "countryName", "capital", "continent"],
showPrompt: true,
promptDelay: 0,
promptStyle: "dialog",
prompt: "Exporting data, please wait"
});
}
});
isc.Button.create({
ID: "fetchDataButton",
title: "fetchData()",
click: function () { supplyItemList.fetchData({
_constructor:"AdvancedCriteria",
operator:"and",
criteria:[ { fieldName:"itemID", operator:"notEqual", value: Math.ceil(Math.random()*1000) + 4000 } ]},
null,
{ showPrompt: true,
promptDelay: 0,
promptStyle: "dialog",
prompt: "Fetching data, please wait"}
);}
});
isc.HLayout.create({
ID: "buttonsLayout",
members: [exportDataButton, fetchDataButton],
membersMargin: 10,
width:"80%"
});
isc.VLayout.create({
members: [supplyItemList, buttonsLayout],
membersMargin: 10,
width:"80%",
height:"100%"
});
Comment