simona
1st October 2007, 13:01
Hi all,
I'm using Baan 5 and I'm trying to execute the 'save data and exit' standard command, with AFS. I read the AFS documentation but it's not clear for me if I should use stpapi.form.command function... i want to execute a standard command, not an user made command.
The session is of type UPDATE.
Thank you all
simona
mark_h
1st October 2007, 14:30
Basically you can - you would do stpapi.save(for 5 this may be stpapi.form.command) and then a stpapi.end.session.
iuovchin
21st March 2016, 06:26
i know it was i while ago, but..
i have the same issue. when i do stpapi.save and then stpapi.end.session nothing happens.
script executing only when i click OK(save-and-exit) button.
continue.process does not work as well.
please help. (baan 4)
mark_h
21st March 2016, 17:16
What session? Search for the session on this forum you might find other code to assist. If not post you code so we can look at it - maybe we will see something in it. I know in the past I have had to write code to kill a subsession - that code is also in this forum also.
iuovchin
22nd March 2016, 04:03
session is "tfcmg2114s000".
in this session i put a field "main.docn" and when i click OK(save&exit) i get message "Assignment added to document %s" and everything works fine, but when i press continue button nothing happens. so im interester in clicking that particular button that calls for end.program section of session script.
i searched and found nothing that helped. i tried your code for killing subsession, Mark. It very useful code, but not in this case.
mark_h
22nd March 2016, 14:24
My first question is - What happens if you use stpapi.end.session? Also when you run it manually what does the continue do - is there more processing to be done? Looking at my system(4c4) there is not a continue option set on the form. So stpapi.continue will not doing anything for the session. I ran ttstpcreatdll just to see what is available - I only sess stpapi.end.session. Do you have source code on the session to look at?
Ajesh
23rd March 2016, 03:52
Please Post your code.
iuovchin
24th March 2016, 03:49
found a mistake in my code, sorry for bothering, my bad.
stpapi.update and then stpapi.end.session works fine.
again,my apologize for takin your time.