0

Trouble with date times in Dynamic Data Sources

Hi! I have some problems with dynamic datasources. The value of the variable klipfolio shows me that it changes correctly in the format "yyyy-MM-dd" but when it is sent to the endpoint it arrives in null.

But when I see the values of the query string in the endpoint, they get null

 


What could be the problem?
Thank you!

8 comments

  • 0
    Avatar
    Matias Beltramone

    Variables settings:

     

  • 0
    Avatar
    Rahul Bura

    Hey Matias,

    Thanks for reaching out! :) You can try a test to see if the variables are set correctly on the dashboard by putting them in Labels on a klip on the dashboard. Does updating the dates update the variable values in the labels correspondingly? If not, can you try removing the dashboard from view and adding it again?

    Was the dynamic datasource created from scratch? As for Null, do you have a variable editor value set up if you check under Manage Variable for each of those variables?

     

  • 0
    Avatar
    Matias Beltramone

    Hello,

    To see the variables, I create the table below the drop-down menu in order to see them and configure it in this way:

     

    As you can see, the change of values works within the board.

     

    Was the dynamic datasource created from scratch? 

    Yes, I created datasource from scratch but doesn't work :( 


    How should the configuration of the variable be? What is the correct value to enter in Klip Editor Value?


    I Try placing Klip Editor Value: "props.fechadeInicio" but after updating the endpoint once, that value is fixed to: For example "2018-07-21" and doesn't change again dynamically

  • 0
    Avatar
    Rahul Bura

    This indicates that you are putting incorrect values for each variable name in the Klip Editor:

    So this indicates that for each of the Klip Editor Values, you have input  fechaDeInicio and fechaDeFin respectively. Instead of those, you need to put valid dates that the api expects. So if the API expects dates in yyyy-MM-dd format, 2018-07-21 would be a valid klip editor value for example.

     

  • 0
    Avatar
    Matias Beltramone

    Effectively the API expects the date format yyyy-MM-dd, so configure it with the example you are telling me:

    But now when I change the date time picker, in the dynamic datasource what happens is that it follows the fixed example date, how do I make it dynamic?

    As you can see now, however much the datetimepicker changes, the value is always fixed:

     

    In the datetimepicker I select from "06/07 - 31/07" and I still take the values set in the Klip Editor Value "03-07 - 18-07".

     

  • 0
    Avatar
    Meggan King

    Hi Matias -

    I think you'll need to open a support ticket so we can view your data source. If you've changed a normal data source to a dynamic one, then it might not be picking up your variables yet. Can you please email support@klipfolio.com and explain which Dashboard, Klip and Data source you are using with these dynamic values? 

     

    Thanks,

    Meggan

  • 0
    Avatar
    Matias Beltramone

    Hi Meggan! I'm going to write an email to support.

    Thanks for your attention.

    Matias

  • 0
    Avatar
    Matias Beltramone

    Problem solved. Thanks!

     

    Best,

    Matias!

Please sign in to leave a comment.