5 Replies Latest reply on Nov 21, 2017 8:30 AM by csmith-2 RSS
    csmith-2 Newbie

    Open popup on Event

    Hi,

     

    I'm looking to open up an information popup within a mashup when an event happens.

     

    I have a counter, when that reaches zero, I want the popup to open with some information.

     

    Currently I have only found how to open the popup using the Navigation widget.

     

    Any help would be appreciated.

      • Re: Open popup on Event
        pchung Collaborator

        The Navigate action that opens the pop-up can be initiated with a mashup event (vs. having to click the button)

        so you can use the navigation widget, make it invisible, and fire it with an event.

          • Re: Open popup on Event
            csmith-2 Newbie

            Thank you Pai. That's exactly what I was trying to do. I'll give it another shot this evening and comeback with any queries if that's ok?


            I have a boolean variable in my thing data that's passed into the mashup. That's what I want to use to trigger the event.

            • Re: Open popup on Event
              csmith-2 Newbie

              Hi Pai,

               

              I am still having a problem with this.

               

              I have a Boolean Variable that changes based on a script I'm running within my thing template.

               

              if( value == 1)

              {

                   boolVar = true;

              }

              else

              {

                   boolVar = false;

              }

               

              In my mashup I'm pulling back GetPropertiesValues and getting the row that contains my boolean variable.

               

              In the console, my variable is changing from true to false as expected when conditions are met.

               

              How do I link the navigation widget 'navigation' event to fire with the 'true' value of the boolean I'm pulling back?

               

              I hope that makes sense.

               

              Thanks,

               

              Chris

                • Re: Open popup on Event
                  pchung Collaborator

                  Wire the boolean into a Validation Widget to get an actual event that can fire the Navigation.

                  set the Widget to auto evaluate and again make it invisible

                  be sure to define a parameter for in the Widget configuration that you can wire the boolean to

                  after that in the expression just use inameofyourvariable == true

                  and then you can use the On True and On False events to trigger other services like Navigate