Hi all,
Not sure whether this is a feature or a bug:
Scenario:
The user has one record selected and deletes it. No records are showing. The user clicks a button which runs a script trying to access a global variable.
I have found 2 ways of retrieving the value of a global variable in a script:
x = currentcontroller.getDataProviderValue(‘globals.varname’);
which fails when no records are showing, while
x = globals[‘varname’];
works fine.
Are there any reasons not to use the second syntax?