rajesh.lch
15th December 2018, 22:20
Hi Team,

i) I has a requirement that, i need to store the entered value after printing the report and repeat the process , until it matches the value in another table. For this i need to use form fields and store the values.

ii) And also i need to restrict the closing of session up to it performs the whole process. Please assist.

For Example:

if i am entering X = 10 in the session after printing the report it should store 10, next if i enter X = 20 after printing report the i should store 30.

Can you please help me on logic and also in which section we need to place.

Regards,
Raj

mark_h
16th December 2018, 05:34
Not sure I am getting exactly what you are asking - but in the before program you could read the value from the table and store it. Then in the end.program section you could check to see if the value you entered(or is a return value from the report?) is the same as the table field value. If not just run something like choice.again() - if equal then exit the program.

rajesh.lch
16th December 2018, 11:44
Hi Mark,

Thanks for reply.

Can you please tell me, how to disable the Close button and in which section we need to handle.

Currently I’m using Disable.command(“end.program”) but not able to disable the button.

Regards,
Raj

JaapJD
17th December 2018, 09:34
Use

disable.commands(END.PROGRAM, ABORT.PROGRAM)

rajesh.lch
17th December 2018, 13:17
Hi,

Working , Thank you.

Regards,
Raj