cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Multiple Sentences in Confirmation Dialog Box

Former Member
0 Kudos

Hi Experts,

Can anybody please tell me how to display three or multiple separate sentences in a Confirmation

Dialog box. I am able to diaplay two sentences in a single line but the dialog box is getting stretched a

lot. So i want to diaply them in separate sentences onr below the other.

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi Srini

Try to use

"\n" as the line-separator.

e.g.

String dialogText = "line1 \n line two \n line three";

Let me know if you have any issues

Regards,

Siva

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi shrini...

you want to number of line display in one dialog box ..

you have to declare one Strinh like thiss as below..

have to create one event method as OK...which is visible in eventhandler code as

findInEventHandlers("OK");

create one method in component aas showBox....

public void showBox( )

{

//@@begin showBox()

String dialogText="welocme to""\n""India""\n".........................

IWDEventHandlerInfo info=wdControllerAPI.getControllerInfo().findInEventHandlers("OK");

IWDConfirmationDialog win=wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,info,"OKK");

win.open();();

}

thanks

jati

former_member185086
Active Contributor
0 Kudos

Hello Srini

Please closed the thread.Its already solved.

Best Regards

Satish Kumar

former_member185086
Active Contributor
0 Kudos

Hi

1. Only prerequisite is UI element should be TextView ,So by using simple "\n " and + operator u can achieve this

For Exanple

String text = "abcd"+"\n"+"abhddb"+"\n";
		wdContext.currentContextElement().setLabel(text);

Best Regards

Satish Kumar