cherokee
18th November 2011, 18:22
Hello everyone,
I have a session tssma3110m000 that has some settings for the session in the init.form section. When I call the session with an AFS, it doesn't go throught the init.form section!
Do you have an idea?
Thanks in advance,
cherokee
18th November 2011, 23:04
I think this has to do with activate() and switch.to.process() that I found in the init.form: section and for a reason once these are executed, the rest of the init.form: section is not exectuted(on the main session).
Thanks again.
mark_h
18th November 2011, 23:27
Well I can not speak for this session, but one session I worked on had an activate like this. I had to create a new session to activate the subsession. I do not know if this is possible for you to do. In my case all the main session did was to determine which subsession to activate. So I created a new session that allowed me to click continue and activate the subsession myself. Just a thought and maybe something easier to do now a days.
|******************************************************************************
|* tpptc9831 0 VRC B40C c3 dev
|* Maintain Element Demand
|* 08-30-01 [13:28]
|******************************************************************************
|* Script Type: 4
|******************************************************************************
|****************************** DECLARATION SECTION ***************************
declaration:
long child.id
extern domain tcmcs.str1 x
|****************************** PROGRAM SECTION ***************************
before.program:
child.id = 0
|****************************** ZOOM FROM SECTION ***************************
|****************************** FORM SECTION ***************************
|****************************** CHOICE SECTION ***************************
choice.cont.process:
on.choice:
if(child.id<>0) then
kill(child.id)
endif
child.id=activate("tpptc9110m00c")
switch.to.process(child.id)
| Cannot use zoom because tpptc9110m00c is waiting for a
| switch.to.process
execute(end.program)
choice.interrupt:
before.choice:
execute(end.program)
choice.abort.program:
before.choice:
execute(end.program)
choice.end.program:
before.choice:
kill(child.id)