pillai.ganesh
12th February 2013, 08:30
:confused:I want to check if the session is opened from menu or from tools->Run Program..
I dont want to use process info as My session is present in 5 different menus.
Is there any other way to achieve this without using process info.

bdittmar
12th February 2013, 09:20
:confused:I want to check if the session is opened from menu or from tools->Run Program..
I dont want to use process info as My session is present in 5 different menus.
Is there any other way to achieve this without using process info.

Hello,

use appl.set

Use proper forum (TOOLS) for such threads, please !

Regards

NPRao
13th February 2013, 23:05
Add the following to your code in the before.program section

string started.from(16)

import("prog.name$", started.from)

pillai.ganesh
15th February 2013, 12:44
Add the following to your code in the before.program section

string started.from(16)

import("prog.name$", started.from)


what will be the value in started.from after import if session is opened from menu.

BaanInOhio
15th February 2013, 14:57
Probably a standard tools session, something like "ttadv2500m000". Can check the first two characters: if started.from(1;2) <> "tt" then called from a session.

pillai.ganesh
18th February 2013, 09:15
Thank u so much!
Got it!!!