on 03-08-2005 7:52 AM
Is there any way to pass non-String parameter by URL?
Hi Kevin,
short answer: No. Everything passed as parameter by url in fact is a string. All you can do is to transform some other values into a string (like 23 into "23" or more complex operations).
Hope it helps
Detlev
PS: Please consider rewarding points if an answer is helpful or be responsive if it wasn't, this also holds for This not only for being polite against the people trying to help but also as a feedback for other people running into the same issue. Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank every answer
I had know that it's no way in webdynpro
but maybe in portal, there are some solutoins
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,Detlev:
My aim is:
When click one button in the window, a popup window show, and there is a button on this popup window,
When user clicked the button on popup window, the popup window will close it self
so is there any idea?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin,
well it wont require any url parameter if you have created both the windows in the same component. From the main window action method you have to open the child window.. so u can do it like below
IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("your child window name");
IWDWindow window =
wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
//Position and open the window.
window.setWindowPosition(WDWindowPos.CENTER);
window.open();
//Save the reference to the window so we can close it later.
wdContext.currentPopUpElement().setWindowInstance(window);
This last line is necessary in order to close the window. Create an attribute of type IWDWindow for storing this reference.
now in the child view of the child window create a button and its action handler. If you want to pass some parameters to the main view you can do that through event publish/subscription mechanism between two windows. Ultimately as a result of your button press in the child view you have to call a method in the mainview whic will close the child window like below.
IWDWindow window = wdContext.currentPopUpElement().getWindowInstance();
window.close();
window.destroy();
Hope it helps!!!
Shubhadip
Hi again,
for detail understanding and step by step instruction of how to create & close window and passing values from one to another you can follow this tutorial
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/dialog boxes in web dynpro applications.pdf
hope it helps!!!
Shubhadip
So it means i can not pass some parameter for some class like IWDWindow?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.