on 02-11-2008 10:37 PM
Hi everybody
I would like to know how can I do to refresh all data from a View with a view container the problem is:
that I have a window that has a view at the same time this has a view container. The Main view brings the data of editable elements when I select one element of the main view the view container brings a list for that element (dependencies) but only the first time a choose an element loads the correct data, when I choose another one it brings the same old data and doesn't make the call for the wdDoInit() method.
The question is:
How do I force the view to refresh all the data or call again the wdDoInit() method?
Thank you for your help
Hi,
What do you mean by refreshing the values.
If you want to refresh the view then you can write view.resetView() in the wdDoModifyView after checking some condition based on your requirement.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All:
Thanks for the replies. The problem actually is that I have two views: a Main one that calls a child one. The child view has a view embed in a view container. The problem is that when the Main one calls the child one, the data is fine. But after the first call, only changes the data from the child view and not the data in the view embed in the viewContainer. I tried to put the code in the wdDoInit and wdDoModifyView but is not trigged, only the first time.
I don´t know what else can I do to make this view embeded to refresh or to initiate again.
Regards
Hi Ayyapparaj:
The view is embed from a different component. Can you please tell me how can expose a method from the other component to my component. I´m nearly new in this and don´t know how to do it.
I understand that I have to refresh the view from the Interface controller of the external component, in that way I can see it in my component.
Thanks for the help
Aida,
Lets say you have two components C1 and C2 and you want method from C1 to be available in C2 then follow these steps:-
1) Goto the Interface Controller of C1 and create a method there lets say doSomething
2) Then goto C2. There you can see Used Web Dynpro Components --> Right click Add Used Component --> Give some name say C1Comp --> Click browse and select C1 --> Click Finish.
3) Next goto Component Controller of C2 --> Properties --> Click Add and check if C1 is added. If not then select the checkbox and select OK.
4) Now goto Implementation tab of C2 and lets say wdDoInit you can write following code:-
wdThis.wdGetC1CompInterface().doSomething();
.
Chintan
Aida,
Do the coding in wdDoModifyView as this view is called every time your view changes.
Also invalidating the node (where you have stored the date) will help too.
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.