cancel
Showing results for 
Search instead for 
Did you mean: 

Confirmatiion Dialog sequence problem

Former Member
0 Kudos

Hi All,

I am getting problem in confirmation dialog like this:

I had written a Method for Validation Check, so variou if else is there

public void dovalidation()

{

if (x<y)

{

Popup dialog1

}

if (i<j)

{

popup dialog2

}

if(m<n)

{

popup dialog3

}

-


-


---

}

If all the condion are true, I am getting only the last dialog, here like dialog3, and after passing its event handler I am seeing on more dialog with no message no event handler button.

What I am trying is that if condition 1 is true it will popup dialog 1 , other should not get processed.

Pl. suggest.

Regards,

Prakash

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

My advice is not to use a confirmation dialog at all for signaling failed validation checks.

Web Dynpro provides the IWDMessageManager API and automatic focussing of the UI element where the validation failed.

Armin

Former Member
0 Kudos

Dear Armin,

Could you pl.let me know about this option in detail.

Regards,

Prakash

Former Member
0 Kudos

Hi Prakash,

Visit this <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/99/34be5f4ee2974a8e7e127c4aeacd9b/frameset.htm">link</a> .

Here steps are given to create a simple application which

uses an input form and do some validations. Use of

IWDMessageManager API is also explained.

Hope it helps.

Regards,

Narinder Hartala

Former Member
0 Kudos

Hi Prakash,

Try adding <b>return</b>statement in each if processing

block. If one block is prpcessed after that function

will return no other if will be processed.

hope it helps.

regards,

Narinder Hartala