EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 03-30-2011, 07:37 AM
TalTal TalTal is offline
A Griffon
Featured
 
Join Date: Nov 2005
Server: Nagafen
Posts: 1,095
Default 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
Reply With Quote
  #2  
Unread 03-30-2011, 11:57 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Not sure why, but you can add Data objects to just a plain page. Unless you really need the Datasource for something?
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #3  
Unread 03-30-2011, 01:39 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

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.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #4  
Unread 03-30-2011, 06:56 PM
TalTal TalTal is offline
A Griffon
Featured
 
Join Date: Nov 2005
Server: Nagafen
Posts: 1,095
Default

Quote:
Originally Posted by Drumstix42 View Post
Not sure why, but you can add Data objects to just a plain page. Unless you really need the Datasource for something?
Quote:
Originally Posted by Landiin View Post
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.
So if I understand you correctly:

<Page>
<data>
<data>
<data>
</Page>

works. Can it feed a dropdown....that is what i was using the datasource for.

Silat
Reply With Quote
  #5  
Unread 03-31-2011, 04:54 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

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.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #6  
Unread 03-31-2011, 09:40 AM
TalTal TalTal is offline
A Griffon
Featured
 
Join Date: Nov 2005
Server: Nagafen
Posts: 1,095
Default

Quote:
Originally Posted by gm9 View Post
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.
lol. Everytime I try to figure out a way to make the things I do more dynamic the darn ui limits me. Thanks for the info!

Silat
Reply With Quote
  #7  
Unread 03-31-2011, 01:14 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Welcome the EQ2 interface TalTal!

sarcasm alert
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #8  
Unread 03-31-2011, 01:16 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

Quote:
Originally Posted by TalTal View Post
lol. Everytime I try to figure out a way to make the things I do more dynamic the darn ui limits me. Thanks for the info!

Silat
Yup, is why I hardly bother adding neet little things to extreme. I've grown tired of jumping through hoops. Every now and thin I'll get a bug and add something. Mostly when I am an work and bored though lol.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:37 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI