RameshS
12th April 2014, 14:50
How to change the form label description on run time .

for example

tdsls400.orno label is Sales Order by default. But like to display only "Order" in the Form instead of default description, this should happen on run time.

Same this for Enum field - change the description

for example tcyesno domain

i like to change it to yes = " Sales" , " No " = "Purchase"

on run time.

Thanks in Advance

bhushanchanda
13th April 2014, 08:07
Hi,

Have you tried change.field.label()

Here's the Link (http://www.baanboard.com/programmers_manual_baanerp_help_functions_form_and_form_field_operations_change_field_label) for info.

RameshS
14th April 2014, 08:32
Thanks

How to change : Enum field - change the label description

for example tcyesno domain

change DESCRIPTION (LABEL) yes to " Sales" , No to "Purchase"

on run time.

bhushanchanda
14th April 2014, 10:41
Hi,

For the Enum fields the descriptions are picked up from the Data dictionary itself i.e. from Enum Data Set. For that, you can create a domain having description you need i.e. Yes = Sales and No = Purchase. That will be a proper way to do what you need.

mark_h
14th April 2014, 14:02
Also checkout set.enum.values.for.field(). As bhushan mentioned you would create your own domain to use. With the set.enum.values.for.field() you can select which values are displayed. I never tried using it, but I guess if you wanted you could have a domain with yes, no, sales, purchase. Then for each field set which two values are displayed.

bhushanchanda
14th April 2014, 14:07
Hi Mark,

I have used that a lot of times. set.enum.values.for.field() is used when you have say 5 enum data set but you want your form to show only a few of them.

RameshS
15th April 2014, 06:58
i have also used hiding the enum fields value on run time, but i was looking for possibility with change of label in enum fields on run time. which as if now not possible.

thanks again.