Configure a syntax to generate report file names
-
Create a syntax in the CCSNTX—Syntax application.
-
Enter the following fields:
Organisation Scope
Syntax Code: As required
Syntax Type: Report Filename
Is Active: Checked
-
Enter syntax details, for example:
Syntax:
${String myPref = Preference.fetch("USR_CLIENTROOTDIR")String lab = Laboratory.name.asEllipseValue
String cli = ReportRequest.clientCode.asEllipseValue
cli = cli.replace(" ","_")String JobNo=Job.name.asEllipseValue
otherVar = myPref + lab + "/" + cli + "/" + JobNo
return otherVar
}_##########
or:
${String myPref = Preference.fetch("USR_CLIENTROOTDIR")String lab = Laboratory.name.asEllipseValue
String cli = ReportRequest.clientCode.asEllipseValue
cli = cli.replace(" ","_")String JobNo=Job.name.asEllipseValue
otherVar = myPref + lab + "/" + cli + "/" + JobNo
return otherVar
}_##########
or:
${String myPref = Preference.fetch("USR_EFS_ROOT")return myPref
}"\"
${Laboratory.code.asEllipseValue
}
or:
${String myPref = Preference.fetch("USR_EFS_ROOT")String otherVar=myPref
otherVar = otherVar+Client.code.asEllipseValue
return otherVar
}$(dd)$(MM}
or:
${String JobNo=Job.name.asEllipseValue
return JobNo
}_##########
Outer Seq Floor: 1
Outer Seq Ceiling: 9999999999
Outer Seq Increment: 1
-
Click Submit.
- Construct a user preference using the CCPREF—Preference application to set various folder locations, for example:
Preference Name: USR_CLIENTROOTDIR
Description: Client root directory for Report Requests
Setting Type: STRING
Setting Value: /REPORT/CLIENT/
- Construct another user preference using the CCPREF—Preference application to set various folder locations, for example:
Preference Name: USR_EFS_ROOT
Description: Root directory for EFS
Setting Type: STRING
Setting Value: \var\opt\appliance\efs\
