saumya
7th January 2010, 13:34
I m calling following session from my script:

zoom.to$("tdilc4201m000",Z.SESSION,"","",0)

But i need to put some field in zoom session:

Like run no, order no.
User need not to input anything, he can just click on continue button.
Plz suggest.

mark_h
7th January 2010, 19:42
I use export and import to pass variables. So export right before the zoom and then use import in the zoom.from events. Here is one I use on a display session - you could use the same type thing in an update session.

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

saumya
8th January 2010, 08:52
But session which i m calling is standarad session. So i cannt do this.

george7a
8th January 2010, 14:36
try to export the fields before running the zoom.to command:

export("zoom.rfqnum",zoom.rfqnum)
export("zoom.rfqline",zoom.rfqline)
zoom.to$("tdilc4201m000",Z.SESSION,"","",0)


- George

saumya
11th January 2010, 07:32
I already tried but not working. May be in standard session fields are getting initialize always :(

george7a
11th January 2010, 10:28
I once used the user defaults to do this. It is not easy, and you might loose the old defaults, so be careful. Check the following thread:
http://www.baanboard.com/baanboard/showthread.php?p=159826

- George

saumya
11th January 2010, 11:35
Cant use it. Because every time value will change.
I calling generate outbound invoice, i need to cal from production batches,
so production batch will change every time.

george7a
11th January 2010, 11:54
Yes you can. your session will have to change the defaults by editing the table before each time you zoom to the session. That's why I told you to be careful.

remember to put back the original data after you finish.

saumya
12th January 2010, 07:46
Thanks. Good solution. I got it now.

AnuKass
14th January 2019, 12:05
Hi all..
i try to get bpid value from one session.but i can't get any return value from here.
current session is tccomxxxxm000.when i clicking button ,tccom4500m000 session will open(1arg).then i insert record then save and close.when closing the session i want bpid for currently inserted data from session.but i got empty variable.
retst=zoom.to$("tccom4500m000",Z.SESSION,"tccom4500m000","tccom100.bpid",0)
anything i missed?
please help me..

giggty
30th January 2019, 12:50
Try declaring tccom100.bpid (or the whole tccom100 table) in the calling script. Upon returning zoom.to$ should import tccom100.bpid value.

BaanInOhio
31st January 2019, 17:36
The standard zoom sessions in Baan and LN don't always use the obvious table fields when accepting and returning zoom values. When using a standard session, I always start by using the obvious table fields unless I have used the zoom with different variables in the past. When these don't work, I will run ttstpobjinfo (LN) or print objects in Baan to get the symbol table. Scan through the external variables for the standard session to see if there are any that seem like they could be used in a zoom.

For tccom4500, I see "zoom.bpid" so assume that it uses this instead of the standard tccom1## field. There are a lot of sessions that use zoom.<insert field here> instead of the standard table field so will try this one first.

before.zoom set zoom.bpid to the BP that you want to use as the default at the top of the list. Set your local variable to zoom.bpid to use the selected BP.

Note: zoom.bpid has to be declared as external in the session doing the zoom.

mark_h
1st February 2019, 14:42
I always used bic_info6.1 (or 6.2 depending on version) to see what was in a session on our 4c4 systems. Looks like we do not have a ttstpobjinfo session (and I never really used ttstpsessinfo), what is the print objects session?

avpatil
12th February 2019, 18:26
One solution could be to be create a wrapper session on session that is called. In wrapper session you can define your own logic before calling the tdilc4201m000.