DataConnections.refresh Method
Fetches and validates a complete snapshot before writing. Latest refresh wins; failures preserve old data. Errors are returned to the host, which controls user-visible diagnostics. A timeout rejects with AbortError.
Owner: DataConnections. Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
Syntax
await owner.refresh(id, options)
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id | string | No | Stable identity in the owning document/collection. |
options | DataRefreshOptions | undefined | Yes | Supported settings for this operation; omitted settings retain documented defaults. |
Return Value
Promise<DataSnapshot>.
Examples
Pass an existing DataConnections from the owning document. Related handles and input bytes must belong to the intended document and application; the function applies the operation and inspects its result.
async function applyDataConnectionsRefresh(dataConnections) {
const result = await dataConnections['refresh']('revenue');
console.log(result);
}
Remarks
Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.