on 08-29-2007 2:22 AM
hi friends
I have two views i will navigate from fiest view to another view..and in second view i have few tables.......After first table i havea back button...I can navigate back to first view....but the values in the remainning table remains same.even after i change the values in the first view..........
please update me..
Thanks and regards
Prem
Hi
As far as i understand you have
1) 2 views
2) in second view you have tab strip and image UI elements
there is navigation link between first and second view
so you are able to refresh the contents of table , now for image and tabstrip do the following
1)create a context attribue <i>myVisibility</i> as "type com.sap.ide.webdynpro.uielementdefinitions.Visibility"
2) bind the <b>myVisibility</b> to the <u>visible property</u> of both <b>image</b> and <b>tab strip</b>
3) now in onActionBack/onPlugFromXXView (According to your Reqirement)
add this line of code
wdContext.currentContextElement().setmyVisibility(WDVisibility.NONE);
again in the doinit() of second view don forget to make the image and tab strip elements visible for that
wdContext.currentContextElement().setmyVisibility(WDVisibility.TRUE);
so that when ever you go back of open you can make those objects invisible
i cant say that this is the solution but this is one of the way to solve.
regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Shravan
there will be one default method <b>onPlugFromXXView</b>
instead of using invalidate in onActionBack ,you use the invalidate method in that.so that when ever you visit the second view this method will be executed
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
its is working but i need to destroy the tabstrip...
data inside the tabstrip is lost....
but i also need to destroy the tabstrip when i move back?
i mage is still displayed how to destroy the image.....
with wdcontext only data is lost but the image and tabstrip is not lost,..
Thanks and regards.
prem
Hi Shravan
Are you able to refresh the table?
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shravan
call <b>invalidate</b> function in you onActionBack() method
it will be like
wdContext.node<>Context().invalidate();
this function will help you to refresh the contents by clearing the node
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.