drawat69
29th January 2009, 13:44
Hi,
I have customized session. In the script based on some condition I m opening, zoom.to$() Baan standard session. I want to closed the called session after completion the process and the focus/cursor should come back in the customized form.
Example.
If condition then
Zoom.to$(“tfgld4201m000”,z.session,””,””,0)
| I want to exit from this session after completing the process
Exit() | closed my customized session. remains open tfgld4201m000
endif

Second, is it possible in the above called session, company no. and date values takes from my customized session, user have to press only post button in the same. I am entering both company no. and date is in the customized session.

Thanks in advance.
DR

Hitesh Shah
29th January 2009, 19:02
Second, is it possible in the above called session, company no. and date values takes from my customized session, user have to press only post button in the same. I am entering both company no. and date is in the customized session.

Thanks in advance.
DR

Through AFS u can do everything . User dont even have to press the post button . Search this board for AFS & tfgld4201m000 . Quite possibly U may get the exact code also.

drawat69
30th January 2009, 10:48
Hi Hitesh,

Thank for the solution.

I am still looking solution for the first part. It is working, only I want to close the called session after processing without useing AFS.
If user insist for the second one then I will create AFS for that.


Thanks
DR

Kozure Ohashi
30th January 2009, 11:20
You could use


if ... then
execute(end.program)
endif


Regards,

Kozure

drawat69
30th January 2009, 14:55
Hi kozure,

Thanks. But my query remains as it is.

The code : execute(end.program) or exit(0) is giving me same result.
e.g.
abc is parent session
xyz is called session

if ..... then
zoom.to$("xzy",z.session,"","",0)
endif
Suggested command close abc session and remains xyz session on the screen. However, I want to close xyz session should open abc session.

Thanks
DR

cyprus
4th February 2009, 12:35
Hi kozure,

Thanks. But my query remains as it is.

The code : execute(end.program) or exit(0) is giving me same result.
e.g.
abc is parent session
xyz is called session

if ..... then
zoom.to$("xzy",z.session,"","",0)
endif
Suggested command close abc session and remains xyz session on the screen. However, I want to close xyz session should open abc session.

Thanks
DR

Better use AFS for session XYZ and handle it accordingly...