Reshma
8th September 2004, 15:56
How do i import a value from a session called in special option of form without using the current session script ?

lbencic
8th September 2004, 17:01
You can try this in the 'zoom.from.all' section of your code:

import("variable name in parent", target.variable)


Example: if you want to import the sales order number that they save in the zooms, you can write:


zoom.from.all:
on.entry:
import("zoom.orno", zoom.orno)

However, if the parent program does not export and / or have the variable "zoom.orno" declared as external, you can't get it without changing the source.

Good luck

Hitesh Shah
9th September 2004, 12:09
If the scenario is different from what Lisa discussed i.e .u wish to get the value of a variable of program A (which is called from program B) in program B , u need to write following statement in program A in the end.program section or switch.to.process function.

export("variable_in_program_B",variable_in_program_A)

variable_in_program_A must be declared extern. Alternatively u can use put.var function with pre-defined variable parent as process argument in the child program.

NB - Please do not use the import statement in the parent program in such case.