on 09-26-2008 7:43 AM
Hi ..... I have recently started working on WebDynpro... Getting to know the things
Plz help me out for the following requirement -
1. When the application opens, a check is performed. If the user has not updated his profile in the last 6 months ,
a POP UP WINDOW OPENS HAVING INPUT FEILDS AND a SAVE BUTTON .
request you to help me CREATE this POP UP Window having INPUT FIELDS and a SAVE BUTTON for the user to give his details .
As I am very new, kindly give me the DETAILED STEPS.
Plz reply soon.
Thanks in Advance!!
Regards
Smita Mohanty
Hi,
Don't write code in wdDoInit();
when ur application opens one check is performed na so in that check action u write this code.
and u set the view default property is false.
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi!
1)create attributes for your input field
2)create a new window
3)embed a view with required input fields
3)2.create a value node(popup)--> value attribute
set the cardinallity as 1..1 and type as com.sap.tc.webdynpro.
services.session.api.IWDWindow
4)now you can find the window with the window name you have given
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("your window name");
now create the window
IWDWindow window = wdComponentAPI.getWindowManager()
.createModalWindow(windowInfo)
after that set the position and show the window
thanks
vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi smitha
The code which I published earlier was for popup window. But as per your requirement you need to create a window with the view containing your fields and then at runtime create that window instance and call that window in your action button.
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Smita,
go through the following link,
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/301ff0bb-74ca-2910-fa99-eae392695aad]
regards,
Sreedhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
do u mean check validation for period. I think it should be done at back end level. For creating window with required fields check this
1) Create a view with required fields
2) Create a window and embed that view
3)implement the following code
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.setWindowPosition (300, 150);
window.show();
wdContext.currentPopupNodeElement().setPopupAttribute(window);
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ..... I 've written the below code in the wdDoInit() method of my view.
see-
1. My window say "Win" has only 1 view (View1) having all the input fields .
2. From the wdDoInit() method of that view (View1) I am trying to pop up the window (Win) . I 've wirtten the below lines of code -
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("Win");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.setWindowSize(300,150);
window.show();
RESULT-
1. My set of input fileds are geting displyed 2 times adjacent to each other .
2. No POP Up is opening .
Plz help me to solve this out .
Waiting for ur reply and help!!
Thanks a lot !!
Regards
Smita
Hi,
refer the below pdf,
Check Interaction of the EmailWindow and the AddressbookWindow in this pdf.
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try once re login into the sdn.
this is very helpful pdf.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.