mig28mx
29th August 2008, 17:16
Hello All,
I´m having the following problem.
I have a subsession that calls another session.
But I need that, the subession 2, selects only the records selected in subsesion 1. I have tryed the board´s suggestions using functions IMPORT and export, but no success.
I have all the sessions with option 6 (search) but also tryed witn options, 7 and 44.
Any suggestions?
Thanks in advance.
Here is my code
Main session:
choice.user.0: |Historial
on.choice:
if(not marked) then
message("No ha seleccionado ningún registro")
choice.again()
else
spool.device = ""
export("year",year)
export("peri",peri)
zoom.to$("tfcmg8587s000",Z.SESSION, "", "",0)
endif
Subsession 1
before.program:
import("year",year)
import("peri",prod)
choice.user.2: | Importe Devuelto
on.choice:
spool.device = ""
export("year",year)
export("prod",prod)
zoom.to$("tfcmg8184m000",Z.SESSION, "", "",0)
choice.user.3: |Importe Acreditado
on.choice:
export("year",year)
export("prod",prod)
zoom.to$("tfcmg8185m000",Z.SESSION, "", "",0)
choice.user.4: |Importe Compensado
on.choice:
export("year",year)
export("prod",prod)
zoom.to$("tfcmg8186m000",Z.SESSION, "", "",0)
Subsession 2:
before.program:
import("year",year)
import("peri",prod)
I´m having the following problem.
I have a subsession that calls another session.
But I need that, the subession 2, selects only the records selected in subsesion 1. I have tryed the board´s suggestions using functions IMPORT and export, but no success.
I have all the sessions with option 6 (search) but also tryed witn options, 7 and 44.
Any suggestions?
Thanks in advance.
Here is my code
Main session:
choice.user.0: |Historial
on.choice:
if(not marked) then
message("No ha seleccionado ningún registro")
choice.again()
else
spool.device = ""
export("year",year)
export("peri",peri)
zoom.to$("tfcmg8587s000",Z.SESSION, "", "",0)
endif
Subsession 1
before.program:
import("year",year)
import("peri",prod)
choice.user.2: | Importe Devuelto
on.choice:
spool.device = ""
export("year",year)
export("prod",prod)
zoom.to$("tfcmg8184m000",Z.SESSION, "", "",0)
choice.user.3: |Importe Acreditado
on.choice:
export("year",year)
export("prod",prod)
zoom.to$("tfcmg8185m000",Z.SESSION, "", "",0)
choice.user.4: |Importe Compensado
on.choice:
export("year",year)
export("prod",prod)
zoom.to$("tfcmg8186m000",Z.SESSION, "", "",0)
Subsession 2:
before.program:
import("year",year)
import("peri",prod)