LittleJohn
16th July 2002, 02:30
Hi,

Here is a silly problem that am facing. ;)

I've got no program scripts to start with.... (Baan IVc2).

On the Purchase Order line the user is supposed to enter a Ledger Account (based on the Item type).

Since there is no program code available, I created a session which is not a Main session & with a zoom type : Modal child dialog. (Start option 21).
The session does nothing more than imports the values of the PO line, does the validation and pops a error message, if required.

This session is attached as a zoom session on the form of the Purchase Order line with 'automatic zoom'. It's attached to the fields "Order Qty" & "Amount" (since the user has to enter either of them). So everytime the user enters the field this session does the checks and pops the message (atleast supposed to). ;)

Now the funny part is... The message pops up AFTER you exit the field and ONLY if the value is zero.
The import code in the pop-up session is for
Zoom.from.all:
on.entry:

Nothing happens if you enter the right value and exit the field.

Could it be possible that there is a standard check on this particular field?... or am I missing something ?
(My session works fine if i put in on any other customized session).

Can anyone please help me with this.
Thanks
Regards
Minhaaj

lbencic
16th July 2002, 17:24
Are you trying to validate the ledger account number? There would be a standard validation in the PO Script, and a mandatory reference to the ledger account table. Both of those would validate the field already. Are you saying you have a special validation you want to include?

If you autozoom from a field, try putting your subsession code in debugger and make sure it's hitting it. It should be, but probably your form controls are not quite right..? Do you have a form for your subsession? And, does the user have to hit continue to validate, or are you pulling it all in and validating right there? If so, what section...

Need more info :)

LittleJohn
16th July 2002, 18:58
Hey... Thnx for the reply...

This is a special validation that am doing...

I put it in debugger and like i said.. it works fine with other form fields of other sessions....
Yes.. I have a form for the subsession.. and everything is coded in

zoom.from.all:
on.entry:

So.. the user need not hit continue to validate. The subsession is popping up ONLY when the user exits that field....
but If I put this subsession to any other form field on any other session... if works fine... it pops-up on entry to that field.

strange.. but true :)

~Vamsi
16th July 2002, 19:56
Minhaaj,

Look under Code & Utilities for extending components without source code. Your problem is solved easily with that solution. Sites that do not have source code should consider adding that tool their possible solutions.

LittleJohn
17th July 2002, 20:42
Vamsi,

Thanks for the very good suggestion & your help.

With the help of the tccomdllrush and the 3 GL script, I was able to generate the 'source code' for the Purchase Order Lines session. As suggested, I was able to add my own conditions to the events in the script. & compile the script with no problems whatsoever.. and yeah.. works like a charm :)

I could not find any help/procedure documentation on how to go about this... Well.... I'll create a procedural doc on how to use this tool. This is the least I can do for such a good tool :)

I must say that the program you have developed is cool. Kudos !!

Minhaaj