Choose Language Hide Translation Bar
Highlighted
Françoise
Level IV

Value labels

hi,

 

I try to replace "0,00%" by empty space via JSL inside the column "RmG"

I wrote this script:

 

Column( dt, "RmG" ) << Value Labels( {"0%"}, {""} );
Column( dt, "RmG" ) << Use Value Labels( 1 );

 

 

but it doesn't work.

 

Thanks for your help.

 

best regards

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: Value labels

Your syntax is incorrect for setting a Value Labels.  If the RmG column is character, the label should be set with:

Column( dt, "RmG" ) << Value Labels( {"0%" = " "} );

However, I suspect the RmG column might be a numeric column, and if so, the label should be set with:

Column( dt, "RmG" ) << Value Labels( { 0 = " "} );
Jim

View solution in original post

3 REPLIES 3
Highlighted
txnelson
Super User

Re: Value labels

Your syntax is incorrect for setting a Value Labels.  If the RmG column is character, the label should be set with:

Column( dt, "RmG" ) << Value Labels( {"0%" = " "} );

However, I suspect the RmG column might be a numeric column, and if so, the label should be set with:

Column( dt, "RmG" ) << Value Labels( { 0 = " "} );
Jim

View solution in original post

Highlighted
Françoise
Level IV

Re: Value labels

Hi, 

 

It doesn't work and I don't understand why.

 

best regards

Highlighted
Jeff_Perkinson
Community Manager Community Manager

Re: Value labels

Can you give some more details about how it doesn't work?

 

Is the Value Label property applied but you have values that are not getting labeled? If so, we'll need some details about the column, like it's data type and the values in it? Posting a small sample that demonstrates the problem would be best.

 

Or, is the Value Label property not applied at all from your JSL? If so, is there any error message in the Log Window?

-Jeff
Article Labels

    There are no labels assigned to this post.