trchandra
19th March 2002, 04:34
Hi,
I have two fields on a form, one is enum field and the other one is string. I wanted to provide zoom from second field to different sessions depending on enum value selected in the first field. How can I do that?
I thought I can use start.session, but without mentioning zoom option on the form, zoom (>) is not enabled. If I leave empty in the session for zoom on the form, when I zoom from that field, I am getting message saying that zoom session is not valid. Is there any workaround?

appreciate your help

regs

~Vamsi
19th March 2002, 04:54
second.field:
before.zoom:
if first.field = tcyesno.yes then
attr.zoomsession$ = "sessionone"
attr.zoomreturn$ = "returnone"
else
attr.zoomsession$ = "sessiontwo"
attr.zoomreturn$ = "returntwo"
endif

I have illustrated using tcyesno domain. One could use a domain with multiple options and use a case statement instead of an "if". For the second field, fill the form with the first set of options.

trchandra
19th March 2002, 04:58
Just I was looking at predefined variables..