bumbaermail
7th January 2011, 09:18
Hello,

I have a "Display" session. The base table of the session have three fields for example "field1", "field2" and "field3" with different datatype. My requiment is either "field2" or "field3" will be visible in same form depending on value of "field1".

I have tried both "inputfield.invisible()" in "before.program" in UI script and "field.is.never.applicable()" in DAL script. But that is not helping.

Please help.

Thanks in advance

amitmmokashi
7th January 2011, 11:05
Hi,

You can try the function "inputfield.invisible" in the section before.field of "field1". Using the same in the "before.program" wont be able to check the value of the field.
Also, you can try to introduce different groups in the Dynamic form having only field1 or all the three fields and then conditionally you can make group visible/invisible.
Hope it helps you.

Regards,
Amit Mokashi

bumbaermail
10th January 2011, 09:38
Hello Amit,

Thanks for your support. I have tried "before.field".But, it is not working. I have also checked in Infor Document and found that "inputfield.invisible" will only work in "before.program" section.

Thanks

amitmmokashi
10th January 2011, 10:20
Hi,

I work on BaaN IV and have found it to be working in "before.field" section.

Regards,
Amit Mokashi

bumbaermail
12th January 2011, 09:16
Hello Amit,

Thank you very much for your reply. I am working in LN FP2 on AIX. Can you please if there is any other dependencies (such as attr.echo etc.) for "input.invisible"?

Thanks in advance
Regards

kmadduri
13th January 2011, 01:13
You can set the field invisible in group section

group.1:
init.group:

put whatever logic you want here with the inputfield.invisible("fieldname"). That should work.

Kumar