k_d_mahajan
22nd February 2006, 11:31
Is there any facility to know from where a particular subsession is being called (from which Main Session)?

Reason for this Query:
From Maintain Personnel Detail(hrper0101m000) when I m executing session Maintain Personnel Payroll Information(hrpay0111m001) this session is being hanged so I want to use the Subsession Maintain Personnel Payroll Information (hrpay0111s000) but not able to understand from where this subsession to be executed(from which main session)?

Expecting your help either to solve my hr session related problem or help to serch for a main session from where this subsession is being called.

Kalyan Mahajan
:)

mr_suleyman
22nd February 2006, 11:56
İf you can see source code of maintain session it 's easy to find it ?

Rita Kotecha
22nd February 2006, 12:35
From Maintain Personnel Detail(hrper0101m000) when I m executing session Maintain Personnel Payroll Information(hrpay0111m001) this session is being hanged so I want to use the Subsession Maintain Personnel Payroll Information (hrpay0111s000) but not able to understand from where this subsession to be executed(from which main session)?


1. You need to find why hrpay0111m001 gets hanged by dbugging your code
2. Try to Run hrpay0111m001 directly thru Run program ttdsk2080m000
3. Do you mean to say that session hrpay0111m001 and subsession hrpay0111s000 are the same ?

csecgn
22nd February 2006, 12:56
Session ttadv2410m000, Print where used sessions?
Because a sub-session will always called by zoom.to (or similar i.e. start.session etc.) you only need to search for Scripts/Librarys.

hth

Regards
csecgn

en@frrom
22nd February 2006, 12:58
Rita, where do you take from that the session is hanging? I didn't understand so from Kalyan..

Kalyan, if I understand correctly you want to have a way of knowing the parent session of a child session, i.e. knowing from which session a subsession was zoomed to. If this is the case, the best thing is to call the subsession as a zoomsession. Like this you can use the zoom.from sections in the subsession. If you need more help on that, let us know or search the board.

Besides you have the predefined variables storing information:
'parent': predefined variable containing the session id from the parent session (in the parent session, its id is stored in the variable 'pid'


Regards,
En

NPRao
22nd February 2006, 21:43
Alternatively,

before.program:
import("prog.name$", calling.session)
message("Calling Session %s", calling.session)
if strip$(calling.session) = "zmmig2100m000" then
do.something()
endif

k_d_mahajan
25th February 2006, 06:07
I want to have a way of knowing the parent session of a child session, i.e. knowing from which session a subsession was zoomed to. I don't have any code of the subsession.

KDM

en@frrom
28th February 2006, 13:11
You mean you don't have the source of the child/sub-session? But how do you plan on programming certain actions if parent = session xxx if you do not have a source? Then you should work with AFS. I.e. you copy the subsession to an AFS version, and like this you can check and control the subprocess...