Welcome to Axure Community Site Sign in | Join | Help
in Search

Raised Event Does Nothing

Last post 07-04-2008, 11:34 AM by WhyNoOpenID. 12 replies.
Sort Posts: Previous Next
  •  06-24-2008, 11:01 AM 3005

    Raised Event Does Nothing

    Attachment: event_test.zip

    Hmm. I have a master with a dynamic panel in it. One of the states in that panel has an object with an on-click action that raises an event.If I put that master onto a page, I can see the event in the actions panel as usual.

    However, I can't seem to get the event to do anything if I try to call it on an action from within a dynamic panel.

    Is this a bug or just me not understanding?

    See the attached example.

  •  06-24-2008, 3:32 PM 3012 in reply to 3005

    Re: Raised Event Does Nothing

    It's all set up correctly except in the Event on the instance of the Master on the Home page, the action is to show the "Panel in Master" which is already visible so it looks like nothing is happenning. If you change that to show the "Event Me" panel, you should see that panel become visible when you click on the rectangle that says "I am panel state 2 - click me".
  •  06-25-2008, 5:45 AM 3014 in reply to 3012

    Re: Raised Event Does Nothing

    Attachment: event_test2.zip

    Ah, OK, so that's a straight mistake on my part.

    I still can't get it to work in the wild though. Have a look at this modified version (it's basically pasted from the prototype I'm working on): Type the word "London" in the search box, then click on a hotel from the  resulting list. This should raise an event called "Hotel" and set the "More Options" panel to "Inactive." But I can't get that to work.

     

  •  06-25-2008, 12:49 PM 3022 in reply to 3014

    Re: Raised Event Does Nothing

    I think there's an issue with the interactions in your Suggestion panel clashing with the OnLostFocus event in the Page, probably because you're hiding the Suggestion panel before the interactions have a chance to finish processing.  I added a 400 millisecond Wait to the OnLostFocus event and it seems to work now.

    Cheers.

  •  06-25-2008, 6:16 PM 3028 in reply to 3022

    Re: Raised Event Does Nothing

    I came up with the same thing as bsledford. The OnLostFocus case seems to be interfering with the raised event. We're still trying to figure out why (and why adding the Wait in the OnLostFocus fixes it).

  •  06-26-2008, 4:40 AM 3030 in reply to 3028

    Re: Raised Event Does Nothing

    Even odder, if I add a wait on the version that I posted here, it works. However, I can't get that fix to work on the original. If I copy/paste the affected page (with the fix applied) from the original into a new file, it does though.

    I can't see anything that's different between the two.

    BTW I'm using  5.0.0.1529 on Windows XP.

  •  06-26-2008, 6:41 PM 3036 in reply to 3030

    Re: Raised Event Does Nothing

    Could you try removing the case on OnLostFocus in the original file to see if that fixes it? It would help to to know if that is still what is causing the issue or if there is something else conflicting with the raised event.
  •  06-27-2008, 11:29 AM 3039 in reply to 3036

    Re: Raised Event Does Nothing

    I tried that earlier - removing the OnLostFocus event entirely has no effect (which makes me think maybe the wait step is a red herring?)
  •  06-27-2008, 7:26 PM 3041 in reply to 3039

    Re: Raised Event Does Nothing

    Sounds like it. Don't suppose you could send us the original so we can take a look?
  •  07-01-2008, 9:32 AM 3045 in reply to 3041

    Re: Raised Event Does Nothing

    I'm not actually allowed to without consent from the client I'm working for, so I'll ask - but don't hold your breath :-)
  •  07-02-2008, 6:29 AM 3052 in reply to 3045

    Re: Raised Event Does Nothing

    Attachment: ghost_events.rp

    As expected - they would be reluctant I'm afraid.

    Meanwhile, I've spotted another possible issue with raised events that may or may not be related. See the attached file, which appears to have a master with two events available, but that that don't exist on the master itself. I added them a while ago, but then deleted them.

    Is this weird too?

     

     

  •  07-02-2008, 2:30 PM 3060 in reply to 3052

    Re: Raised Event Does Nothing

    Hi. The raised events actually still exist on the master though they are not being used in any of the interactions. If you open the master, and go to Wireframe->Manage Raised Events, you will see those events in there.

    Can you think of any other way we can help debug the original issue?

  •  07-04-2008, 11:34 AM 3076 in reply to 3060

    Re: Raised Event Does Nothing

    The raised events actually still exist on the master though they are not being used in any of the interactions.

    So if I assign a raised event on something on a master (say, OnClick), and subsequently remove that OnClick event from that master, the event is still visible in the Interactions list when you put the master on a page. That's an interesting (not to say confusing) feature that I'm glad I now about now :-)

    As to the original issue, I'll see if I can remove any sensitive stuff and send you copy.

     

View as RSS news feed in XML