cancel
Showing results for 
Search instead for 
Did you mean: 

Please teach the setting of DialogBox.

Former Member
0 Kudos

Please teach the button setting in DialogBox.

How do you do to make an initial selection of

the button a right side?

I want to change the selection of the left side right.

Accepted Solutions (1)

Accepted Solutions (1)

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

Check with this links for Dialog box in webdynpro.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on creating dialog boxes - 10.htm

Hear is a book for ui elements check with this...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9214b1e5-0601-0010-fdb0-ec3...

Regards,

Vijayakhanna Raman

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you for the answer.

I'm sorry the explanation ..unskilled...

Wanting to do...

1.DialogBox is displayed.

2.The left side has been selected. =[OK]has been initial selected.

3.The "Enter" button of the keyboard is pushed.

4.It moves to the following Step with result "ok" selected.

I want to do these settings to ¥¥¥

The right side has been selected.=[cancel]has been initial selected.

Regards,

chintan_virani
Active Contributor
0 Kudos

BESS,

Did the link solve your problem, if not please elaborate more on the problem you are facing.

Regards,

Chintan Virani.

Former Member
0 Kudos

Hi,

The problem cannot be solved.

so...The following codes as an example

-


String dialigText = "TEST";

IWDConfirmationDialog dialog = wdThis.wdGetApprovalVoucherController().wdGetAPI().

getWindowManager().createConfirmationWindow(dialigText,wdThis.wdGetAPI().getViewInfo().

getViewController().findInEventHandlers("Approve"),"OK");

dialog.addChoice(wdThis.wdGetAPI().getViewInfo().getViewController().

findInEventHandlers("Approve_cancel"),

"cancel");

dialog.open();

-


"Cancel" is not understood though wants to do an initial selection by me.

Could you teach the method of setting the initial selection value?

Former Member
0 Kudos

hi

Try the below code.

****************************************************

String dialigText = "TEST";

IWDControllerInfo coninfo=wdControllerAPI.getViewInfo().getViewController();

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager()

.createConfirmationWindow(dialigText,coninfo.findInEventHandlers("Approve"),"OK");

dialog.addChoice(coninfo.

findInEventHandlers("Approve_cancel"),

"cancel");

dialog.open();

*****************************************************

Regards,

Rathna.

Former Member
0 Kudos

Thank you for the answer.

I'm sorry the explanation ..unskilled...

Wanting to do...

1.DialogBox is displayed.

2.The left side has been selected. =[OK]has been initial selected.

3.The "Enter" button of the keyboard is pushed.

4.It moves to the following Step with result "ok" selected.

Now the highlighting is on “OK”as default setteing.

When I want to put the highlighting on “cancel” as default setting,

how should I write the program?

I thank you for reading my inquiry.

Former Member
0 Kudos

hi

if u want the cancel button to be default, try the code given below.

String dialigText = "TEST";

IWDControllerInfo coninfo=wdControllerAPI.getViewInfo().getViewController();

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager()

.createConfirmationWindow(dialigText,coninfo.findInEventHandlers("Approve_cancel"),"cancel");

dialog.addChoice(coninfo.

findInEventHandlers("Approve"),

"OK");

dialog.open();

Regards,

Rathna.

Former Member
0 Kudos

Hi,

Thank you for the answer.

It was confirmed that the problem had solved by the gotten program.

However, In addition, please forgive the question.

Can it set it without changing the left for the right?

The left side“ok”, With the right side made “cancel”.

Can you do the highlighting on “cancel”as default setteing.

Regards,

BESS