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