eric.dizon
8th May 2015, 21:49
I am trying to determine how to cancel or capture an Ok button in table less custom dialog I've created.

There is an Ok and Cancel button by default in the dialog what choice.section do I need to tap to add a programmable code to it?

Right now I put my code it in but what if I like to do a validation and abort the processing of the OK button then?


choice.end.program:
before.choice:
|ret = create.csb.plan()

after.choice:
execute(save.defaults)

vahdani
9th May 2015, 11:13
Hi,

you can always use choice.agian() in the before.choice section to stop a choice.

so you can do the following:


choice.end.program:
before.choice:
do.something()
if not checks.ok() then
choice.again()
endif
execute(save.defaults) |There is no after.choice

There is no after.choice section by choice.end.program. You can guess why :)