Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66783

AC reactive reference parameter does not trigger an event when being referenced by other parameter

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      I have an issue that i have one parameter(AC reactive reference parameter), that is dependent on other parameter.
      i am generating input checkboxes according to the parent parameter.(by generating html by groovy).
      The issue is that when the checboxes are pressed and i am regenerating the checkboxes by the parent parameter the chosen checkboxes get reset.
      i want to keep the checkboxes on the localstorage and redraw the checkboxes by the values inside the localstorage. but for this i need to get the event which refreshes the parameter, so it will check the checkboxes accoriding to the client localstorage.
      i tried using the < body onload...> but the screen gets stuck.
      how can i register an event to the function which will redraw the checkboxes?

      also the javascript functions do not work on the parameter so i have put them on the parent parameter. but still not able to retrigger the functions once the AC parameter is refreshed.

       

      Thx,

      Ariel

        Attachments

          Activity

          Hide
          kinow Bruno P. Kinoshita added a comment -

          Hmm, at the moment I think it would be quite hard. We don't expose enough in the JS code for you to conveniently capture events. And we are slowly adding more security layers due to recente CVE's logged against the plug-in.

          Will need more time to think in a solution that is generic enough, or a workaround. A possibility too is that the Jenkins core might some day have a JS layer too, giving more flexibility to plug-in devs & users to customize UI & parameters.

          Bruno

          Show
          kinow Bruno P. Kinoshita added a comment - Hmm, at the moment I think it would be quite hard. We don't expose enough in the JS code for you to conveniently capture events. And we are slowly adding more security layers due to recente CVE's logged against the plug-in. Will need more time to think in a solution that is generic enough, or a workaround. A possibility too is that the Jenkins core might some day have a JS layer too, giving more flexibility to plug-in devs & users to customize UI & parameters. Bruno
          Hide
          ioannis Ioannis Moutsatsos added a comment -

          To keep an ActiveChoice Reference parameter from updating you must decouple it from the parameter that gets updated. So remove it from the referenced parameters. You can use javascript to update and on demand trigger change events

          Show
          ioannis Ioannis Moutsatsos added a comment - To keep an ActiveChoice Reference parameter from updating you must decouple it from the parameter that gets updated. So remove it from the referenced parameters. You can use javascript to update and on demand trigger change events

            People

            Assignee:
            kinow Bruno P. Kinoshita
            Reporter:
            arielli Ariel Lieberman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: