jeffersyuan
24th April 2006, 16:17
Hi, Dear all

How to let a field zoom to different session according othere field's value ?

for example ,
if field a 's value is a, field b zoom to tcibd0501m000
if field a's value is b, field b zoom to whinh0501m000 ?

thank you very much.

mark_h
24th April 2006, 16:52
Try this:

field.some.field:
before.zoom:
if some.other.field="ABC" then
zoom.to$(..)
else
zoom.to$(..)
endif


I think this will work.

jeffersyuan
25th April 2006, 05:07
Hi,
because i must use tcitem field to zoom. If i use
field.sitm:
before.zoom:
zoom.to$()
it will not work,

But when i use
field.sitm.segment.2:
before.zoom:
zoom.to$()
it will work. But the zoom will display twice, and the zoom of segment.2 can not return the value , it will return the value zoom of sitm.

how to solve it ?

And BTW, how to let the defualt zoom not work ?

thank you

JaapJD
25th April 2006, 10:18
You can set the attr.zoomsession$ predefined variable in the before.zoom section.

jeffersyuan
26th April 2006, 12:08
Hi,

I had record the screen and the script as your advice , but the problem will exist.

Jeffers

rksundhar_2000
10th June 2006, 15:57
field.tcibd001.item:
before.zoom:
if (condition = true) then
attr.zoomsession$ = "session1"
attr.zoomreturn$ = "fieldX"
else
attr.zoomsession$ = "session2"
attr.zoomreturn$ = "fieldX"
endif

In form choose Session and leave the session field & Auto Accept "BLANK"
Try this.