0

How to Pass User Input as a Parameter to Web Service Data Source

Hey There,

I want to have a dashboard with two klips.  The first is a user input widget (text field) that sets a variable (let's call it "QueryString").  I second klip is a table that is retrieved from a web service data source (parsing xml response from a web service).  I want to pass QueryString to the GET web service that is being called to get the data for the second table.  So when the user types a new query string and clicks the submit button, the table below it will refresh based on the new query string.

What I can't figure out is how to pass the QueryString variable to one of the data source parameters.  Any help would be useful.

1 comment

  • 0
    Avatar
    Janice Janczyn

    Hi Shashi,

    Your data source query needs to include the variable set by your User Input control using the format {props.QueryString}. The curly braces and props keyword are required for the query to recognize that it is being passed a variable. For more details, please see our article on Dynamic Datasources

    Thanks,
             Janice

     

Please sign in to leave a comment.