Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello folks,
i need your help or at least an advice.
I want to change the default label text. In short, a label text in a table object is automaticly the field name as a text.
For example:
Field : SalesOrder_OrderNumber
Label: SalesOrder_OrderNumber -Think it is using the Getcurrentfield() function.
What i need is more like this as a default value for the label - $(T(Getcurrentfield(),$(vLanguage)))
For example:
Field : SalesOrder_OrderNumber
Label: $(T(SalesOrder_OrderNumber ),$(vLanguage)))
Hopefully you can understand my problem.
Is it possible to change the default?
Thank you!
Hi, after my first paragraph I think on that, and that's when I wrote the second, the closest behaviour is to use the master item to reduce the number of times needed to write the label.
The other option is to edit each object and have your own extension for each object type that works that way, which might be painful in terms of maintenance (development, reediting each time an object comes with and upgrade...).
It might be easier to create an extension that creates the master items and automatically sets the label expression.
Each tale object has a textbox for the field and another for the label, just change the label expression.
In master items there is also a text box to set the label, you can use master item dimensions, set the label once in the master item and it will be used in each table you use that master item.
Thanks Ruben,
but i think you got me wrong. I want that for all new created dimensions in a table. If i created a new dimension with the filed SalesOrder_OrderNumber , i want that the label expression automatically become $(T(SalesOrder_OrderNumber ),$(vLanguage))).
When I add one more dimension with the field SalesOrder_OrderItem, the label expression should be $(T(SalesOrder_OrderItem),$(vLanguage))) without any actions or editions of myself.
So what I want is to change the default function of how a label expression automatically created.
Hi, after my first paragraph I think on that, and that's when I wrote the second, the closest behaviour is to use the master item to reduce the number of times needed to write the label.
The other option is to edit each object and have your own extension for each object type that works that way, which might be painful in terms of maintenance (development, reediting each time an object comes with and upgrade...).
It might be easier to create an extension that creates the master items and automatically sets the label expression.