lvostinar wrote:What exactly doesn't work ? Can you edit the fields ?
Kahuna wrote:lvostinar wrote:What exactly doesn't work ? Can you edit the fields ?
On onLoad my app sets the form to controller.enabled = false;.
I have a button that (in SM) does controller.enabled = true;
The button does not enable the form in the WC?
lvostinar wrote:Maybe the button is disabled ? Is the onAction executed ?
Kahuna wrote:lvostinar wrote:Maybe the button is disabled ? Is the onAction executed ?
Its not disabled in the SC - so don't know why it would be in the web client - not sure how to test that in the webclient? But using a debug-break and running WC from developer it appears that the button is not enabled?
MORE - I just tested setting the button to enabled using elements.but_edit_rec.enabled = true; after the controller.enabled = false; to no avail.
application.output('Before Event - Test Button Enabled; ' +elements.butTest.enabled)
controller.enabled = false
elements.butTest.enabled = true
application.output('After Event - Test Button Enabled; ' +elements.butTest.enabled)
jcompagner wrote:better is to make a case with that,
Also mixing controller.enabled and then field.enable is a bit weird.
In my view is if you use controller.enabled = false then the complete form just must be disabled until you set that to true again..
Because mixing this is just weird and confusing if you ask me
In web client it seems to disable the button too HarjoHarjo wrote:Is'nt that what controller.readOnly = true for??
that disables editing, but doesn't touch labels & buttons.
Users browsing this forum: No registered users and 3 guests