![]() |
Datasource Container
Is it possible to dynamically alter the data inside a datasource?
<DataSource Name="PosItemsDS"> <Data Name="1" text="Parent.Parent.Item01.Descrip" /> <Data Name="2" text="B" /> </DataSource> <Button Name="" Size="0,0" OnPress=" Parent.PosItemsDS.1.text=Parent.Parent.Item01.Descrip "/> This does not appear to work. I have also tried: <Button Name="" Size="0,0" OnPress=" PosItemsDS.1.text=Parent.Parent.Item01.Descrip "/> this does not work either. Is it impossible or am I missing something? Silat |
Not sure why, but you can add Data objects to just a plain page. Unless you really need the Datasource for something?
|
if I recall you can not directly access the info in a DataSource object. You can add a data object to a page object and access but not from within aq DataSource object.
|
Quote:
Quote:
<Page> <data> <data> <data> </Page> works. Can it feed a dropdown....that is what i was using the datasource for. Silat |
Just confirming that you cannot manipulate DataSource objects dynamically. As far as I know they are treated as a list and never added into the XML tree at all (or if they are they would be enumerated differently, since a DataSource can contain many same-named Data items and thus the name could not be used to address them).
You also cannot use a Page as a DataSource. What you can do, however, is to use several predefined DataSources and switch them out dynamically. |
Quote:
Silat |
Welcome the EQ2 interface TalTal! :nana:
sarcasm alert |
Quote:
|
| All times are GMT -5. The time now is 10:10 PM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI