10,730
edits
Line 41: | Line 41: | ||
[[File:Working-hours-home-screen.png|alt=Add tables necessary for working hours configuration to your app project]] | [[File:Working-hours-home-screen.png|alt=Add tables necessary for working hours configuration to your app project]] | ||
== Define working hours == | == Define working hours in the app == | ||
First, use the mobile app to define the working hours. Create a new working hours record and add the hours. | |||
: [[File:How-to-define-working-hours-in-the-app.png|600px|alt=Define working hours in the app]] | |||
: Add multiple sets of working hours for different users. | |||
Next, select one of the working hour records as the company default. | |||
:[[File:How-to-define-company-default-working-hours.png|600px|alt=Define company-default working hours in thee app]] | |||
:Even if you keep the lookup field empty, you can use other fields like "Start Of Day" (specify the number of minutes since midnight) and "Working Day Duration" (again, in minutes) to define the hours. | |||
Finally, you can assign working hours to your resources. | |||
:[[File:How-to-define-assign-working-hours-to-resources.png|600px|alt=Assign working hours to resource records]] | |||
:Resources without specific working hours assigned fall back to company default. | |||
=== Working hours editor === | |||
When you create a form for the Working hours table in Woodford, the form automatically includes an editor. | When you create a form for the Working hours table in Woodford, the form automatically includes an editor. | ||
[[File:Working hours editor.png|400px|alt= | : [[File:Working-hours-editor-features.png|400px|alt=how to use the working hours editor in the app]] | ||
: Use the plus button to add a new range of working hours. Use the x button to delete it. Use the clone button to copy working hours from a different day. | |||
: Set a day to "Unavailable" if you don't want to work on that day. Set it to "Inherited" to fall back to company default / hardcoded values for that day. | |||
The hours are stored in the "Data" field in JSON format. The numbers are in minutes. Don't edit the "Data" field directly; when you save the record, values from the custom editor overwrite the "Data" field. | |||
You can also create a standard form for this table in Dataverse. In this case, no special editor appears. You can work with the Data column directly. We recommend using the editor in Resco mobile apps. | |||
<syntaxhighlight lang="JSON"> | <syntaxhighlight lang="JSON"> |