Hi,

 

You should change the labels of the controls from the code. 

 

FormStringControl  _gridColumn;

;

_gridColumn = _grid.controlNum(i);

_girdColumn.label("bla bla bla");

 

 

You couldn't set the label of field of the datasource at runtime, only you
can read. So your change couldn't be from data source, you should change the
label of the form control.

 

There is a labelText method of datasource field, only for reading. Sorry..

 

InventTable_ds.object(fieldnum(InventTable,ItemId)).labelText() 

 

Good luck,

 

Anil OZAY

 

From: [email protected]
[mailto:[email protected]] On Behalf Of epaulfisher
Sent: Wednesday, December 10, 2008 5:08 PM
To: [email protected]
Subject: [development-axapta] How do I dynamicly update field labels on a
grid

 

I have a custom temporary table with twelve period amount fields. This 
table is used to support an inquiry form and is filled dynamically 
based on user specified criteria. I would like to be able to override 
the (field label) headings in the grid to display the start dates of 
the individual periods as defined in the company's fiscal calendar.

My problem is I don't seem to be able to override these fields on a 
grid in a standard overview tab, (however the labels on for the same 
fields displayed on the "general tab" do seem to change.) 

 



[Non-text portions of this message have been removed]

Reply via email to