Skip to main content
saifalik8679
October 28, 2024
Question

Data refresh issues on deselection of a value from a dropdown

  • October 28, 2024
  • 13 replies
  • 1 view

Hi there,
I have a scenario where there is a dropdown, whose value is getting saved in a local!var.

Now, upon selection a specific option from the single select dropdown, depending upon the value, there is another child interface which is consuming the selected local value in its ri!var throuhg which the charts are being generated.

Now, If we select the value, the chart is generated rendering from the child interface.
If we deselect the selected value, the chart is not getting back to the original state.
I.e, it is not being selectec on deselection of a value from the dropwdown.

My goal is upon the deselection of the value, the chart should be back to its normal state, means the refresh case should be working.

Any thoughts upon this?

13 replies

saifalik8679
October 28, 2024

[mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] 

venkatrea696188
October 28, 2024

Can we see the current code. How the data is passed to child interface (Charts). are you querying it on data parameter or querying it in local variable and passing it.
Without code, only thing we can say is it's because refresh behavior. try using Refreshvariable on var change in data that passed to Charts 

konduruc733182
October 28, 2024

Hello [mention:7703864759a3439fbcd9581df22b2bde:e9ed411860ed4f2ba0265705b8793d05] 

Not sure what are the values that are being populated within the child interface and what is the context that you are using to generate these charts. Please share the Child interface code snippet.

shanmathip7466
October 29, 2024

 [mention:7703864759a3439fbcd9581df22b2bde:e9ed411860ed4f2ba0265705b8793d05] 

As everyone said, I don't have complete context about your chart rule like how you query data. 

But clearly it is because of refresh issue or null value passed. I would suggest to check one small thing.

If your query has input of multiple type and I see in the dropdown you select single value. So inside the chart rule if you have query rule called add null check for the parameter. Please refer image for example:

saifalik8679
November 5, 2024

You are correct, The nulls were creating the issue and there was a type mismatch between both the objects which was creating a refresh issue