Discussion:
Different label in different companies
(too old to reply)
Arne
2010-08-19 09:07:03 UTC
Permalink
Hi.

I have a problem that needs solving regarding labels.

The problem is that InventDim.InventSizeIDs label needs to be displayed
diferently in company A and company B.

Eg. "Size" in company A and "Width" in company B. And it needs to be
displayed like that everywhere it is displayed throughout the application. So
it need to be

How can this be done? I guess I have to alter somewhere in the SYSLabel
classes, but have not found the right place yet.

Thanks in advance.
unknown
2010-08-19 11:13:36 UTC
Permalink
"Arne"
Post by Arne
The problem is that InventDim.InventSizeIDs label needs to be displayed
diferently in company A and company B.
Eg. "Size" in company A and "Width" in company B. And it needs to be
displayed like that everywhere it is displayed throughout the application. So
it need to be
Quick and dirty:
class InventDimCtrl_Frm
void updateControls()
{
InventDimFormControlInterface fc;
FormStringControl stringControl;

[...]
for (fc=inventDimControls.first();fc;fc=inventDimControls.next())
{
//AXI : relabel dimension on the fly.
stringControl = fc.controlObject();
if(stringControl.labelText() == 'Size')
{
switch(curExt())
{
case 'c01':
stringControl.label('Width');
break;
}
}
//AXI end.
if (enabledToggle.in(fc))
[...]


HTH.

Regards
Michal
--
AXImprove.co.uk | Solutions for AX performance and data storage
management.
Loading...