animesh - team. I would need your help on this ...
# dev-help
a
message has been deleted
s
Some of us can't access the case. Could you please copy paste your question here?
a
I'm seeking some help in understanding a behavior we're seeing when trying to retrieve overridden parameter values from a Liveboard. We're currently using the following HostEvent.GetFilters event to fetch filters and params:
Copy code
const filters = await liveboardRef.current?.trigger(HostEvent.GetFilters);
While this call does return a list of parameters, it doesn't always include the overridden values as expected. For example, Please have a look at the attached snippet. it has response that we are getting. For the parameter Currency Code, the overrideValue is null However, for 'Name Format', the overrideValue is correctly returned as "Include Preferred" On further inspection, it seems this discrepancy is related to how the parameters were overridden: ✅ The 'Name Format' parameter was changed manually via the UI (inside the embedded iframe). ❌ The 'Currency Code' parameter was overridden programmatically by setting the 'runtimeParameters' prop in the React LiveboardEmbed component. This leads me to believe that HostEvent.GetFilters may not fully reflect runtime changes made via the SDK. https://cdn.discordapp.com/attachments/1403404711675039866/1404366554128453683/message.txt?ex=689aedc6&is=68999c46&hm=b62f644953863881cf9ee1cd09c2acc5b8b691379718d5bb06f7304f1d9f2599&
s
What behavior are you seeing @animesh_74387 ?
a
@shikharts_67242 Can we have a quick call to align? I believe I’ve explained my point clearly, but please let me know if there’s any specific part that needs further clarification. TL;DR: I’m unable to see the overridden value of a ThoughtSpot embedded Liveboard parameter when triggering the following event:
Copy code
const filters = await liveboardRef.current?.trigger(HostEvent.GetFilters);
s
were you able to get any support @animesh_74387 if the case is still pending we can connect
a
@shikharts_67242 do you have any update on this.
await liveboardRef.current?.trigger(HostEvent.GetParameters);
the response returned by triggering the
HostEvent.GetParameters
event. doesn't return the overridden parameter value. please have a look at the response.
s
This might be a bug on the SDK side @animesh_74387 . Let me check with the team internally..
a
When examining the JSON response from
await liveboardRef.current?.trigger(HostEvent.GetParameters)
, you'll observe two parameters with different behaviors: 1. The parameter overridden through the ThoughtSpot LiveBoard UI (
Name Format
) includes its overriddenValue in the response. 2. The parameter modified via
HostEvent.UpdateParameters
(
Currency Code
) doesn't show its overridden value in the response. This difference occurs because parameters changed through the LiveBoard UI reflect their overridden values in the output, while programmatically updated parameters via
HostEvent.UpdateParameters
don't return their modified values in the response.
s
cc @justinmathew_tsdev
j
@animesh_74387 which version are you trying on . I have tried the following : In a liveboard with prameters , update using HostEvent
Copy code
tsEmbed.trigger('UpdateParameters', [{
    name: 'Integer Range Param',
    value: 3
}])
then once its loaded
Copy code
tsEmbed.trigger('GetParameters').then(console.info)
However i have noticed if we try to get before the value is set in UI and try to Get , it returns the old value. Can you try to get with a delay ?
a
@justinmathew_tsdev can we have a quick call to discuss this. Can you please let me know your availibility. I am generally available between 11:00 AM till 23:30 PM IST.
Wanted to walk you through my case.
j
hey @animesh_74387 , lemme know if you are free now ?
a
@justinmathew_tsdev are you available now?
j
joined
a
@justinmathew_tsdev @aditya_41082 like the way you recommended me to trigger
HostEvent.UpdateParameters
event instead of passing
runtimeParameters
props to the
LiveboardEmbed
react component. It seems to be working and giving desired results. I was expecting to trigger
HostEvent.UpdateFilters
event instead of passing
runtimeFilters
props to
LiveboardEmbed
react component, It is not working properly. Can you please have a look.
j
@animesh_74387 whats the issue with
HostEvent.UpdateFilters
?
cc: @aditya_41082 can you check this
a
can we have a quick call?
a
Hey Sorry, I didn't checked discord at that time
Did you guys had a call?
If not, we can have it now
Or you can suggest a time which works for you
@animesh_74387
a
are you there @aditya_41082
can we have a quick conversation?
a
Yes