This patch fixes a bug in SmartClient 5.7 whereby if multiple fields are showing, showing and hiding the field (via the header context menu) could cause the tree-field to change unexpectedly.
This patch applies to SmartClient version 5.7 only.
This patch applies to SmartClient version 5.7 only.
Code:
//----------------------------------------------------------------------------
// Isomorphic SmartClient v5.7 patch
// Purpose: Fix for a bug whereby the "treeField" in a TreeGrid could
// unexpectedly become altered when fields were shown and hidden within the TreeGrid.
//
// Applies to the SmartClient version 5.7 only
//----------------------------------------------------------------------------
if (window.isc &&
(isc.version == "5.7/SDK Development Only" || isc.version == "5.7/EVAL Deployment" ||
isc.version || isc.version == "5.7/SISV Deployment" || "5.7/SISV Development Only") &&
isc.TreeGrid)
{
isc.TreeGrid.addMethods({
__initTreeField:isc.TreeGrid.getPrototype().$34s,
$34s:function () {
this.__initTreeField();
var tfn = this.$34t, tf = this.completeFields[tfn];
this.$34t = this.fields.indexOf(tf);
},
fieldStateChanged : function () {
this.$34s();
if (this.body) this.body.markForRedraw();
}
});
} else {
if (window.isc) {
isc.Log.logWarn("Patch for SmartClient 5.7 (eval builds) included in this application. " +
"You are currently running SmartClient verion '"+ isc.version +
"'. This patch is not compatible with this build and will have no effect. " +
"It should be removed from your application source.");
}
}
//----------------------------------------------------------------------------
// End of patch
//----------------------------------------------------------------------------