mostrightfuture
17th February 2006, 17:18
Hello friends,
I have a small problem. The Before.zoom section is not working. I tried as follows:
field.tcibd001.item:
before.zoom:
if (condition = true) then
attr.zoomsession$ = "session1"
attr.zoomreturn$ = "fieldX"
else
attr.zoomsession$ = "session2"
attr.zoomreturn$ = "fieldX"
endif
what could be the reason?
Thanks in advance
MRF
mark_h
17th February 2006, 17:55
Questions: How is your form field set? What exactly happens does it always zoom to the same session or does the session not zoom at all?
mostrightfuture
17th February 2006, 17:59
Hi Mark,
Actually the section "before.zoom:" is never called, it always zoom to the session which is set at the form field level. I want to call the different sessions based on the condition.
Thanks in advance
MRF
mark_h
17th February 2006, 18:27
On the form do not set the session. On the form have it say session, but do not provide the session.
mostrightfuture
17th February 2006, 18:43
Hi Mark,
If I not provide the session at the form field level then I got the folowing message when try to zoom to session:
"No zoomsession defined"
Mark, actually the section "before.zoom" is not executed, I checked it in the debug. If this section is get called then problem will resolved.
Thanks
MRF
mark_h
17th February 2006, 19:03
The way I have seen this used is on the form you set "zoom to session", leave the session empty and you turn off automatic zoom if it is on.
lbencic
17th February 2006, 19:03
I think that trick worked in Baan IV better.
I just pulled up a before zoom coded in Baan Vc, and it seems to be working ok. I have a normal 'input' field on the form, with a Session zoom defined, and in the script/debug I do hit the before zoom section.
Some thoughts:
- Make sure it's an 'input' field.
- Make sure the debugger is coming up at all, and it does not say 'Not the most recent source code' or similar message
- Are there any before input things going on that would prevent the zoom? Does the zoom work in general?
I guess it could be a tools issue, but I never had a problem or had to do anything special...
mostrightfuture
17th February 2006, 19:29
Hi,
Lisa:
This field is an input field
Yes, the debugger is comming up and I step the code in section "Before.program" and there is not such message 'Not the most recent source code' or similar message
There is no "before input" things.
Mark:
Where I should "turn off automatic zoom" ?
I am surprise because the similar logic is working at other place.
Thanks
MRF
mark_h
17th February 2006, 19:59
In Baan IV when maintaining the field you get zoom options in the lower left corner. I just saw the post by Lisa and Baan V is probably different that Baan IV. The automatic zoom meant that when you moved into the field on the form it automatically launched the zoom when you came into the field.
One thing I have had to do before when modifying forms was to re-create RTDD on the form and script. Not sure if you do this in V or what.
Stuart
15th August 2007, 17:20
This seems to be a problem with the tcitem domain. I have exactly the same problem with this domain and only this domain. All others work. Probably got something to do with the item segmentation in Baan 5. I will research more
ARijke
16th August 2007, 13:45
Yes it has to do with item segmentation.
use:
field.tpppc211.item.segment.1:
before.zoom:
mbdave
23rd August 2007, 12:27
Hi
if you want to call session as zoom other than that you defined in filed level you can use att.zoomcode = 0 in before.zoom event.