spartacus
13th November 2002, 15:13
I tried the following as a zoom section:
zoom.from.absst1500m000:
on.entry:
..............
and cannot get it run.
zoom.from.choice:
on.entry:
..............
for example works.
I checked the sessions name again and again. I find no problem.
Thanks for any sugestion,
Spartacus
sbakshi
13th November 2002, 15:47
Hi,
Are u trying to execute the session from absst1500m000?
You need to proceed as follows:
Example:
(1)
In tihra1101m000 (Hours accounting) session, I have a button created in the form under Maintain Forms - Spec.Options; in the Number column - enter 49 or 50 or 51 etc..., as soon as you enter the number it will give u "user.1" or "user.2" or "user.3" and this has to be used in the |*****Choice Section of tihra1101m000 session script as shown below. Enter your own description, in User Opt - type in ^M or ^V etc., in Choice help - type in <Ctrl> [M] or <ctrl> [V] etc. Click on Form 2 and enter short description and save exit. This short description will be displayed on the Form in the button.
Next on Maintain Forms, click on Buttons and enter the number you entered under Spec.Options say 49 or 50 etc. Save and Exit.
In the script of tihra1101m000 (aabsst1500m000) add the following code:
|*****Choice Section **********
choice.user.2:
before.choice:
if not filled.occ then
choice.again()
endif
on.choice:
zoom.to$("tisfc9033m000",z.session,"tihra1101m000","",0)
(2)
Now in tisfc9033m000 session, add the following:
zoom.from.tihra1101m000:
on.entry:
import("tihra100.mcno",zmcn)
import("tihra100.hrdt",zpdt)
Hope this helps out.
Thanks
spartacus
13th November 2002, 16:40
Yes, I'm comming from absst1500m000?
The difference is:
1. I'm on ERP
2. I use a form command to zoom to my target
Spartacus
sbakshi
13th November 2002, 16:42
Try running it in debug mode and check out if u can see any field values being imported or not.....
Thnx
spartacus
13th November 2002, 16:56
zoom.from.all and zoom.from.choice are working fine.
But my Sessioname is not found, I'm sure.
Spartacus
sbakshi
13th November 2002, 17:03
Are u using any Zoom Type on Maintain Session form.....?
baanprog
13th November 2002, 23:45
zoom.from.<zoom name>:
Each field has a name which can be used as a zoom name. Such a zoom name can be entered in this main section. The zoom name indicates the field from which you are zoomed to the current session (when the subprocess is started from a form command, the zoom name is "choice"). The actions programmed in this section (in combination with a subsection) will be executed only for the specified processes.
© 1998 Baan Development B.V. All rights reserved