Seems like reloading the entire table just to change a couple values might be 
more work than necessary. It would be easier to do it dynamically, as you might 
in JavaScript in a browser.

If you are using Pivot 2.0, you can do this via property binding. You can set 
the value of a Label's text property to something like the following:

<bxml:script>
var foo = 10;

function calculateBlockValue(bar) {
    return bar * 10;
}
</bxml:script>

<Label text="${foo}"/>
<Label text="${calculateBlockValue:foo}/>

In this case, the first label's text would be "10" and the second would be 
"100". If the value of foo changes to 20, label 1 would say "20" and label 2 
would say "200".

In Pivot 1.5, you can still do this, but you'll have to do it programmatically, 
by performing the calculation and calling setText() on the labels yourself.

G

On Nov 24, 2010, at 8:54 AM, MSafiri wrote:

> 
> It is a bit more simple. The table is changed due to the data stored in the
> message. Each message have different amount of data. However, each message
> has 3 blocks, what is changing the number of the 3rd block. What is mean is
> that in the 1st message I have 10 times the 3rd block, while in the 2nd
> message I have 25 times the same block. The application is reloading the
> table with the correct number of blocks, depending on the message.
> 
> I will work on the proto this weekend, and will let you know on Monday how
> it goes.
> 
> MSafiri
> -- 
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/How-to-build-similar-interface-tp1922947p1960732.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to