macoxy
21st October 2005, 10:22
I have standard session and custom report. I would like to read in report script a field (it is not a table field) from anather session which is includet in zoom session of my first standard session.
manojsharma
21st October 2005, 10:37
Hi macoxy,
You can import the field from standard session to your customised session with import command.
macoxy
21st October 2005, 10:39
i don't have access to standard script.!
manojsharma
21st October 2005, 10:41
You don't require to access the standard script. Just put import command in your customised session's script.
macoxy
21st October 2005, 11:02
Under standard session i start sub session (with special option under standard session). On sub session i have check box this value i wan't to read in report script.
sub-session script.
declaration:
extern domain tgyenox rohs
form.1:
init.form:
get.screen.defaults()
choice.cont.process:
on.choice:
read.main.table()
functions:
function read.main.table()
{
export("rohs",rohs)
}
report script:
before.program:
import("rohs",rohs)
is this OK???
manojsharma
21st October 2005, 11:10
can you paste the screen shot of std as well as customised session. It will help me to understand what exactly you want to do
macoxy
21st October 2005, 11:14
from picture #2 session i would like to pass variable to report which is started from standard session pic #1
JaapJD
21st October 2005, 13:32
Exporting a variable to the parent session only works if the variable is declared as an external variable in the parent session. Your "rohs" variable does not satisfy this condition.
Instead of this, you can use the predefined variable free$. This is a string, but you can always convert the yesno value to a string and test that string in the report script.
A better solution may be that you put the free$ field in the form of the standard session. Now you have customized it to add the specific command, but you can also customize it to add the field. Then you don't need your own session. You can define a domain of type string and length 1 and allow only the values Y and N. Define the free$ field on the form with this domain.
Note: You can even use free$ for more than one field on the form by specifying the offset within the free$ field.