Graphics

 View Only
  • 1.  Datalinq to XML File

    Posted 08-09-2017 23:17

    I am connecting Xpression Prime to an XML based Sports Stat System. I am very familiar with Datalinq when connecting to Excel tables, but this is the first time I have dealt with XML.

    Is it possible to point datalinq to the next available row in a tree? For Example, I want the information in the row after PlayerId. I can't point to it directly because the available stats change per player.

    Is it possible to link to an XML row name? For Example, I want to have a text box say "long" as the title for the stat graphic.



  • 2.  RE: Datalinq to XML File

    Posted 08-10-2017 01:53

    Totally understand what you are after. To date, I haven't seen a way to return the next row value of the XML stats - I've only ever returned the actual value associated with set row titles.

    In some XML trees, you can use an INDEX to return the next record, if they are all formatted identically (For Example: if I wanted to return the LONG value for the 4th receiving player in this tree (attached), I would use an index of <4> for the player.) But you still need to know the name of the row you are looking for, and it still returns just the value, not the row header.

    So, when the row name can be flexible (i.e. don't know what it will be for sure), I usually I approach it from the other side: I have a Dashboard parameter or a Datalinq Key that is ready to accept user input (for example "long"). Then use that as the "search" term to query the XML data for a match and return the value. But you still need to know what stat you are after, by watching the data feed, external stat display online, etc.

    I've seen interfaces where buttons or lists are used to help the XPression user input title/header data quickly into Datalinq Keys so they can populate stats on the fly. I've also seen scenes that link to data that will "potentially" be there (for example, a QB graphic will link up to Completions, Attempts, and Yards, and once the data is populated in the XML after a play, the data will fill in as expected).


    #XPression


  • 3.  RE: Datalinq to XML File

    Posted 08-10-2017 12:46
    Here is an older video but it might have some good tips for you: http://xpression.rossvideo.com/videos/Datalinq_Keys_XML/Datalinq_Keys_XML.html

    #XPression