sanjoy.ip192
29th December 2009, 08:11
Hi All,

First of all wishing everyone Merry Christmas and happy New Year.
We are in Baan V.
I want to know Current group code (Tab) of dynamic form in script.
Based on that, I want to visible /invisible the form field.
Any predefine variable is available to find it?
I have serach in Developer Help guide, but not find yet.

Please help.

Regards,
Sanjoy

NvpBaaN
30th December 2009, 05:48
I am not sure what you mean by "group (Tab)". I assume you are referring to forms as Tabs.
You can find the group code on the form definition, for which you will need to open the form in DFE. Even though forms are dynamic, fields will appear in the same groups in which they are placed in the DFE. Group number 1 is reserved and represents a super group, containing all other groups.

I am also not sure why you want to know the group code if you just want to make a field visible / invisible.

sanjoy.ip192
30th December 2009, 11:43
Yes, it’s referring to Tab of Dynamic form.
I have one repeating group and others two (Material, Inventory) general group in Dynamic form.
In script, I have to check, if user in Material group (Tab) then some fields will not display in repeating group and if user in Inventory group (Tab) then some fields will not display in repeating group. This is my requirement.

So, could anyone pls tell me in script how to find the current group (Tab) sequence number?

Regards,
Sanjoy

MilindV
30th December 2009, 13:45
Hi Sanjoy

Check following predefined variable.

long form.curr 4R Current form number.

Present in BaaN IV and LN Programmers Manual. I don't know about V.

Just try using!!!!!

Thank & Regards
MilindV

amitmmokashi
30th December 2009, 13:55
Hi Sanjoy,
To the best of my knowledge, inputfield.visible() and inputfield.invisible() works only in the before.program section of the code. So, even finding the form/group number wont solve the problem.

Regards,
Amit Mokashi

Juergen
30th December 2009, 14:32
Hi Amit,

sorry, but the functions inputfield.visible() and inputfield.invisible() can also be used in the after.form.read section to change form data at run time.

Regards,
Juergen