Shift getUserNextShift: Difference between revisions
More actions
jrfconvert import  |
No edit summary  |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{HelpFiles}} | |||
 | |||
====Shift_getUserNextShift==== | ==== Shift_getUserNextShift ==== | ||
Return the next shift of a user | Return the next shift of a user  | ||
'''Syntax''' | '''Syntax''' Â | ||
Shift_getUserNextShift(userResourceId) | Shift_getUserNextShift(userResourceId) Â | ||
'''Arguments''' | '''Arguments''' Â | ||
* userResourceId: is a ''number ''expression | *userResourceId: is a ''number ''expression | ||
'''Return value''' | '''Return value''' Â | ||
array which is Shift Object: | array which is Shift Object: Â | ||
{| class="tableintopic" style="border-collapse: collapse; border: 1px solid #010101" width="1067" border="1" cellpadding="2" | {| class="tableintopic" style="border-collapse: collapse; border: 1px solid #010101" width="1067" border="1" cellpadding="2" | ||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" | | | style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" | Â | ||
'''Index''' | '''Index''' Â | ||
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" | | Â | ||
'''Data type''' | | style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" | Â | ||
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" | | '''Data type''' Â | ||
'''Value''' | Â | ||
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" | Â | |||
'''Value''' Â | |||
 | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101" width="356" | | | style="border: 1px solid #010101" width="356" | Â | ||
OBJECT_TYPE | OBJECT_TYPE Â | ||
| style="border: 1px solid #010101" width="356" | | Â | ||
number | | style="border: 1px solid #010101" width="356" | Â | ||
| style="border: 1px solid #010101" width="356" | | number  | ||
25 | Â | ||
| style="border: 1px solid #010101" width="356" | Â | |||
25 Â | |||
 | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101" width="356" | | | style="border: 1px solid #010101" width="356" | Â | ||
SHIFT_ID | SHIFT_ID Â | ||
| style="border: 1px solid #010101" width="356" | | Â | ||
number | | style="border: 1px solid #010101" width="356" | Â | ||
| style="border: 1px solid #010101" width="356" | | number  | ||
Id of next shift | Â | ||
| style="border: 1px solid #010101" width="356" | Â | |||
Id of next shift  | |||
 | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101" width="356" | | | style="border: 1px solid #010101" width="356" | Â | ||
SHIFT_USER_RESOURCE_ID | SHIFT_USER_RESOURCE_ID Â | ||
| style="border: 1px solid #010101" width="356" | | Â | ||
number | | style="border: 1px solid #010101" width="356" | Â | ||
| style="border: 1px solid #010101" width="356" | | number  | ||
User resource id of this shift | Â | ||
| style="border: 1px solid #010101" width="356" | Â | |||
User resource id of this shift  | |||
 | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101" width="356" | | | style="border: 1px solid #010101" width="356" | Â | ||
SHIFT_TEAM_ID | SHIFT_TEAM_ID Â | ||
| style="border: 1px solid #010101" width="356" | | Â | ||
number | | style="border: 1px solid #010101" width="356" | Â | ||
| style="border: 1px solid #010101" width="356" | | number  | ||
Shift team id of this shift | Â | ||
| style="border: 1px solid #010101" width="356" | Â | |||
Shift team id of this shift  | |||
 | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101" width="356" | | | style="border: 1px solid #010101" width="356" | Â | ||
SHIFT_FACILITY_RESOURCE_ID | SHIFT_FACILITY_RESOURCE_ID Â | ||
| style="border: 1px solid #010101" width="356" | | Â | ||
number | | style="border: 1px solid #010101" width="356" | Â | ||
| style="border: 1px solid #010101" width="356" | | number  | ||
Group resource id of this shift | Â | ||
| style="border: 1px solid #010101" width="356" | Â | |||
Group resource id of this shift  | |||
 | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101" width="356" | | | style="border: 1px solid #010101" width="356" | Â | ||
SHIFT_DAYS_UNTIL_DEMANDS_ARE_DECREASED | SHIFT_DAYS_UNTIL_DEMANDS_ARE_DECREASED Â | ||
| style="border: 1px solid #010101" width="356" | | Â | ||
number | | style="border: 1px solid #010101" width="356" | Â | ||
| style="border: 1px solid #010101" width="356" | | number  | ||
DUDAD of this shift | Â | ||
| style="border: 1px solid #010101" width="356" | Â | |||
DUDAD of this shift  | |||
 | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101" width="356" | | | style="border: 1px solid #010101" width="356" | Â | ||
SHIFT_DISAPPROVE_DAYS | SHIFT_DISAPPROVE_DAYS Â | ||
| style="border: 1px solid #010101" width="356" | | Â | ||
number | | style="border: 1px solid #010101" width="356" | Â | ||
| style="border: 1px solid #010101" width="356" | | number  | ||
Disapprove days of this shift | Â | ||
| style="border: 1px solid #010101" width="356" | Â | |||
Disapprove days of this shift  | |||
 | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101" width="356" | | | style="border: 1px solid #010101" width="356" | Â | ||
SHIFT_START_DATE | SHIFT_START_DATE Â | ||
| style="border: 1px solid #010101" width="356" | | Â | ||
array | | style="border: 1px solid #010101" width="356" | Â | ||
| style="border: 1px solid #010101" width="356" | | array  | ||
Start date datetime object array of this shift (with timezone of specfied user) | Â | ||
| style="border: 1px solid #010101" width="356" | Â | |||
Start date datetime object array of this shift (with timezone of specfied user) Â | |||
 | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101" width="356" | | | style="border: 1px solid #010101" width="356" | Â | ||
SHIFT_END_DATE | SHIFT_END_DATE Â | ||
| style="border: 1px solid #010101" width="356" | | Â | ||
array | | style="border: 1px solid #010101" width="356" | Â | ||
| style="border: 1px solid #010101" width="356" | | array  | ||
End date datetime object array of this shift (with timezone of specfied user) | Â | ||
| style="border: 1px solid #010101" width="356" | Â | |||
End date datetime object array of this shift (with timezone of specfied user)'''<br>''' | |||
 | |||
|} | |||
'''Example''' | '''Example''' | ||
| Line 96: | Line 126: | ||
print(nextShift); | print(nextShift); | ||
Availability | |||
Version 5.8 | Version 5.8 | ||
 | |||
[[Category:General_Functions]] | |||
Latest revision as of 07:13, 5 January 2012

Shift_getUserNextShift
Return the next shift of a user
Syntax
Shift_getUserNextShift(userResourceId)
Arguments
- userResourceId: is a number expression
Return value
array which is Shift Object:
|
Index |
Data type |
Value |
|
OBJECT_TYPE |
number |
25 |
|
SHIFT_ID |
number |
Id of next shift |
|
SHIFT_USER_RESOURCE_ID |
number |
User resource id of this shift |
|
SHIFT_TEAM_ID |
number |
Shift team id of this shift |
|
SHIFT_FACILITY_RESOURCE_ID |
number |
Group resource id of this shift |
|
SHIFT_DAYS_UNTIL_DEMANDS_ARE_DECREASED |
number |
DUDAD of this shift |
|
SHIFT_DISAPPROVE_DAYS |
number |
Disapprove days of this shift |
|
SHIFT_START_DATE |
array |
Start date datetime object array of this shift (with timezone of specfied user) |
|
SHIFT_END_DATE |
array |
End date datetime object array of this shift (with timezone of specfied user) |
Example
array nextShift = Shift_getUserNextShift(789456);
print(nextShift);
Availability
Version 5.8