Forum Replies Created

  • Hi findpipi,

    The approach I would take to resolve this would be to add a new viewstate called refresh in your button.

    This viewstate would be set to 1b when selected.

     

    You would then have a query mapper set up to take in your inputs of refresh, startDate and endDate.

    Your query mapper would then run something like the following:

    {[refresh;startDate;endDate] $[refresh; :$[endDate>startDate; `refresh`popup!(0b;1b); `refresh`popup!(0b;0b) ]; :() ] }

    This way, only when refresh is true, will the check be performed and once the check (regardless of whether endDate is greater than startDate is true and if so set popup to be true)  is completed, refresh will be reset back to 0b so that the check will always occur once the user selects refresh.

     

    Hope the above helps.