Hoppa till huvudinnehållet

Report ran using default values set in report instead of using the date parameters passed to run report activity

Kommentarer

6 kommentarer

  • Stefan Schweigert

    Hi there,

     

    For the inputBeginDate and inputEndDate parameters, you'll need to use " around them:

     

    e.g. ={"inputBeginDate": $formatStartDate.formatted, "inputEndDate": $formatEndDate.formatted}

     

    Thanks, Stefan

    1
  • Jenny Oh

    Thank you. It works now.

    0
  • Permanently deleted user

    @Stefan Schweigert? I am running into similar issue that @Oh, Jenny? had.

     

    I am trying to trigger my report though a workflow, and pass 2 parameters: start date and end date. Report gets created by, it uses default values set in report instead of dynamic values that I add in the form.

     

    These are parameters for my run report activity:

     

     

    At this point I am not entirely sure, if it's my report or workflow that is causing this issue.

     

    Appreciate any help.

    Nataliya

    0
  • Permanently deleted user

    Just realized the image of my parameters didn't upload. Trying again:

    date_parameters

    0
  • Jenny Oh

    Hi,

    You need to format your date. Use the activity "Format Date" , in the Date field, enter this =$form1.state.datePicker1.value.value, then in the Parameters, use formatted output from this activity. Example: the ID in my "Format Date" activity for my startdate is formatStartDate, use $formatStartDate.formatted as input to your "Date_Start". Good luck.

    1
  • Permanently deleted user

    Thank you @Oh, Jenny? . That was a part of my problem. The other part was the date parameter configuration in my report. I had my one date parameter set up with Value Source as 'Range Parameters' - that was a problem. (see attached). But after I create a unique Date_Start and Date_End Parameter, I finally got it to work.

     

    report5_date_parametersdate_parameters_correct 

    Thank again for your help Jenny!

    0

Du måste logga in om du vill lämna en kommentar.