You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

How I display a pop-up dialog box with 2 buttons ( Yes or Not ) ? - In the same Windows

3 replies [Last post]
ChiDONEt's picture
User offline. Last seen 1 year 50 weeks ago. Offline
Joined: 09/24/2008
Posts: 9

How I display a pop-up dialog box with 2 buttons ( Yes or Not ) ?
I want to use some similar to: %MsgStyle_YesNo but in tthe same window i dont want that the message display in a separate window.

REM MessageBox(style, title, message_set, message_num, default_txt [, paramlist]);
&AnswerYesNo = MessageBox(%MsgStyle_YesNo, "", 21, 27, "Are you sure to delete this data "); REM Return 6 is Yes and returns 7 its that the botton No was selected ;
If &AnswerYesNo = 6 Then
MessageBox(0, "", 0, 0, "The procedure to eliminate from DB begin... "); &MiSQL = CreateSQL("Delete from %Table(:1) where Condition =: 1", &Condition);
End-If;

Note: Is on PeopleSoft Pure Internet Architecture

Lepa's picture
User offline. Last seen 2 years 20 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: How I display a pop-up dialog box with 2 buttons ( Yes ...

I know WinMessage does display that on a page BUT PeopleSoft doesn't recommend using WinMessage. It has been replaced by MessageBox.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Ashar's picture
User offline. Last seen 5 years 1 week ago. Offline
Joined: 03/26/2008
Posts: 227
Re: How I display a pop-up dialog box with 2 buttons ( Yes ...

what is the issue here?

ChiDONEt's picture
User offline. Last seen 1 year 50 weeks ago. Offline
Joined: 09/24/2008
Posts: 9
Re: How I display a pop-up dialog box with 2 buttons ( Yes ...

Yes, I'm using MessageBox, but it not work... display on other page like modal... And i want that in the SAME WINDOW display the box...
I want to simulate something like the same windows popup when you delete a row on a grid... I dont want that the page reload...