New topic: Unexpected Event Behavior on WebDialog
<http://forums.realsoftware.com/viewtopic.php?t=45555> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message mstrickland Post subject: Unexpected Event Behavior on WebDialogPosted: Mon Oct 08, 2012 12:40 pm Joined: Sat Jan 14, 2012 2:29 pm Posts: 7 To put this in context I am fairly new to RB WE. I have added a couple of WebDialogs (slides down from the top over) to a regular WebPage and "dims out" the base page that calls the WebDialog. Pretty cool feature. One slides down and is a search for the underlying form to find a record. I am able to load a list box from a SQL query based on input on that WebDialog. The Search WebDialog also has SELECT, ADD, and EDIT buttons. SELECT picks a record from a list box and closes to return to the underlying WebPage. Clicking ADD or EDIT closes the Search WebDialog and opens the Add/Edit WebDialog in its place. That all works as expected but I was beginning to add some code to the ADD WebDialog form. I needed to do some setup and started by changing a label on the Dialog Form before it was shown (differentiate between ADD a record mode and EDIT a record mode). I put some code in the OPEN event on the WebDialog and it did not work. I found it fired every time the WebPage (where the WebDialog was attached) opened NOT the WebDialog itself (tested via a MsgBox displaying some info from the OPEN event). I moved the code to the SHOW event on the WebDialog and it worked as expected. The MsgBox opened when the WebDialog was shown. There are of course OPEN events on the WebPage (where the WebDialog is attached) but my code was in the OPEN of the called WebDialog form. Would this be the normal behavior? Since WebDialogs are sort of a "sub form" to a WebPage I suppose this would be the normal behavior but it was just un-expected. Are there any other "gotcha's" regarding WebDialogs? Thanks. _________________ Mark [email protected] Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
