There's nothing I see to get the Data Source selected for the xpTextObject, but on a Take Item in sequence, you can retrieve the PropertySourceType for a published object to see if Static, Datalinq or Widget is selected with a script like this:
dim takeitem as xpTakeItem
dim text1 as xpPublishedObject
dim type as propertysourcetype
engine.Sequencer.GetFocusedTakeItem(takeitem)
takeitem.GetPublishedObjectByName("Text1",text1)
text1.GetPropertySourceType(0,type)
You can check to see if the type is 0, 1 or 2 to determine which Data Source type is selected:

------------------------------
Jeff Mayer
Ross Video
------------------------------
Original Message:
Sent: 02-15-2026 09:00
From: Tom Lehmann
Subject: API - Widgets bound to xpTextOnject
Hi guys,
A question to the developers:
Is there an API method or function available to retrieve an information if a text object is bound to a widget datasource.
Scanning the help file, an the API call overview within Visual Studio I did not find a way.
regards
------------------------------
Tom Lehmann
CEO
IT Services
Frankfurt/Main Germany
------------------------------