0

Dynamic Datasource + Variable Setting -- Different Behaviour in Klip Edit vs Klip Use

Hi, 

I have a klip accordingly : 
* Old Record Dropdown:  where the data source is fetching from a database and listing some records. I add the selected value to a variable. let's call it OldValue

* New Record Dropdown:  where the data source is fetching from a database and listing some records. I add the selected value to a variable. let's call it NewValue

* Table with dynamic data source: In this datasource, I connect to a mysql db with dynamic parameters, i use {props.OldValue} and {props.NewValue} as part of the mysql query in my datasource. 

When I am in the Edit mode of the klip, I can see that all selections are working and according to dropdown selections my table is updated with the fetched dynamic records based on variables. 

However when I save and exit the klip and use it in a dashboard, it doesnt work. 

When i inspect the network calls, 
In the edit mode of the klip, when I make a selection from the dropdpwns, it calls  https://app.klipfolio.com/workspace/ajax_setUIVariable
When i save the klip and use it in a dashboard however it calls  https://app.klipfolio.com/dashboard/ajax_setProps

Am I doing something wrong or is there a bug? 
This is the first time I'm observing a klip behave differnetly in edit mode vs usage mode.

Thanks,
Zeynep

1 comment

  • 0
    Avatar
    Meggan King

    Hello Zeynep,

    There can be a number of reason a variable works in the editor but not on the dashboard. In the editor, there is a default value for the variable, so your dynamic data source will use the default. On the dashboard, the variable must be set - either via a formula like MAPFLAT or SET, or it must be connected to a user input control, text field, or date selector. 

    The Klipfolio support team has tools to help you debug this, so you should enable support access to your account and open a support ticket for further investigation. 

    Debugging via the network calls is not required. 

    Thank you

    Meggan

Please sign in to leave a comment.