Once you have created a script and before you can run the script, you must define which source files will be used.
To create a script definition, complete the following:
-
Open the General Configuration application from the AudienceView Desktop.
-
Select the Script Definition tab.
The Scripts Definition|Search page appears.
-
Click 'Create New'.
The Scripts Definition|Edit page appears.
-
Enter a name for the script definition in the 'Name' field.
-
Enter a brief description of the script definition in the 'Description' field.
-
Enter the name of the folder/group that you want to put the script definitions in. This allows you to easily search of them via the Script Definition|Search page.
-
Select the script that you want to use from the 'Application Script' dropdown.
Only scripts that have a 'Content Type' of Application Scripting will appear.
-
Click 'Add Source'.
The sources section expands.
-
Enter the name of the source file that has been saved to the server.
-
Select the source file type from the 'Source Type' dropdown.
-
Business Intelligence: The source file is an extract from Business Intelligence.
-
Comma Separated Value: The source file is a .CSV file.
-
Enter the name of the header column in the 'Key Column' field.
-
If the script uses multiple source files (and they have all been added to the sources section), select the parent file from the 'Parent Source' dropdown.
-
Enter the parent column of the source file in the 'Parent Source Column' field.
-
For every source file that you want to add, repeat the process from Step 8.
-
Optionally, you can add additional fields/information, providing that they exist in the script:
-
Click 'Add Field'.
The execution fields section expands.
-
Enter the system field that the information is pulled from (e.g. _01_user_name) in the 'Field' field.
-
Enter the text used to identify the criteria on the user’s screen in the 'Label' field.
-
Select how you want the field to be validated from the 'Type' dropdown:
-
bigInteger
-
binary
-
currency
-
dateTime
-
duration
-
fixedInteger
-
guide
-
integer
-
password
-
phoneNumber
-
string
-
Select the field's 'Subtype'
-
Enter a group name in the 'Group' field to help categorize fields.
-
Select whether the field is Required or Optional from the 'Required' dropdown.
If an option is not selected, the field will default to Required.
-
Select a predefined list to bind to the field from the 'List' dropdown.
-
Enter the maximum number of fields that can be populated with values in the 'maxValues' field.
If the value is set higher than 1, then will appear allowing users to add additional fields.
-
If a list is selected in the 'List' field, the 'Default Value' will be populated with the lists' options (once the script definiton has been saved). Select the the default option of the field.
-
For every field that you want to add, repeat the process from Step 15a.
-
Click 'Create'.
A window confirms that the application created the script.
-
Click 'OK'.
Once you have created a script definition, you can schedule and run the script using the Utilities - Data Management pages.