cancel
Showing results for 
Search instead for 
Did you mean: 

<>Please teach the setting method.

Former Member
0 Kudos

Hi,

Please teach the setting of DialogBox.

A present set situation¥¥¥¥

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 gOKhas default setteing.

When I want to put the highlighting on gcancelh as default setting,

how should I write the program?

left=OK right=cancel

-

-


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();

-

-


The left sidegokh, With the right side made gcancelh.

Can you do the highlighting on gcancelhas default setteing.

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

Is there such a setting method?

When it is not possible to do, could anyone answer?

Because it is asked by the customer, it embarrasses it.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

BESS,

The answer is "no"

It is impossible to change default button in IWDConfirmationDialog.

Actually, in many of applications / frameworks we were created, we use custom implementation of "MessageBox" instead of IWDConfirmationDialog, so you may roll your own as well -- actually, it's quite easy.

If you are using CAF UI patterns in your project, there is MessageBox component that has to support such feature.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Thank you both.

The doubt was solved.

Moreover, my best regards in the future.

Regards,

BESS

Former Member
0 Kudos

Hi BESS,

I am not too sure if you can change the focus of a confirmationdialog button.

In case you want to do it, you can create a new external window and call it as a pop-up. You can have buttons in this view and you can set focus as you want.

Refer to this thread for more clarity:

Regards,

Satyajit.