2 Replies Latest reply: Aug 3, 2016 11:36 PM by mdecau RSS

    Multiple controls for one parameter: change its display

    mdecau

      Hello,

       

      On datawatch desktop, I have several controls to set a parameter: one date picker (set date) and three buttons (Today, Start of Month, Start of Year).

      The date picker displays the date parameter, but it does not update its value if the parameter is modified by another control.

       

      What can I do to make it update its display?

        • Re: Multiple controls for one parameter: change its display
          Lloyd L

          Hi Marin,

           

          Good afternoon. I'm trying to analyze your parameter. May I ask for the contents of these three buttons that are expected to set the date?

           

          Thanks,

           

          Lloyd

            • Re: Multiple controls for one parameter: change its display
              mdecau

              Hello Lloyd,

               

              The buttons are passing value to parameters, which are:

              - Button Today set parameter start to value .z.d (this is KDB language, it will return the current date)

              - Button Start of Month set parameter start to value ("D"$("." sv (string `year$.z.d;string `mm$.z.d ; "01")))

              - Button Start of Year set parameter start to value ("D"$("." sv (string `year$.z.d; "01" ; "01")))

               

              To clarify, they work fine, the report is updated with the selected dates as expected. However, the display of these dates in the date picker does not update

               

              Thank you for your help