How a field in form can be made invisible through x++ code??

Hi All,

How a field in form can be made invisible through x++ code??

Regards,

S.Kuppusamy

one way of doing it is set the auto declaration property of that field in the design to ‘yes’

now put this code in active method of the form datasource

fielName.visibale(False);

(or)

Table_ds.object(fieldNum(Table, Field1)).visible(False);

Hi Kranthi,

Yeah. It s working well now. Thank you.

Regards,

S.Kuppusamy.

i want to create or add a sales quotation field in update button which is avaliable at lead details form…and after that when lead is in open state the button is in invisible state and when i qualify that lead then this button is visible now…

how i can do this??

help me…

thank you in advance…!!!

i want to create or add a sales quotation field in Function button which is avaliable at lead details form…and after that when lead is in open state the button is in invisible state and when i qualify that lead then this button is visible now…

how i can do this??

help me…

thank you in advance…!!!

Hi anil,

For this you need to set some condition in active method itself.

If you are using ENUMs

If(table.conditionalfield==enum::open)

yourfield.visible(false);

if(table.conditionalfield==enum::qualify)

yourfield.visible(true);

and also you will need to set auto declaration to YES in properties for that particular field before you code it.

Thanx buddy…!!!

Now it’s working…Thanx

hi,

One of the way to make field invisible through X++ code:

You can give this in either init or active method of DS.

fieldname.visible(false);