cancel
Showing results for 
Search instead for 
Did you mean: 

image not refreshing in a WD table

Former Member
0 Kudos

Hi,

I am facing the following problem:

I have a view that includes a table. One of the columns includes an image element which gets its source from a context element.

when pressing a "go" button, the onAction of the button changes the value of the context element, to point to another source.I expected that the image on the table would change. However, the image does not change, unless I call a method that recreates the table content....

Can anyone say why?

Best Regards,

Oren.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Again,

I have just found out, that when I run my code strp by step with the debugger, the image is indeed updated, but when I run it withouht the debugger, it is not updated, until I refresh the page.

Can anyone explain that?

Thanks,

Oren.

Former Member
0 Kudos

Where is this code located, in an event handler?

Armin

Former Member
0 Kudos

Please post your code, I guess there is something wrong with that.

Armin

Former Member
0 Kudos

Hi Armin,

This is the code segment that should change the image:

IScheduledTasksElement stElem = wdContext.currentScheduledTasksElement();

if(st.getStatus().equals("stStatusSuccess"))

{

stElem.setSTATUS("success.gif");

}

else if(st.getStatus().equals("stStatusFail"))

{

stElem.setSTATUS("failed.gif");

}

Thanks!

Oren.