on 07-31-2007 4:08 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please post your code, I guess there is something wrong with that.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
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.