blanchap
20th April 2006, 19:06
Hi,

what's wrong with this?

zoom.data = zoom.to$("tiwms0560m001",z.session,"ecm","zoom.data2",0)

in session tiwms0560m001, zoom.data2 is not empty and i do an export in the on.exit of the zoom.from.ecm

zoom.data is a string of 15, so is zoom.data2

Still, zoom.data is empty after the zoom.to

What am i missing?

Regards

PB

mark_h
20th April 2006, 22:45
Try declaring zoom.data2 in the calling program and see if it gets the return value. Seems to me I saw this somewhere.

mr_suleyman
21st April 2006, 08:11
And also you can use export() - import() command to transfer your variables.

Good LUck !

vahdani
21st April 2006, 12:44
Hi,

declare the zoom.data2 variable as external in the called progam. It should also be a string type! You don't have to use the export() funtion explicitly zoom.to$ will bring back the variable value.

blanchap
24th April 2006, 19:07
Hi,

Still nothing. declared zoom.data2 as external in tiwms0560m001, used import, used export and still zoom.data is not giving me anything.

followed in debug and zoom.data2 is getting populated in tiwms0560m001. Doing an export just before an exist of tiwms0560m001. When back in my session (where i do the zoom.to), zoom.data is not getting anything.

The way i see it, it should work. It's working in other scripts i don't know why it's not in this script.

Regards

PB

mark_h
24th April 2006, 19:26
This example works:

extern domain tcmcs.str20 tudll940.aapg
extern domain tcmcs.str15 test.cses

field.test.cses:
before.zoom:
test.cses = zoom.to$("ttadv2506s000", Z.SESSION, "tudll940.aapg", "", 0)


This code is from my test session which runs zoom.to on ttadv2506s000. You need your zoom2.data declared external in the program that calls tiwms0560m001. The above code returns the session code.

blanchap
24th April 2006, 20:44
Hi,

got it. I have to do

zoom.to$("tiwms0560m001",z.session,"ecm","",0) instead of
zoom.data = zoom.to$("tiwms0560m001",z.session,"ecm","zoom.data2",0)
and use export("zoom.data",zoom.data2) in tiwms0560m001

Thanks for all your help. Got me on the right track.

Regards

PB

dileshtare
24th February 2012, 04:56
Can any one post a script for the above code as I do face the same problem as described in the above posts, but still not able to find a solution?

mark_h
24th February 2012, 15:01
dileshtare the answer is right above your post. In the calling session this was done:

zoom.data = zoom.to$("tiwms0560m001",z.session,"ecm","zoom.data2",0)


In the called session(or zoomed session) tiwms0560m001 this was done:

export("zoom.data",zoom.data2)


Maybe if you post your code we can assist better.