Graphics

 View Only
  • 1.  Converting datalinq keys from clear words to that used in XML file

    Posted 02-20-2019 20:59
    I have built a March Madness dashboard with datalinq keys that are selected by the operator from 15 or so choices. The choices in the dashboard are in plain english (points, assists, blocks, etc.) I have a script that converts these choices into datalinq keys just fine. HOWEVER, I need to convert these keys into column names used in an XML file. (pts, asts, blk, etc.) I tried a text replace but so far no success. What is the best way to pull this off. Thanks all.


  • 2.  RE: Converting datalinq keys from clear words to that used in XML file

    Posted 02-20-2019 22:58
    SOLVED: script text=text.replace("oldtext", "newtext")

    if text = "POINTS" then
    text = "tp"

    elseif text = "MINUTES" then
    text = "min"
    ' and so on listing all your datalinq choices.

    end if

    'then assign these texts to the datalinq key in the same script

    dim keys as xpDatalinqKeys
    dim key as xpDatalinqKey

    Scene.GetDatalinqKeys(keys)
    keys.GetKeyByName("stat1", key)

    key.AsString = text
    Scene.RefreshDatalinqs
    #XPression