Aceela
10th October 2008, 16:02
Hi,

I have two sessions, 1 main session and 1 update session.
My update session have type "no window". It is a update window that updates a table and should act in the background. This window is started from my main window which is a maintain session.

My problem is when I run execute(end.program) in my sub session to go back to my main session after the updating is finished my main session disappears too, but keeps running in the background . I want my sub session to have window type set to "no window" but when it is done running I can go back to my main session without having it disappearing from the screen.

Can anyone help me please?

george7a
10th October 2008, 16:23
Hi,

How are you activating the sub-session? Can you post your code?
Make sure that this sub-session does not have a form.

- George

Aceela
13th October 2008, 10:45
Hi,
thank you for replying.
In my main session i use start.session() in this function below to activate the sub session. This function updates a table.

function extern void addline()
{

expo.hiab.item = tcibd931.item
string zoom.result(50)

zoom.result = start.session(MODAL, "tcibd9131mcup", prog.name$, "ext.ret.cod")
execute(first.set)
}

then in my sub session i write like this


zoom.from.tcibd9131mc00:
on.entry:
import("expo.hiab.item",expo.hiab.item)
calltype = "addline"
execute(cont.process)

group.1:
init.group:
|get.screen.defaults()

choice.cont.process:
on.choice:
ext.ret.cod = 1415
if calltype = "addline" then
ext.ret.cod = hiab.update.tcibd931()
endif
execute(end.program)



tcibd9131mcup is my sub session
tcibd9131cm00 is my main session

george7a
13th October 2008, 14:30
We are maintaining our LN server, so I can not try your problem now.

If you say the process is still running in the background you might want to add the following in your main session after stats.session command.:
map.object(current.mwindow())
If that doe snot solve it, I will try it when our LN is up again.

- George

Aceela
13th October 2008, 16:17
Hi George

Thanks a lot for you help, I tried your line of code and it solved my problem

Thank you :)

george7a
13th October 2008, 16:51
Be careful, this won't work on Webtop.

There should be a better solution but unfortunately our server is still down.

Aceela
14th October 2008, 11:18
Okej.. Thanks