SmartClient Version: v11.0p_2016-03-30/EVAL Development Only (expires 2016.05.29_20.49.40) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)
Chrome on OSX
Hello, I'm trying to use the provideRuleContext method, to understand it better, but I think I've found a bug.
I'm running this code (in the showcase):
testButton is correctly disabled, then if I execute:
it correctly become enabled, and if I execute:
it become disabled and so on.
But if I interact with the grid, then the button stops reacting to the provideRuleContext call.
Is it a bug or am I totally misusing this method? Actually would be nice to have a sample in the showcase.
Chrome on OSX
Hello, I'm trying to use the provideRuleContext method, to understand it better, but I think I've found a bug.
I'm running this code (in the showcase):
Code:
isc.ListGrid.create({
ID: "testList",
width:500, height:224, alternateRecordStyles:true,
dataSource: countryDS,
buttonEnabled:false,
fields:[
{name:"countryName"},
{name:"continent"},
{name:"member_g8"},
{name:"population"},
{name:"independence"}
],
autoFetchData: true,
canEdit: true,
listEndEditAction: "next",
autoSaveEdits: false
})
isc.IButton.create({
ID:"testButton",
top:250,
title:"Edit New",
enableWhen:{_constructor:"AdvancedCriteria",operator:"and",
criteria:[
{fieldName:"testList.buttonEnabled", operator:"equals", value:true}
]},
click:"countryList1.startEditingNew()"
})
Code:
testButton.provideRuleContext ("testList.buttonEnabled", true);
Code:
testButton.provideRuleContext ("testList.buttonEnabled", false);
But if I interact with the grid, then the button stops reacting to the provideRuleContext call.
Is it a bug or am I totally misusing this method? Actually would be nice to have a sample in the showcase.
Comment