Graphics

 View Only
  • 1.  Xpression / Sportradar integration

    Posted 10-02-2019 16:24

    Hi there,

    I'm attempting to grab player statistics based on a players name, but the Sportradar data we're using changes the players main ID (based on column info) every time the data refreshes. Would there be a way within Data Source to grab that data based on a players name rather than the column number that keeps changing? (this is referencing column name "team\player_records\player<4>" the "4" is the ID that keeps changing daily.

    <player id="435312d6-0f24-11e2-8525-18a905767e44" full_name="Mark Scheifele" first_name="Mark" last_name="Scheifele" position="F" primary_position="C" jersey_number="55" sr_id="sr:player:180859" reference="8476460">
    <statistics><total games_played="3" goals="0" assists="3" penalties="1" penalty_minutes="2" shots="7" blocked_att="3" missed_shots="4" hits="0" giveaways="1" takeaways="4" blocked_shots="2" faceoffs_won="22" faceoffs_lost="20" winning_goals="0" plus_minus="2" games_scratched="4" games_started="2" shooting_pct="0.0" faceoff_win_pct="52.4" faceoffs="42" points="3" overtime_goals="0" overtime_assists="0" overtime_shots="0" penalties_major="0" penalties_minor="1" penalties_misconduct="0" emptynet_goals="0"><powerplay shots="3" goals="0" missed_shots="0" assists="1" faceoffs_won="5" faceoffs="5" faceoffs_lost="0" faceoff_win_pct="100.0"/><shorthanded shots="0" goals="0" missed_shots="0" assists="0" faceoffs_won="0" faceoffs="0" faceoffs_lost="0" faceoff_win_pct="0.0"/><evenstrength shots="4" goals="0" missed_shots="4" assists="2" faceoffs_won="17" faceoffs="37" faceoffs_lost="20" faceoff_win_pct="45.9"/><penalty shots="0" goals="0" missed_shots="0"/><shootout shots="0" goals="0" missed_shots="0"/></total><average assists="1.0" blocked_shots="0.67" points="1.0" blocked_att="1.0" penalties="0.33" missed_shots="1.33" hits="0.0" shots="2.33" takeaways="1.33" giveaways="0.33" goals="0.0" penalty_minutes="0.67"/></statistics><time_on_ice><total shifts="60" total="53:01" overtime="00:00" powerplay="7:37" shorthanded="00:35" evenstrength="44:49"/><average shifts="20.0" total="17:40" overtime="00:00" powerplay="2:32" shorthanded="00:12" evenstrength="14:56"/></time_on_ice>
    </player>


  • 2.  RE: Xpression / Sportradar integration

    Posted 10-02-2019 21:40

    I believe that can be done with referencing it as "team\player_records\player<full_name=Mark Scheifele>" or probably "\player<jersey_number=55>"


    #XPression


  • 3.  RE: Xpression / Sportradar integration

    Posted 10-03-2019 00:20

    I'm having the same type of questions, however my XML feed is formatted "unconventionally".

    I'm using HockeyTech as a stat supplier. My XML feed looks like this: 

    And when you select the item, it looks like this:

    I want to be able to select the Statviewtype based on what the jersey number is, but the value isn't contained in a "row". It's almost as if this format is missing a child in the XML format.

    Is there a way to insert a variable number inside Datalinq? Like this:

    Statviewtype<variableNumberHere>\<jersey_number=38>

    #XPression


  • 4.  RE: Xpression / Sportradar integration

    Posted 10-03-2019 00:40

    @Wes Keeley

    So based on that tree, I think the selection would look like this:

    Column: Statviewtype<jersey_number=38>
    Row: Whatever you want

    And you could actually replace 38 with a datalinq key in your scene (So %jersey% would replace 38) that way you can program the scene to be generic and have the actual take item dictate what player is called.

    Mind sending some sample XML data?


    #XPression


  • 5.  RE: Xpression / Sportradar integration

    Posted 10-03-2019 01:00

    Zachary you're a genius. That's working perfectly. Thanks for your quick help.

    Here's a link to the stat feed xml. I'm using it for player stat graphics and this data feed is new to me this year.

    https://lscluster.hockeytech.com/feed/?feed=modulekit&view=statviewtype&type=skaters&key=0aa45e3905b9a409&fmt=xml&client_code=ahl&lang=en&season_id=61&first=0&limit=100&sort=jersey_number&stat=all&team_id=321 


    #XPression