jcook331
29th November 2004, 17:48
I am trying to control what happens when a user chooses the abort.program option, but Baan automatically pops up a question asking if the user wants to save the data or not. What I need to do is either override this question and insert a question of my own or determine how the user aswered the standard question. Are either of these options possible. I have been unable to find anything on this.
Thanks
mark_h
29th November 2004, 20:05
I have never really thought about getting the answer to the question, but is it possible for you to validate the data? I do what is below is several programs just to validate that the data is correct - if not I make them try again. Is this possible in your case?
Mark
choice.abort.program:
before.choice:
if not check.allocations() then
message("Allocations not correct for this contract.")
choice.again()
endif
mark_h
29th November 2004, 20:12
Something else to check out is msg.exit.val$. When I put the session I am working on in debug mode I did a L to see what is out there in the choice.abort.program section. All I did was change a value and then hit exit. The choice.abort.option started and I did the L and saw this variable. I can not find any documentation on it yet. Forgot to mention I selected NO and the value was 2.
Mark