on 05-07-2007 9:54 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.