animesh - team. I would need your help on this ...

team. I would need your help on this case
25 Replies
Swarnika
Swarnika4w ago
Some of us can't access the case. Could you please copy paste your question here?
animesh
animeshOP4w ago
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:
const filters = await liveboardRef.current?.trigger(HostEvent.GetFilters);
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.
shikharTS
shikharTS4w ago
What behavior are you seeing @animesh ?
animesh
animeshOP4w ago
@shikharTS 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:
const filters = await liveboardRef.current?.trigger(HostEvent.GetFilters);
const filters = await liveboardRef.current?.trigger(HostEvent.GetFilters);
shikharTS
shikharTS4w ago
were you able to get any support @animesh if the case is still pending we can connect
animesh
animeshOP3w ago
@shikharTS 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.
shikharTS
shikharTS3w ago
This might be a bug on the SDK side @animesh . Let me check with the team internally..
animesh
animeshOP3w ago
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.
shikharTS
shikharTS3w ago
cc @Justin Mathew
Justin Mathew
Justin Mathew3w ago
@animesh which version are you trying on . I have tried the following : In a liveboard with prameters , update using HostEvent
tsEmbed.trigger('UpdateParameters', [{
name: 'Integer Range Param',
value: 3
}])
tsEmbed.trigger('UpdateParameters', [{
name: 'Integer Range Param',
value: 3
}])
then once its loaded
tsEmbed.trigger('GetParameters').then(console.info)
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 ?
animesh
animeshOP3w ago
@Justin Mathew 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.
Justin Mathew
Justin Mathew3w ago
hey @animesh , lemme know if you are free now ?
animesh
animeshOP3w ago
Meet
Real-time meetings by Google. Using your browser, share your video, desktop, and presentations with teammates and customers.
animesh
animeshOP3w ago
@Justin Mathew are you available now?
Justin Mathew
Justin Mathew3w ago
joined
animesh
animeshOP2w ago
@Justin Mathew @Aditya 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.
Justin Mathew
Justin Mathew4d ago
@animesh whats the issue with HostEvent.UpdateFilters ? cc: @Aditya can you check this
animesh
animeshOP4d ago
can we have a quick call?
animesh
animeshOP4d ago
Meet
Real-time meetings by Google. Using your browser, share your video, desktop, and presentations with teammates and customers.
Aditya
Aditya3d ago
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
animesh
animeshOP3d ago
are you there @Aditya can we have a quick conversation?
animesh
animeshOP3d ago
Meet
Real-time meetings by Google. Using your browser, share your video, desktop, and presentations with teammates and customers.
Aditya
Aditya3d ago
Yes

Did you find this page helpful?