Thanks Simon
What would be good to know as well, say a scene with:
- A few datalinq'd text boxes
- One has script on the OnSetText event
- Does that script run once all Datalinqs have been updated, or is it an asynchronous process in that as soon as the datalinq causes the textbox contents to change, then the event fires for that text box. Which could potentially mean accessing other datalinq'd textboxes within that script has potentially out of date data from those textboxes until their datalinq has updated.
- This question assumes that the answer to the above question has all textboxes doing their updates and running scripts asynchronously.
- Say I have the same script running on several textboxes, and that script just calls a global sub, how does the system cope with potentially many calls to the same routine at the same time, or almost the same time. Does it all happen within the same thread in XPression, or are different threads spawned on each OnSetText event?
So many questions! I have just issues in projects where not knowing how the underlying system works can get confusing!
Simon
------------------------------
Simon Latus
Simon Latus Media Ltd
United Kingdom
------------------------------
Original Message:
Sent: 06-11-2025 06:00
From: Simon Redmile
Subject: Order of Datalinq events
Here's the written order that Garner was talking about but sounds like you need more detail, mostly commenting as I am interested in the diagram myself haha!
OnPrepare
- Collect Datalinqs / Load Video Clips / Load Textures etc..
OnBeforeOnline
- Evaluate transition logic (which may include running
OnTransLogicScripts
) OnOnline
- Visual Logic Runs
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 06-08-2025 04:01
From: Simon Latus
Subject: Order of Datalinq events
Hi
I have a script that runs off the OnSetText event of a text box. The contents of this text box are datalinqed to a database. The script looks at other text boxes also linked to the same database, but I need to make sure that those text boxes are up to date before i use their contents. I have the Requery Scene Datalinqs On Data Change checked on the text box that has the script.
My question is, does the script run while the datalinq requery is taking place, or does it wait until that requery is done?
In fact, is there a diagram showing the order of events from the datalinq software through to XPression and then the order of events raised in a project?
Thanks
Simon
------------------------------
Simon Latus
Simon Latus Media Ltd
United Kingdom
------------------------------