Difference between revisions of "WSJ - Access any job (Unit Workshop Report Generator function)"

From Catalyst
Jump to: navigation, search
(Updated from revision control)
 
(New redirection changes)
(Tag: New redirect)
 
Line 1: Line 1:
__NOTOC__
+
#REDIRECT [[WSJ - Access any job details (Unit Workshop Report Generator function)]]
== 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.
 
{{Example|text=
 
$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 - Job started date (Unit Workshop Report Generator variable)|J05]]), the start date of job number 1000 would be returned.
 
;No expression is supplied.
 
{{Example|text=
 
$WSJ{'1000'}
 
}}
 
 
 
:Changes the workshop job being reported on; i.e. all {{DataValue|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.
 
{{Example|text=
 
$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.
 
 
 
[[Category:Unit Workshop Report Generator functions]]
 

Latest revision as of 06:02, 16 April 2020