mokhbb
22nd June 2005, 23:18
I have a program script like this:
field.item.f:
when.field.changes:
item.t = item.f
field.item.t:
before.zoom:
tdisa001.item = item.f

field.bp.f:
when.field.changes:
bp.t = bp.f
field.bp.t:
before.zoom:
tccom100.bpid = bp.f

The before.zoom sections is essentially, so that, the values in the zoomed session is equal to from.

The before.zoom of bp works while item does not work (i.e. in debugger mode, the flow goes in the before.zoom section of bp while it does not go at all in the zoom.from section of item).

Any inputs?
Thanks

mark_h
23rd June 2005, 00:22
Do you have the form set-up to zoom on item? For both item.f and item.t. I also notice that your code is only for the item.f. Just double checking - But are you positive you are not trying to zoom on the item.t field?

mokhbb
23rd June 2005, 00:52
Thanks for the reply.
Yes both item.f and item.t fields have a zoom-to Session and Zoom-to:tdisa0501m00 and zoom-return-field tdisa001.item.

The situation is same for BP, accept the zoom-to session is different.

this is really wierd or some silly thing....:)

Any inputs?

Thanks

monica1
23rd June 2005, 12:46
I have the same problem (in Baan V) one time and there is something the segments of the field.
I try to find the session where i have the problem and I send you the code, but try with:


field.item.f.segment.1:
before.zoom:
tdisa001.item = item.f

monica1
23rd June 2005, 12:53
If the problem is the segment the session to assign the automatic zoom in Baan V is: ttgfd4122m000.

en@frrom
24th June 2005, 11:19
Indeed it is due to the field being segmented. Look at this post (http://www.baanboard.com/baanboard/showthread.php?p=87055#post87055) for more information...

Good luck!!
En