tableau / embedding-api-v3-guide

migration guide for moving to embedding api v3
MIT License
27 stars 9 forks source link

changeParameterValueAsync is accepting display text instead of value ? #44

Open hackwithharsha opened 1 year ago

hackwithharsha commented 1 year ago

Hi Team,

Thanks for releasing Tableau 2022.3 for On-Premise Tableau Server customers..

Here is another issue with Tableau Embedding V3 with changeParameterValueAsync function. which is accepting display text instead of value.

workbook.changeParameterValueAsync("P.Show_Hide", 2)

Thank you !!

ashwinar commented 1 year ago

Hello,

Just to clarify - The signature for the method is changeParameterValueAsync(name, value). Reference

Your above syntax looks correct to me. Is it something else I am missing here?

hackwithharsha commented 1 year ago

@ashwinar @illonage When you create a parameter in Tableau with a display text as "Hello" and value as "1"

It is accepting "Display text" instead of the value of the parameter ? In this case, it is accepting Display text i.e, Hello... Usually, Function naming convention says "changeParameterValueAsync" which should be value, even in tableau calculations we use value not the display_text in custom calculations..