Graphics

 View Only
  • 1.  Xpression duplicate rows in table with datalinq increment

    Posted 25 days ago

    Hi 

    Is there way to make one row of table data with datalinq assets from RSS/Json used in text fields for example 

    group <row_1>
           text <name_1> items/item<1>/name

           text <points_1> items/item<1>/points

           text <etc_1> items/item<1>/etc

    and then copy this row multiple times without changing <1> to 1...2..3..4..255 :)



    ------------------------------
    Jakub Hasinski
    ------------------------------


  • 2.  RE: Xpression duplicate rows in table with datalinq increment

    Posted 25 days ago

    Hi Jakub, not exactly but put this script on a scene director.

    This example would change Text1 through to Text10 datalinqs.

    You can run the scene director whenever you want to update them.

    If you give me your specific example I can help you write what you want.  

    dim text as xpTextObject
     
     
     
    dim i as integer
     
    for i = 1 to 10
    scene.GetObjectByName("Text" & i, text)
    text.Datalinq.Column = "MatchStatistic\TeamStatistic<" & i & ">"
    next


    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 3.  RE: Xpression duplicate rows in table with datalinq increment

    Posted 2 hours ago

    I've experimented with a couple of scenes where all text objects are created inside a script loop, and their values are populated through DataLinq. One fully working example was a scene that queries the Finnish Ice Hockey League API for a team's 21 player names and numbers and then builds the entire page dynamically.

    This requires creating the necessary xpTextObject instances in the script using CreateObject(), attaching the corresponding xpDatalinq objects (also created in the script) to fetch the data, and then assigning those values to the text objects. The text elements can be positioned anywhere on the screen using functions like SetPosXYZ(), and further adjusted as needed.

    So a fully dynamic layout is possible without predefined text elements. That said, it's certainly easier if the objects can be created and styled in the scene ahead of time, as in Simon's example, and then simply updated via script.



    ------------------------------
    Juha Koivisto
    Tampere
    Finland
    ------------------------------