Graphics

 View Only

Datalinq through Scripting

  • 1.  Datalinq through Scripting

    Posted 3 hours ago

    Hi All,

    I've used this form before to create some scripts for setting datalinq's on text objects in Xpression, and I have one example I can't get working:

    for i as integer = 1 to 30
        Dim textObj as xpTextObject
        Dim dl as xpDatalinq
        
        scene.GetObjectByName("INJURY FULL NAME " & i, textObj)
            textObj.LinkName = "NBA Injury Report - All Teams"
            textObj.Column = "players<" & i & ">" 
            textObj.Row = "PlayerID"
    next

    The info is coming from a JSON that has the index in the column as opposed to a usual row. I can see that the script is using the correct datalinq info, but the index in the column is constantly defaulting to 1. Is it possible to change the index as an integer for the column through scripting? Thanks for all the help!



    ------------------------------
    Ben Kessler
    Orlando United States
    ------------------------------