embedding-api-v3-guide icon indicating copy to clipboard operation
embedding-api-v3-guide copied to clipboard

changeParameterValueAsync is accepting display text instead of value ?

Open hackwithharsha opened this issue 2 years ago • 2 comments

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 !!

hackwithharsha avatar Oct 20 '22 10:10 hackwithharsha

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?

ashwinar avatar Nov 22 '22 18:11 ashwinar

@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..

hackwithharsha avatar Nov 22 '22 18:11 hackwithharsha