cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Refresh

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

i tried but the tab strip isnot destroying....

and also in init method the visibility cannot be set to TRUE i set to Visible

if i put the code I am getting error at " view

cannot be resolved"

IWDTabStrip ts = (IWDTabStrip)view.getElement("FEMTab");

if (firsttime)

{

troyAllTabs();

// }

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Shravan

Are you able to refresh the table?

Regards

Chaitanya.A

Former Member
0 Kudos

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