cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying information collected from a popup window

Former Member
0 Kudos

Hello All,

Does anyone know of a solution for the above mentioned problem ?

<b><u>Scenario</u></b>

1) I have a web dynpro application running with the information of an employee pre-populated on the view upon initializing. (Eg : Name, department etc ...)

2) In the event that someone changes the name of the employee and click on change button, a separate popup window will appear displaying a list of matched name.

3) Once a matched name is selected, this information will be passed back to the initial web dynpro application.

<u><b>Questions</b></u>

1)Should I be using a popup window or should I be launching another web dynpro application to display the result of the serach list.

2) How do I transfer my selected name from the search result and have the info re-populate on the initial web dynpro app ?

Thank you very much.

from

Kwok Wei

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

When u close the popup window fire an event with parameters of the values selected.

Declare a Event Handler and Subscribe to that event in the ur view and the change the details in the form in that method.

Hope this helps.

Regards,

Sowjanya.

Answers (3)

Answers (3)

Former Member
0 Kudos

Actually I have tried

SubscribeEvent, fire event

And mapping

these 2 ways you guys mentioned , but they didn't work.

The popup window can not trigger any event of its parent.

I am waiting for the any new solution, either.

Former Member
0 Kudos

Thanks Guys for the great support. I shall go try it out and revert on my results. Thanks again for the wonderful support !!

Former Member
0 Kudos

Hi handle the event in the pop up view itself.

From there call a method in the controller .

There you can fire an event which is to be handled in the parent window.

Former Member
0 Kudos

Hi,

You can create a pop up window for displaying the search result.This wuld help the communication between the two windows easier than an external window.

You need to create a mapping between the context attributes present in the view embedded in the pop up window to the controller and inturn to the base view.

Do revert for further clarifications

Regards

Noufal

Former Member
0 Kudos

Thank you everyone for the prompt answer. I have another query den based on the replies (kindly pardon my extreme lack of knowledge in this area)

1) The popup window will be another webdynpro app ? If so, does it implies that its going to result in some form of 'inter-application' navigation ?

2) Does anyone know of some tutorials/demos/documentations that may highlight my problem ?

from

kwok wei

Former Member
0 Kudos

It can be another Application or PopUp Window.

Which ever it may be depending on your requirement.

See Map the Value Attribute i.e Bound to the UI Element to the Interface Controller of another Application where u r finding Matched Value and Set the ValueAttribute of the Interface Controller with the Value u selected.

That will automatically reflect in your Main Page.

Other wise u can go by methiod as Sowjanya suggeste in previous Post

With Wishes

Krishna kanth

Former Member
0 Kudos

Hi,

You need not create a different application. All you need to do is create a new view, a new window Embed the view into this new window. This window can be called as the pop up window.

So I don't think you need an inter application navigation

IWDWindowInfo windowInfo =(IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PickUPEmployeeWindow");

IWDWindow window=wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo,true);

window.setWindowPosition(WDWindowPos.CENTER);

window.open();

wdContext.currentContextElement().setWindowInstance(window);

Here PickUPEmployeeWindow is the window you created to display as a popup.

Embed the view containing the details into the window

Hope this would do .

Message was edited by: Noufal Kareem

Former Member
0 Kudos

Hi

You can send the Value Attribute Name i.e mapped to the UI Element to the Application and set the Value i.e Matched to the Value Attribute and Close of that the value will be reflected in the Main Page.

Map the Value Attributes of both the Applications.

With Wishes

krishna Kanth