[SOLVED] How to set up a default search value and apply the chart before it is displayed? |
11/10/2022 04:15:25 | |
| PHPRunner General questions | ||
|
J
jacktonghk authorDevClub member
For example my chart shows 10 years of data at the beginning then I have to manually input a search field to limit the data to a single yeat say 2022. How can I assign the value 2022 to the search field before the chart is being shown? Then I can choose any other yeats as a wish. Thanks. Jack |
||
|
|
Sergey Kornilov admin 11/10/2022 |
|
You can use Search API for this purpose. For instance, searchStarted() function can tell you if the user ran any search or not. |
|
|
J
|
jacktonghk authorDevClub member 11/13/2022 |
|
Thanks. I have followed the exmaple in the help menu, put the codes in the " After table initialized" event and it works great. Now I have a follow up question is how to apply the same logic to my dashboard? I have added the chart to a dashboard but it has not effect when I opened the dashdaoard. Thanks. |
|