jpadilla
23rd August 2002, 01:19
I have a session that is called by tdsls4101m000, I need to pass to the new session the order number and put it in the respective field.
Does somebody know how to do it??
NPRao
23rd August 2002, 01:26
You can use the functions, import() and export() to pass variable when you are zooming between sessions.
Please refer to the help manual for more details.
morpheus
23rd August 2002, 07:57
Hello,
You can also use put.var() and get.var().
By the way, Rao, put.var() is required alongwith get.var(), else the variable will not be passed on. Is this true in case of export() and import() also, where export() is necessary before using import() in the other session!?
jaapzwaan
23rd August 2002, 10:30
An export statement is not needed before an import.
As import(x) is a simple get.var(parent, x), this is also valid for get.var and put.var.
jpadilla
23rd August 2002, 16:44
Thank you friends,
It`s working O.K.
If I have a session which calls another session e.g. tdsls4101m000 calls tdsls4102s000 how can I make that the subsession show the lines corresponding to order in the main session??
Regards
JP
evesely
23rd August 2002, 18:41
This depends on how complex you want things to be. At its simplest, the import() function would work. After you imported the value, you could limit the records shown in a number of ways, including a query.extension in the before input section.
With that said, realize that what we normally think of as tdsls4102s000 is really two sessions: the 4102 on the bottom of the screen for input and the tdsls4503s000 session on the top for displaying the lines. There is a bit of effort involved in keeping things synchronized.
jpadilla
23rd August 2002, 18:56
I have a customized session that is called by tdsls4101m00 I only want that this session shows the records corresponding to sales order in tdsls4101m000.
Regards
JP
evesely
24th August 2002, 00:38
You could try:
declaration:
extern domain tcorno use.orno
...
before.program:
import("tdsls040.orno", use.orno)
query.extension="tdsls041.orno=" & str$(use.orno)
Since tdsls040 is a table (by definition, an extern), you may be able to get away without importing the value and using it directly in the query.extension. I haven't tested this, so I'm not positive.
Good luck!