We recently upgraded from 8.3 to 9.0p.
We have a class wrapping a ListGrid that we use everywhere in our app.
One of its methods is the following:
We added that method because we needed the client to force a fetch to the back-end (even if the end user would not change any search fields of a dynamic form, we wanted the fetch to go back to the server in case the server contained new data matching the user's selection)
Now, with the upgrade to 9.0; our wrapping is broken.
We already posted on the forum here: http://forums.smartclient.com/showthread.php?p=114028 (we'll be replying to this other thread soon; my colleague is on vacation).
We read a bit more on the new documentation that came with 9.0 and discovered that willFetchData() exists for a few modules.
Our framework already has a "customization file" that contains the following:
We're contemplating adding the following to it as another property:
We do not care about the round-trips to the back-end because we want to make sure the user always works with the latest data from the server.
What are the risks of doing so ? Are there any risks ?
Thanks !
SmartClient Version: v9.0p_2013-12-03/Pro Deployment (built 2013-12-03)
We have a class wrapping a ListGrid that we use everywhere in our app.
One of its methods is the following:
Code:
//----------------------------------------------------------------------------------------------------------------------------
fetchData : function(criteria, callback, invalidateCache)
{
if (this.listGrid)
{
this.hideRecordFeedback();
if (true === invalidateCache)
{
// Caller wants us to force a request to the server.
// Reference : http://forums.smartclient.com/showthread.php?p=19915#post19915
if (isc.isA.ResultSet(this.listGrid.data)){
this.listGrid.data.invalidateCache();
}
}
this.listGrid.fetchData(criteria, callback, { showPrompt : true, prompt : OurStrings.get('global.list.loadingMessage') });
}
}
Now, with the upgrade to 9.0; our wrapping is broken.
We already posted on the forum here: http://forums.smartclient.com/showthread.php?p=114028 (we'll be replying to this other thread soon; my colleague is on vacation).
We read a bit more on the new documentation that came with 9.0 and discovered that willFetchData() exists for a few modules.
Our framework already has a "customization file" that contains the following:
Code:
BaseResultSet.addProperties
({
useClientFiltering : false,
useClientSorting : false
});
Code:
//--------------------------------------------------------------------------------------------------------------------------------
willFetchData : function(newCriteria, textMatchStyle)
{
return true;
}
What are the risks of doing so ? Are there any risks ?
Thanks !
SmartClient Version: v9.0p_2013-12-03/Pro Deployment (built 2013-12-03)
Comment