I have a radio button group in which I'm attempting to deselect a button. There are examples by Niall and others that I've copied, but it's not working, apparently because this.initValue is not being passed from MouseDown to MouseUp. It seems that deselecting "Enforce strict scoping rules" might solve the problem, but this parameter is missing from the application.
I'm running ADEP Designer version 10, and there's nothing about scoping in either File Properties > Defaults or File Properties > Run-time. Anyone have any idea why it's not there?
That is strange, I can't see it either. It should be in the File > Form Properties > Defaults tab:
I am not sure what is going on, as it is still in the Spec. I will try and find out.
In the meantime, here is another example for detecting key presses. I use it for deselecting a radio button some forms. We have an instruction for the user to hold down the Shift key while clicking: http://assure.ly/j1KdNq.
I can't do more at this stage, but hope to come back to it.
It may be a week or two before we get any indication on this, but I will post if I hear anything.
Also, looking at the XML Source in LC Designer ES3, it looks like the enforce strict scoping is turned on by default. However the UI does nto give any control over this. I am slow to recommend editing the XML Source, so hold off for the time being.
Glad the other solution helped!
Message was edited by: Niall O\'Donovan
A couple of things.
First in your version of the form, make sure that you have the corresponding script in the mouseDown even of the individual radio buttons:
// Capture initial value of radio Button and save it as a member of the radio button object this.initValue = this.rawValue;
In relation to enforcing strict scoping in LC Designer ES3, the intention is to encourage best practice by automatically enabling strict scoping. This is a good thing!
So if you open a new form in LC Designer ES3 (or you have a form where script scoping is selected/on), then the option to deselect/turn off strict scoping is NOT available in the File > Form Properties > Run-time panel:
http://assure.ly/SJ5BWU (I can't include screenshots in the forum at the moment)
This encourages the developer to follow best practice, by automatically enforcing strict scoping.
On the other hand, if you have a form where the enforce strict scoping is (for what ever reason) turned off, then the option to enforce/turn on strict scoping is available in the File > Form Properties > Run-time panel:
I hope that clears that up,