Index
Video Courses
Watch structured video courses
Knowledge Base
Visit our User Forum for discussions & solutions
DataSourceSync
Keep the interview in sync with the database.
Command syntax:
«DataSourceSync(Yes)»
Using the SetDataSourceData command, and the AllowInsert parameter on ChooseFromDataSource/LinkToDataSource, records can be written into a database. Specifically when writing back to databases in the context of nested ForEach’s, without the DataSourceSync command the data would only be written back when the user clicks on the “Assemble” button.
However you may have a situation where the data should be written back sooner than that. The DataSourceSync command ensures that data is created or changed in the database when the user clicks on “Confirm” or “Confirm and Add Next” in the ForEach form, rather than waiting until they click “Assemble”.
The default behaviour would be DataSourceSync(No) i.e. the same as the absence of the command, and would be that data is only entered on the clicking of “Assemble”.