kruyoupatel
11th February 2014, 10:50
Hello All
Can anyone tell me "how to grab standard ask.enum("ttstpq0109c") result?"
ttstpq0109c que code contains "Data has been change; do you want to save your data?"
i wish to grab yes/no answer.
Also plz do tell in which event this result can be checked...i mean which event is fired after we press "no" to abort transaction.
I also tried to use "stp.abort.error " predefined variable but it does not contain any output.
bhushanchanda
11th February 2014, 11:08
Hi,
There is a very simple example given in Prog Guide:-
Example
This example assumes an enumerated domain 'tcyesno' with two possible constants: 'tcyesno.yes' and 'tcyesno.no'. It also assumes a question defined in the data dictionary with code "tccom00001". This question contains the string "Error %d in file %s; Try again [y/n]?". The default answer is yes.
ret = seq.open( filename, "w" )
while ( ret <= 0 )
if ( ask.enum( "tccom00001", tcyesno.yes, ret, filename )
= tcyesno.no) then
return
endif
ret = seq.open( filename, "w" )
endwhile
In the above way, you can use it in if condition.
kruyoupatel
11th February 2014, 11:17
Bhushan I was knowing the Standard convention to call ask.enum()
But i want Only result of Standard call of ask.enum() which is already called by STP.
The mentioned enum is called by STP if we change something on form and try to exit session without save.
I want to know the event called on click of NO answer.
bhushanchanda
11th February 2014, 11:33
Ahh,
Ok I got it. What exactly are you looking for?
Basically, some standard DLL's like ottstpstandard are called with some bms.* functions when you try to close the session.
ottstpmess is called with the message code to pop up the message. To understand the complete flow, you can trace out any session and study the logs.