on 11-04-2007 9:08 AM
Hi,
I need to create a dialog box, that pops up on a button click.
This box should contain some text, a text box for entering input, and "ok,"cancel" buttons.
1. Is there some type of predefined window that I can use?
2. In case the answer for 1 is "no", I assume I should create a new window, and embed a view to it. Can you please explain me how it is done?
Best Regards,
Oren.
Hi,
We have confirmation dialog but you can't have input field in that. If you want just some text to be displayed and Ok CANCEL button then you can use it.
For you requirement, you will have to create a new window with the view designed as per your requirement and can open that window on click of some button in the first view using:
wdComponentAPI.getWindowManager.createWindow()....
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Just create a new window
In WebDYnpro Explorer
<Project name>-->WebDynpro ><component name>>Window-->RIght Click and create window
Now right click on this newly created window and select Embedd View. You will get an option to embedd a new view.
Select new View and then design that new view as per your requirement.
Regards,
Murtuza
Hi,
Below is the code for the same:
IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWnidows(<name of your window>);
// Remember the name should be exactly same keeping the case sensitivity in mind.
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);
window.setWindowPosition(WDWindowPos.CENTER);
window.show();
Regards,
Murtuza
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.