VishalMistry
24th January 2015, 10:12
Hi all

Pl clear below doubt:
In one session user fills dept and date and clicks on a form command, it starts another session (as shown in attachment) when he adds new record the date and dept entered in earlier session fills up automatically.

my sessions are listed in attachment. please guide how to do this.

Vishal

soumya093
24th January 2015, 10:55
Hi
I think you should use export and import variables
like
after.program:
export(string var_name, void value)

and in your next session
before.program
import(string variable_name, ref void value)

VishalMistry
24th January 2015, 13:43
Hi,

Thanks for your update. i have tried your suggesion. in the called session, I have imported the extern variables as said by you. i am changing the value of field to the values entered in previous session (calling session), but no luck.

Vishal

bhushanchanda
24th January 2015, 15:10
Hi,

Can you post your code? And, you can also use get.var() function to do the importing. But import() works fine too.

Also, search the board for related threads-

Thread 1 (http://www.baanboard.com/baanboard/showthread.php?t=28779)

Thread 2 (http://www.baanboard.com/baanboard/showthread.php?t=59536)