santosh
19th February 2004, 09:20
Hi

I have made a customised session and in that I want to zoom the the session tdpur4510m000(display purchase order lines). When it zooms i want the session to go to a particular purchase order, so that there is no need for the use to find the particular order.

for this i have used the code as below
field.tdvml991.poln:
before.zoom:
tdpur041.orno = tdvml991.****
where tdvml991.**** is field in my customised form.

But this doesnt work, ie the record is not positioned in the required order no. automatically.

I have also tried exporting the variable ie

field.tdvml991.poln:
before.zoom:
export("tdpur041.orno", tdvml991.****)

But this also does not work. Can any body help me.

Regards

santosh
19th February 2004, 09:25
Hi
I am posting my query again. since there was some '****' coming in my previous post.



I have made a customised session and in that I want to zoom the the session tdpur4510m000(display purchase order lines). When it zooms i want the session to go to a particular purchase order, so that there is no need for the use to find the particular order.

for this i have used the code as below
field.tdvml991.poln:
before.zoom:
tdpur041.orno = tdvml991.pono
where tdvml991.pono is field in my customised form.

But this doesnt work, ie the record is not positioned in the required order no. automatically.

I have also tried exporting the variable ie

field.tdvml991.poln:
before.zoom:
export("tdpur041.orno", tdvml991.pono)

But this also does not work. Can any body help me.

Regards

JaapJD
19th February 2004, 09:32
Declare an external variable named zoom.orno in your session script:

extern domain tcorno zoom.orno

Assign the value of tdvml991.pono to this field:

before.zoom:
zoom.orno = tdvml991.pono

santosh
19th February 2004, 11:15
Hi JaaPJD

I tried ur solution. Still it is not working. But what was the logic behind using the variable zoom.orno ?

Regards

klixy23
19th February 2004, 12:18
You have to use the subsession tdpur4510s000, in which the start option is "find.data" (7), not the mainsession tdpur4510m000, where the start option is "get defaults" (44).

santosh
20th February 2004, 09:46
Hi klixy23

Thanks

It worked

Santosh