WSJ - Access any job details (Unit Workshop Report Generator function)
From Catalyst
(Redirected from REF:wsrgfwsj)
Syntax
$WSJ{job, variable}
Description
Changes the workshop job being reported on.
Parameters
- job
- A text parameter that can be omitted.
- The job number
- variable
- A text or numeric parameter that can be omitted.
- Return the value of the variable.
Returns
A text or numeric (depending on the parameters) value. This function may be used in three ways.
- All parameters are supplied.
$WSJ{'1000',J05} |
- The result of the given expression using the details of the workshop job supplied is returned. For the example above, (using the variable J05), the start date of job number 1000 would be returned.
- No expression is supplied.
$WSJ{'1000'} |
- Changes the workshop job being reported on; i.e. all 'J'; variables in the remainder of the current block will use the details from the job number supplied. If used in a Range screen then this will affect the whole report. If no expression is supplied, the actual result of the function will be numeric. If no expression is supplied, the actual result of the function will be numeric - "1" if the account exists or "0" if otherwise.
- No parameters are supplied.
$WSJ{} |
- The function may be used in this way in a block after using the function as in method 2, to change the workshop job being reported on back to the previous value.