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 3 years 3 weeks ago. Offline
Joined: 09/24/2008
Posts: 6

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 5 days 11 hours ago. Offline
Joined: 06/23/2008
Posts: 570
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 1 week 6 days ago. Offline
Joined: 03/26/2008
Posts: 214
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 3 years 3 weeks ago. Offline
Joined: 09/24/2008
Posts: 6
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...

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
The question below is to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.