Sample export control file
Example
This is an example of a control file used to export XML data using FormSync by means of a Command Line Interface (CLI) switch.
<?xml version="1.0" encoding="utf-8"?> <ExportInformation Version="010000"> <Settings> <Type>XML</Type> <Configuration>CoreDevLocal</Configuration> <Path Clean="True">default/ExportTestXML</Path> <LockedBy>True</LockedBy> </Settings> <Objects Scope="Vendor"> <Forms Licenses="True"> <Form ExpandWildcard="True" ReferencedObjects="True">a13%</Form> <Form ExpandWildCard="True" Licenses="False">upgrade%</Form> </Forms> <Variables ExpandWildcard="True"> <Variable>%deletetest%</Variable> </Variables> <Validators> <Validator ExpandWildcard="True">%deletetest%</Validator> </Validators> <Scripts> <Script>aaaaDeleteTest1</Script> <Script>aaaaDeleteTest2</Script> </Scripts> <Strings> <String ExpandWildcard="true">aaaaDeleteTest%</String> <String ExpandWildcard="True">aa%one</String> <String>%B</String> </Strings> <Menus ExpandWildcard="True"> <Menu>aaaaDeleteTest%</Menu> </Menus> <PropertyClassExtensions> <PropertyClassExtension>aaaaDeleteTest1</PropertyClassExtension> <PropertyClassExtension>aaaaDeleteTest2</PropertyClassExtension> </PropertyClassExtensions> <ComponentClasses> <ComponentClass ExpandWildcard="True">%deletetest%</ComponentClass> </ComponentClasses> <Images ExpandWildcard="True"> <Image>aaaaDeleteTest%</Image> </Images> <Themes/> <WebUserControls> <WebUserControl>UpgradeTest.dll</WebUserControl> </WebUserControls> <WebUserControlElements ExpandWildcard="True"> <WebUserControlElement>myapps/controls/%</WebUserControlElement> <WebUserControlElement>myapps/images/%.png</WebUserControlElement> </WebUserControlElements> </Objects> </ExportInformation>
The output path can be any of these:
- An absolute path, if it starts with a drive letter followed by a colon
- A path relative to the directory where formsync.exe resides
- A path relative to the default directory
This option is used if the Path field starts with
default/
. That portion of the output path will be replaced with the default output folder normally used by FormSync, which is if it exists. Otherwise, it is .
Form files can also include the license information. For SQL, this generates a separate license file. For XML output, the license is included in the XML file for the form.
The ReferencedObjects attribute also includes any referenced objects for those objects that can reference other objects.
ExpandWildCard allows wild card SQL characters to be processed as wild cards. These include % and [], as well as others.
These attributes are inherited from parent nodes but can be specified at any level.