`onParameterChanged` is not called after the user ...
# help
b
Background: The React/JavaScript/TypeScript app runs a liveboard embed using the
@thoughtspot/visual-embed-sdk@1.33.3
library.:
Copy code
tsx
import { Action, LiveboardEmbed as LiveboardEmbedRef } from '@thoughtspot/visual-embed-sdk';

const LiveboardVisuals: React.FC<LiveboardProps> = ({
  liveboardId,
  visualId,
}) => {
  const embedRef = useEmbedRef() as React.MutableRefObject<LiveboardEmbedRef>;

  return (
    <LiveboardEmbed
      ref={embedRef}
      liveboardId={liveboardId}
      vizId={visualId}
      onParameterChanged={(e) => {
        console.log('onParameterChanged');
        console.log(e);
      }}
    />
  );
};
Aim: When the user applies a parameter, the console log should be called.
Copy code
ts
      onParameterChanged={(e) => {
        console.log('onParameterChanged');
        console.log(e);
      }}
Issue: When the user applies a parameter, the console log is not called. Furthermore, I tested with `onFilterChanged`:
Copy code
ts
      onFilterChanged={(e) => {
        console.log('onFilterChanged');
        console.log(e);
      }}
and it logs to the console. So, is
onParameterChanged
not working in v1.33.3?
s
@justinmathew_tsdev can you check if this is not working in 1.13.3? cc @utsav.kapoor
j
let me check @shikharts_67242 @baran_98284 can you share the thoughtspot version as well ?
b
@thoughtspot/visual-embed-sdk
v1.33.3
j
click on the ? on thoughtspot cluster
youll see something like this
b
@justinmathew_tsdev Version: 10.1.0.cl-215
j
thank you , let me check
@baran_98284 i checked its seems to work for me , would it be possible to record a video of what you are trying
b
sure
i will do it now
j
is possible you can test here as well : https://codesandbox.io/p/sandbox/authmethod-testing-m8l3cm
b
sure, i will take a look at it now
- What is "TS host"? - How can I find my "TS host"? - Could you give an example for "TS host"?
j
tshost is the thoughtspot server url
b
is it
https://PROJECT_NAME.thoughtspot.cloud/
?
j
yes
b
I tried every AuthType. When I click on the "init" button, the app throws one of the error/warning above
j
its fine, you might haev to white list the sandbox, the video should be enough
can you give EmbedEvent.ALL a try
b
is that equivalent to
onALL={}
prop in the React library?
j
yes
b
trying, 2 sec
I checked all the logged event objects, there is nothing about the parameter being changed
j
thats strange , let me see if there are some recent fixes for this cause code wise its looks correct
b
I might be onto a bigger issue: I created a similar issue yesterday about trying to update parameters with
embedRef.current.trigger(HostEvent.UpdateParameters,
(link to the discord thread: ). Running the code does nothing, so it makes me wonder if the issue in this thread is linked to that issue
j
this could be it, there were some fixes around this can you give me your cluster name i.e PROJECT_NAME i ll ask in internal forums
b
could i dm you?
j
yes
b
thanks, i sent it
j
thank youu, let me find some info
ref cc: @utsav.kapoor @aditya_41082
@baran_98284 We do have fixed this in later versions , i ll check with team on how to get your cluster the fixes
a
@baran_98284 Can you please share the HAR for updateParameters not working?
b
HAR file of the network tab in chrome devtools?
a
Yes @baran_98284
b
okay, i will do it now. Give me 1-2 mins
I direct messaged you a screenshot and the HAR file
a
Thanks @baran_98284 for connecting. I checked with @baran_98284 and the parameters are getting applied but the parameter chips were not getting updated as in 10.1 we are updating parameter runtime. The update of liveboard spec is being supported from 10.3 onwards. @baran_98284 will check with Thoughtspot account executive to check when there cluster will get upgraded to 10.3. He is unblocked now.
b
yes, thank you very much Aditya and Justin 🙏