The Roster function is a full two-dimensional drag and drop solution for rostering.
![]()
|
|
Parameter Name |
Description |
|
1 |
rosterViewDate |
Name of the field on the Home table containing the global date which identifies the roster day you are working on. This field name should NOT be enclosed in quotes. |
|
2 |
"dateFieldName" |
Name of the field on the Roster table which will hold the date of the roster day .The field name needs to be enclosed in quotes and be the full TO::FieldName form. |
|
3 |
"labelFieldName" |
Name of the field on the Roster table which will hold the name of the person rostered to a slot. The field name needs to be enclosed in quotes and be the full TO::FieldName form. |
|
4 |
"shiftFieldname" |
Name of the field on the Roster table which will hold the number of the shift allocated to a person (the x-axis of the grid). The field name needs to be enclosed in quotes and be the full TO::FieldName form. |
| 5 | "slotFieldName" | Name of the field on the Roster table which will hold the number of the slot allocated to a person (the y-axis of the grid). The field name needs to be enclosed in quotes and be the full TO::FieldName form. |
| 6 | "staffLabelFieldName" | Name of the field on the People table containing the name of the person to be rostered. The field name needs to be enclosed in quotes and be the full TO::FieldName form. |
| 7 | "staffImageFieldName" (opt) |
Name of the field on the People table containing an unstored calc, converting an image to a form suitable for loading into the Reactor plugin for hosting. e.g. If( not IsEmpty( Photograph ) ; ReactorFeed( Substitute( Name ; " " ; "_" ) & ".jpg" ; Photograph ) ; "" ) The resultant calc will look something like "http://127.0.0.1:58318/xyz.jpg" |
|
8 |
bgColor (opt) |
The default color is white but you can specify a different color: see “Background Color” in the “Basics” section. The background color is limited to a strip between the scroll bar and the roster on its right. |
Example
Roster(
Home::Roster Date ; "Roster Shifts::Adate" ; "Roster Shifts::Name" ; "Roster Shifts::Shift" ; "Roster Shifts::Slot" ; "Roster People::Name" ; "Roster People::Pic_link"
)
• Highlighting of destination positions: The roster area contains a 'background' of block objects. As you drag the staff member objects, the underlying block is highlighted to show where the staff member would go if 'dropped' at that point.
• Swapping: Staff members in the roster area can swap places if one is dragged over another.
• Grid Dimensions: At present the grid is limited to 3 cells wide and 4 cells high. It is a static size and does not resize to fit the Web Viewer.
Comments