Dynamic Update Tick Box

Hi Guys

This will probably be an easy, simple question!

I have a tick box in a form. If the button is ticked I want it to dynamically (without pressing ‘save’) allow the user to edit a field. If the box is un-ticked, I want the field to be set to Allow Edit = No.

The problem is the form does not refresh dynamically, so far all I have achioeved is bieng able to tick the box, close the form and then go back into it and input details into the field.

I have an If statment which sets the logic for what I am trying to achieve. I tried refreshing the form (through code) etc. How would you guys go about achieving this?

Thanks

Is this field in a grid object, or is it an independent text field?

override method active in your datasource set your editable condition

yourTable_ds.allowedit(yourTable.tickBox);

then override method modified on your tickBox field in datasource

after super set data source to save

yourTable_ds.write();

Hi Guys

Thanks for your reply

I had created a new method in the form at the highest level to provide the logic for the tick box.

I enabled the page activated method in the tab of the form to direct it to my method which had the logic for the tick box.

Then on the data source, I overode the modifed element of the tick box directing it to the method for the logic of the tick box.

THis all seems to work.

Thanks for your help.