cancel
Showing results for 
Search instead for 
Did you mean: 

User Input in a Pop Up window

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi............I did not understand the below line-

"currentPopupNodeElement().setPopupAttribute(window);"

Should i create any extra CONTEXT NODE for the' Pop Up window with input fields and a button" ??

waiting for ur reply !!

Thans a lot!!

Regards

Smita

Former Member
0 Kudos

you need to create context node for the window instance of type com.sap.tc.webdynpro.services.session.api.IWDWindow so that you can control your window, to destroy or to hide .

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

refer the below pdf,

Check Interaction of the EmailWindow and the AddressbookWindow in this pdf.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/903fed0d-7be4-2a10-cd96-91367073...

Regards,

ramesh

Former Member
0 Kudos

Hi ...... the link u sent is not opening for some reason.

Former Member