|
||
ProPath includes several useful #CODE templates to use with multiple data sets.
Update Window Title
This #CODE template assists in updating the Window Title to show the current selected data set.
If the "Update Window Title" box is checked, then the template will update the window title with the text in the entry field.
The default text includes the following MACRO: *DataSetName*
If you embed the MACRO token in a string for the Window title as shown here:
ProPath Demo Series - Application: Demo 16 [ *DataSetName* ]
then it will appear at runtime like this:
ProPath Demo Series - Application: Demo 16 [ Demo Data ]
Typically you would put this #CODE template into the Open Window embed as shown here:
Change Data Set
This #CODE template will call the WnChangeDataSet procedure to allow the user to create/edit/delete or select a data set.
If the "Update Window Title" box is checked, then the template will update the window title with the text in the entry field after the data set is selected.
The default text includes the following MACRO: *DataSetName*
If you embed the MACRO token in a string for the Window title as shown here:
ProPath Demo Series - Application: Demo 16 [ *DataSetName* ]
then it will appear at runtime like this:
ProPath Demo Series - Application: Demo 16 [ Demo Data ]
You can call this #CODE template from any button or menu embed point.
Reset Folder Path Selections
This #CODE template will call the WnSelectPath procedure and allow the user to change the folder locations.
The current values will be presented as the suggested locations.
After the selection you can choose to CHAIN and restart the program or EXIT (which would mean the selections are used on the next startup).
You can also use First Deploy files to distribute files into the new location after the selection.
The export groups follow the settings in the ProPath Global Extension template.
You can also enable the templates to prompt the user to overwrite files if they already exist.
You can call this #CODE template from any button or menu embed point.