PDA

View Full Version : using dataset enties as constrains in visual elements


JBaruch
10-19-2004, 03:59 AM
Dear friends!

I have filled a dataset with <item> elements from javarpc.
Now I want to use them to design visual elements, for instance, I'd lke to use the value of myDataset:/item[1] as height of some view. How can I achieve it?

Thanks a lot in advance.

antun
10-19-2004, 10:12 AM
You could set the datapath of that view to the attribute/text node you wanted, and then overwrite the view's applyData method to tell it what to do with data when it receives it. Note that applyData takes an argument which is its data.

-Antun