cancel
Showing results for 
Search instead for 
Did you mean: 

refresh the main view when the pop up was closed

Former Member
0 Kudos

Hi,all

how can I refresh the main view when the pop up window was

closed to see the updated data? In pop up window I update

single row in the table based in main view.

Regards,

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

in the view, create an eventhandler for the event that you have created in

Component controller..

This method would be executing when u close the pop up window..

AM

Answers (3)

Answers (3)

Former Member
0 Kudos

hi micheal

If your word "Table" meant to a R/3 or any Backend table then u shud do as per Abhi's method.

If that word "Table" meant to a Webdynpro table, then do what VS said, and in the event handler in the main view, call the inpound plug of your main view.It will just refresh the page and the particular table row will be updated, provided you have done the external context mapping from popup window interface controller context to main view controller context.

regds

Former Member
0 Kudos

Michael,

There are 2 type of pop-ups in WD, and the answer is different depending on which type you are using:

1. Stand-alone browser window that hosts separate application (result of IWDWindowManager.createNonModalExternalWindow) -- no way.

2. Inner pop-up created via IWDWindowManager.createModalWindow -- absolutely possible:

-- a. Create event in component controller (probably with parameters)

-- b. Create method in component controller that fires this event (with corresponding parameters, if any)

-- c. In view that corresponds to window invoke method created in [ b ] and hence fire event. This should be done in action handler of something like "OK" Button or "Close" LinkToAction.

-- d. In any other controller subscribe to event described in [ a ]

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Valery,

I tried to do it by your suggestion but without success.

It dosn't work.I create Inner pop-up window.

I think that I really need to add parameters to event

and method in component controller.But which parameters?

I have 5 attributes in both views bounded by the same 5

attributes in component controller.There are 5 attributes which

I update in my pop up window(second view).Have I send them

like parameters in event and method in component controller?

Regards,

Michael

Former Member
0 Kudos

Michael,

So you have several views in one component and display inner pop-up that hosts one of views.

Then you may share all your parameters via context mapping, i.e. component controller defines some context node that holds shared data. All participating views has mapped nodes (obviously, mapped to node in context controller).

Your window is closed somehow with custom action, isn't it? Then just add in this action handler a call to component controller method (no params), that in it's own turn fires event declared in component controller (no parameters as well). All other views that subscribed to this event will get notification.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi,Valery

I do the following:

in component controller

1)I create event SaveUpdateEvent

2)I create method

fireSaveUpdateEvent()

{

wdThis.wdFireEventSaveUpdateEvent();

}

in the view (my pop up window) in onActioncloseWindow()

{

wdThis.wdGetFamilyViolenceArticleRemoveCmpController().

fireSaveUpdateEvent();

}

But the main iview is not updated.

Why?

Regards,

Michael

abhijeet_mukkawar
Active Contributor
0 Kudos

Michael,

here you have raised a event but not yet called action handler for that,

so go in the relevant view

goto Method->New->Event Handler->give name of event->In 'Event source' select your component where event is raised->in 'subscribe Event ' select the relevant event

this should work now

regards

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi,

In the popUp you are updating single row, is this row sent to backend r3?

If it is yea, then after sending back the row to r3 you again need to execute model to get the updated data.

let me know more on your problem

regards