New topic: showing a confirmation dialoge to delete
<http://forums.realsoftware.com/viewtopic.php?t=45298> Page 1 of 1 [ 5 posts ] Previous topic | Next topic Author Message krishnamohanpnv Post subject: showing a confirmation dialoge to deletePosted: Sun Sep 09, 2012 5:01 am Joined: Sun Sep 09, 2012 4:56 am Posts: 2 Hi I am new to real studio and I have a small requirement to delete a record from a listbox in a web project. Before deleting I have to show confirmation dialog to proceed with deleting. I tried using messagedialog but it didnt work. So need a best possible solution for doing this. Top markwalsh Post subject: Re: showing a confirmation dialoge to deletePosted: Sun Sep 09, 2012 6:47 am Joined: Wed May 20, 2009 4:43 pm Posts: 877 krishnamohanpnv wrote:Hi I am new to real studio and I have a small requirement to delete a record from a listbox in a web project. Before deleting I have to show confirmation dialog to proceed with deleting. I tried using messagedialog but it didnt work. So need a best possible solution for doing this. Show us the code you are using. MessageDialog will do exactly what you want, but you have to use the result to determine which button the user chose, and handle it accordingly. There's an example on the MessageDialog page in the LR that shows you how to handle the choice made by the user. _________________ RB 2009r4 Windows XP Top krishnamohanpnv Post subject: Re: showing a confirmation dialoge to deletePosted: Sun Sep 09, 2012 6:58 am Joined: Sun Sep 09, 2012 4:56 am Posts: 2 As per documentation, messagedialog is for desktop based app. I am working on web project. So to me I was not able to use it properly. As per documentation, i am now trying to use web dialog. Yet to build it Top capaho Post subject: Re: showing a confirmation dialoge to deletePosted: Sun Sep 09, 2012 9:16 am Joined: Fri Jul 21, 2006 12:28 am Posts: 461 Create a method with SomeName As Boolean and Return Type Boolean. Put your MessageDialog code in the method with your delete code for the action button, return False for SomeName for the Alternate button and return True for SomeName for the Cancel button. _________________ Regards, Carl Capaho Web http://www.capaho.com Top DaveS Post subject: Re: showing a confirmation dialoge to deletePosted: Sun Sep 09, 2012 9:18 am Joined: Sun Aug 05, 2007 10:46 am Posts: 4115 Location: San Diego, CA It would be helpful and save time for those trying to help if you indicate the platform (Win, OSX, or WEB) that you are attempting to use _________________ Dave Sisemore MacPro, OSX Lion 10.7.4 RB2012r1 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 5 posts ] -- 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]
