ADDING MULTIPLE BUTTONS FOR QUERYING FROM ONE TABLE

Hi all,
I have to use two buttons for a table. But I am able to add only a button for querying from the table. For using another button I need to again change the query in the table . I want both of my queries used in buttons to run in the table when clicked

Hey @kgpianabhi

IIUC are you looking to run multiple queries, on clicking a button, we could use an IIFE for this purpose:

{{ 
  function() {
      if (Dropdown.selectedOptionValue === "1") {
        return "Option 1";
      } else {
        return "Option 2";
      }
   }()
}}

Further we can also chain queries, if required:

{{
  Query1.run(() => {
    Query2.run();
  }, () => {
     showAlert("Query Failed")
  })
}}