Adjust the settings files for the Var2Compform process
The settings file is called PromoteSubentries.ini
Don't touch the variables FwdataIn and FwdataOut. A script in another step will adjust them for you automatically, based on the name of the backup file that is in this folder.
Set modeltag1 to be the tag you put in the SPEC field in the FLEx database for the model subentry. Example: MODEL DERIV ENTRY
Set modifytag1 to be the tag you put in the SFM file in the extracted subentries. Example: _DERIV_
Make more modeltag1/modifytag1 pairs if you have more Complex Form Types, incrementing the number for each pair and setting the values appropriately. Example: modeltag2=MODEL COMPOUND ENTRY modifytag2=_COMPOUND_
Set numberofmodels to the number of different Complex Form Types you have. We are only using one in this example.
Look in the Var2Compform.pl file and verify that the .ini file it is looking for is the one that you have adjusted. (For example, in this sample data, the .ini file is PromoteSubentries-BB.ini, where “BB” represents a language code for your project. If you customized the name of the .ini file for your project, customize it inside Var2Compform.pl also. Search for: my $configfile = 'PromoteSubentries.ini')
Look in runVar2Compform.sh. If you adjusted filenames (e.g., Var2Compform-BB.pl), then make sure the same adjustment is made in this file, wherever it references the .ini or .pl file (lines 22,23).