18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Value<br />

Description<br />

1 Still synchronizing<br />

0 No synchronization is being executed.<br />

-1 The format is not set to "Database".<br />

Examples<br />

Tag Name<br />

Tag<br />

Expression<br />

SyncEventStatus()<br />

SyncTrend<br />

Synchronizes the trend database.<br />

Function Group Execution Windows Embedded Thin Client<br />

SyncTrend Database/ERP Asynchronous Supported Supported Executed on Server<br />

Syntax<br />

SyncTrend( numGroup, optStrStartDate, optStrEndDate )<br />

numGroup<br />

Trend group/worksheet number.<br />

optStrStartDate<br />

optStrEndDate<br />

String with the start date. If this parameter is not specified, then the current date is used.<br />

String with the end date. If this parameter is not specified, then the function uses the same as<br />

the start date.<br />

Returned value<br />

Value<br />

Description<br />

1 Fail to start synchronization; the database is probably being synchronized.<br />

0 Success<br />

-1 Invalid group number<br />

-2 The format is not set to "Database".<br />

-4 Start date specified is invalid.<br />

-5 End date specified is invalid.<br />

-6 Start date is greater than the end date.<br />

Notes<br />

This function is executed asynchronously, so it doesn't return the result of the synchronization. To get that<br />

information, use the SyncTrendStatus function.<br />

Examples<br />

Tag Name<br />

Tag<br />

Expression<br />

SyncTrend(1) // Synchronizes the group 1 database using the current date<br />

Page 756<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!