-
March 3rd, 2009, 07:58 AM
#1
Formatting unchanged items...
I want to do a simple thing. Based on the value of an item, I wish to change the formatting of another item.
Like for example, if my checking item is say 'Confirmed', and if 'Confirmed is 1, the format the Status item as green, and if not then make it red.
My problem is that it works only when status has changed. In other words, the formatting applies to the status item only when the value of status item has changed from before.
Heres some code...
Data.onItemUpdate = updateItem;
Data.onChangingValues = formatValues;
//....
function formatValues(item, itemUpdate)
{
///...
if(itemUpdate.getServerValue("Confirmed") == "1")
{
itemUpdate.setAttribute("ItemStatusField" ,ColorNeutral, ColorPositive,"backgroundColor");
}
}
In the above code... the colors change only if the value of "ItemStatusField" has changed in the current update.
Why is it like this? What do I do?
Thanks in advance!!
WK
Similar Threads
-
By hofmanna in forum Client SDKs
Replies: 5
Last Post: January 14th, 2010, 10:02 AM
-
By Otake in forum Client SDKs
Replies: 2
Last Post: December 17th, 2009, 02:13 PM
-
By Isanderthul in forum Adapter SDKs
Replies: 5
Last Post: July 30th, 2009, 11:34 AM
-
By lauraw in forum Client SDKs
Replies: 2
Last Post: July 25th, 2007, 11:06 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 02:30 PM.
Bookmarks