Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
YB_Mo
Contributor II
Contributor II

Change default label text

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!

 

 

Labels (4)
1 Solution

Accepted Solutions
rubenmarin

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.

View solution in original post

4 Replies
Mark_Little
Luminary
Luminary

Hi
As a default this can not be changed and would have to be done a chart by chart basis. There maybe an extension that can help?
rubenmarin

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.

YB_Mo
Contributor II
Contributor II
Author

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. 

 

 

 

rubenmarin

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.