Graphics

 View Only
  • 1.  DataLinq Loop

    Posted 02-08-2016 17:40
    We connect our election data via DataLinq to an xml created by our election results software. I have a scene that shows results for up to 4 candidates. I would like to use this as a template for all races, but if there are less than four candidates, I see the first candidates loop around on the end again. For example, in a race with 2 candidates, I'll see candidate 1, 2, then 1 and 2 again. I'd like to just not see the second two candidate positions if possible.


  • 2.  RE: DataLinq Loop

    Posted 02-08-2016 18:29
    I think you need to turn off the "Wrap Indices" option in the XML Datalinq configuration; and turn on the "Return Empty on Failure" option in the text object.
    This should return an empty string then if you pass an index that is out of bounds for a particular race.


    #XPression


  • 3.  RE: DataLinq Loop

    Posted 02-12-2016 15:39
    Worked great! Thanks, as always Brian!
    #XPression