LABLE NAME -- Displaying acc to comapny

Hi, I have two companies C1 and C2…i have a field in EmplTable called “Test”…when i choose comapny C1…the Employee Master Form should display the field name as “Test” and if the comapny is changed to C2 the Employee master form should display the field name as “Errors”… How can i achieve this Regards, Rajee

Add this to the form methods

void changeLabel()

{

;

switch(curext())

{

case “CEU”:

Identification_status.label(“TEST”);///this is your test field - change auto declaration property to Yes in the form design

break;

case “DEM”:

Identification_status.label(“ERROR”);

break;

}

}

And call this method in the init or active method of EmplTable form datasource.

element.changeLabel();

Thanks Kranthi :slight_smile: … Its works perfectly… -Rajee