3 Replies Latest reply on Jan 11, 2013 7:29 AM by philmodjunk

    Popup Menu

    obidon

      Title

      Popup Menu & Trigger script

      Post

           I have a trigger script which executes only when a field is modified.  

           A popup menu is required for this field. Clicking on the popup without changing the value still executes the script.  Please advise how to work around this

            

        • 1. Re: Popup Menu & Trigger script
          philmodjunk

               Either include code that detects the fact that the value has not changed, or use OnObjectSave instead of OnObjectModify.

               To detect the change, Use OnObjectEnter on this field with this script:

               Set Variable [$$OldValue ; Value: Get ( ScriptParameter ) ]

               put a reference to the popup's field in the optional script parameter box. This method successfully captures the value of the field before it is modified even with pop up menus.

               Then your script can compare $$OldValue to the current value of the script to see if the value has changed.

          • 2. Re: Popup Menu & Trigger script
            obidon

                 The OnOjectSave doesn't appear to work for a poup

                 The alternative worked perfectly well

            • 3. Re: Popup Menu & Trigger script
              philmodjunk

                   OnObjectSave WILL work, but perhaps not has you expected it to. It should trip with each new value entered, but the focus has to leave the popup before it trips.