Announcement

Collapse
No announcement yet.

DataReader - check when data is ready

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • DataReader - check when data is ready

    Hi, I have a script where I am using DataReader to load a xml file.
    System.SendCommand("#" &Scene.FindContainer("read_header").VizId & "*FUNCTION*DataReader*load INVOKE")

    In the script I need to know when the data is ready (DataRader has finished loading the xml flile) - before I start to use the data.

    How can I check if all the data is ready?


    Thanks in advance,
    jogvan olsen

  • #2
    Hi
    use the "Post Update Action" to set a DP variable or run a script or a director. I can't see it in the doc but this is called after data is read.
    HTH
    Adi

    Comment


    • #3
      Thank you, I will try later today...

      Comment


      • #4
        Thanks again,
        Just tested and it works perfect.

        Now I call the script - which is processing the data - in the 'Post Update Action' field : 0 $(THIS_SCENE)*TREE*$script_get_data*SCRIPT INVOKE get_tingmenn;

        and all the data is ready when the script start.

        jogvan

        Comment


        • #5
          Hi Guys, Sorry to invade on your post, i have a similar concept which i need to achieve.
          I have a SQL Server Data Table. i have 1 field which is empty and will receive data and then go empty again. i was wondering using datapool how i could get a director to animate when the data is loaded into this field and then obviously will have a 5 second timer to animate out, and it will repeat the process only once that field is loaded with data.
          Regards
          Mohamed

          Comment


          • #6
            Hi, I am not sure how to check if a specific field is loaded.
            But you can start a director when DataPool is finished loading data by insert:
            0 $(SCENE)*STAGE*DIRECTOR*director_name START;
            into the 'Post Update Action' Field.

            /jogvan

            Comment

            Working...
            X