cancel
Showing results for 
Search instead for 
Did you mean: 

IWDConfirmationDialog layout in 04, 7 and CE

ChrisPaine
Active Contributor
0 Kudos

Hello,

I'm currently developing some apps in NW04. I have a requirement to get the user to confirm certain actions. As such I am using the IWDConfirmationDialog functionality.

I would like to display different icons depending on the type of message (info, warning, error, etc). So I have used some code like:


		String iconURL = "";
		try
		{
			iconURL =
				WDURLGenerator.getWebResourceURL(
					wdComponentAPI.getDeployableObjectPart(),
					MyConstants.INFORMATION_ICON);
		}
		catch (WDURLException e)
		{
			// don't do anything
		}
		myDialog.setIcon(iconURL);

This does show the icon on the dialog box. However, it appears that the dialog box (as implemented in tcwdcorecomp\Components\com.sap.tc.webdynpro.dialog.confirm.ConfirmationComponent) just uses a simple text with icon. This means the icon appears directly at the beginning of the text and that the text wraps around <b>underneath it!</b>


|-----------------------------|
|                             |
|   ICON error text           |
|   wraps to here             |
|                             |
|      button    button       |
|-----------------------------|

This is so ugly that we have decided not to use any icons in the dialogs.

I was wondering if later versions of this functionality laid out the screen slightly better? So that it resembles more the standard layout of two columns with:


|-----------------------------|
|                             |
|   ICON     error text       |
|            wraps to here    |
|                             |
|      button    button       |
|-----------------------------|

If this functionality has not been provided in later versions, can I please suggest it as a worthwhile improvement? I don't really want to have to code up my own confirmation dialog because the standard one looks ugly!

Cheers,

Chris

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You are absolutely right about this and should open an OSS message (BC-WD-JAV-RUN).

Armin

ChrisPaine
Active Contributor
0 Kudos

I have opened an OSS message and will keep the thread updated with any results...

Chris

ChrisPaine
Active Contributor
0 Kudos

I am slack - sorry.

Update,

the functionality has been changed - quite some time ago.

Message now look much nicer as standard.

- Chris

Answers (0)