Michel1976
26th June 2009, 12:34
Hello,

I have a problem with the choice.abort.program section which is in my case not reaed. I use LN and wanted to clear the main table when the session is aborted by clicking on the 'X'. The choice about program is not reached though. Has anyone ever had this problem before as well. I would appreciate any help.

Michel

george7a
26th June 2009, 12:43
Hi and welcome to the forum ;),

1) Is the program closing when you click on the 'X'
2) Can you tell us what is the type of the session?
3) Can you please post your code?

- George

dheerendra_gosw
26th June 2009, 13:27
Can you please port the code....

manish_patel
26th June 2009, 13:44
after.choice subsection is not available for the end.program and abort.program commands.

If this is the case; you can use before.choice subsection.

Michel1976
26th June 2009, 15:56
The code is kept very simple. I just want to start a function which is clearing the main table for onf user. (multiple user can create entries in this table and only the entries for the current user should be deleted) The code is:

choice.abort.programm:
before.choice:
clear.tdpas602()

I have tried before, on and after choice but neither of them works.
The program shall be closed when clicking on the 'X' and no other functions besides deleting the entries will be called. The Type of the Session is List Maintain.

PS: Thanks for the welcome within baanboard :)

mark_h
26th June 2009, 17:29
Welcome to the board. And is your code a copy or is that a typo on "program"? Sorry can not help on ln, but this works on 4c4 when hitting the x.

choice.abort.program:
before.choice:
verify.allocations(false)

Michel1976
26th June 2009, 17:42
Hello Mark,

this was just a typo. I wrote it with 1 m of course. I will try your solution because I still didn't get it running. Thanks for your help in advance!

george7a
27th June 2009, 18:33
I did not understand something. If you click now on the "X" does the session close? I just want to make sure that the "exit" option is checked on the standard form options.

Michel1976
28th June 2009, 22:36
Hello,

yes the session was closing but It is working now. I just have changed the sessiontype from list maintain to list display and somehow it worked. I have no clue why this should be connected but changing it helped. Many thanks to you all for your support and I hope I will give this support back sometime.

Regards

Michel

loveneesh
29th June 2009, 08:37
I think there is spelling mistake in your code.
"
choice.abort.programm:
before.choice:
clear.tdpas602() "

You have written choice.abort.programm:

It should be choice.abort.program:

Michel1976
30th June 2009, 09:03
Hello loveneesh

this was just a typo in here. I checked the spelling within the script and it was correct. But thanks for the advice.