0

Variable of a klip in data source

Hi there!

I've created an user input control to select between different names which will grant me different IDs.

The main problem comes here: may I use a variable created in a klip with values which are being changed from time to time in the dashboard?

Here's an image of what I'm trying to get:

Get an ID number and save it in the "varID" variable and then call a RESTful service using {props.varID} in the URL.

1 comment

  • 0
    Avatar
    Josh Cohen-Collier

    Hi Ion,

    Thanks for posting in our Community!

    Absolutely, this can be done.
    If you have a dynamic datasource, where the $varId is a variable that is used in the query(or body), this would be in the third parameter.

    So, if you have a dynamic datasource that uses this variable, and returns a specific value(eg number of sales) depending on varID, just reference that node/column directly in the third parameter of the SET function.
    EG;
    SET("varID", SELECT(@B2:B6,@A2:A6=$varname), @/salesNumber)

    Hope this helps!

    Best regards,
    Joshua
    _________________
    Joshua Cohen-Collier,
    Technical Support Specialist, Klipfolio

Please sign in to leave a comment.