Field Type - Days of Week
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2015 06:08 AM
Hello,
I'm developing a new application and I need a functionality for user to select some days of week.
I find out, that ServiceNow has its field type Days of Week (e.g. in Schedule Entry - Repeat on). But this field is not visible for normal use.
Does ServiceNow planning accessing this field to wide public or not? What approach do you recommend for copy functionality of this field?
Thanks
Adam
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2015 01:58 AM
Hi Adam,
You can make it a simple Choice field with the 7 days as choice values, but what goes on behind it is something that is Interesting. If you can let us know what exactly is the requirement for selecting these particular days, then i think we can try to help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2015 02:04 AM
Hi Subhajit,
thanks for your reply. Choice field is not sufficient enough for me as I need to be able to select more than one day.
I need this for setting of scheduler. The user can choose on which days of week it can run (e.g. Monday, Tuesday and Friday).
Adam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2015 02:20 AM
Hi Adam,
The following suggestion is a little tedious, but it will work out, i guess.
:-- Create 7 True/False fields with the name of each day of the week and keep in a tab of the Form of your custom app.
:--Create seven different Scheduled Jobs running for seven different days of the week.
:--Say, in your (Day of Week=Monday) Scheduled Job, along with your other criteria, you add a filter gr.addQuery('u_monday', true); and perform whatever operation you need to perform on your Custom Record and so on and so forth for u_tuesday, u_wednesday.......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2015 02:25 AM
I come to this solution too but as you wrote it's not very nice.
That's why I'm asking about the Days of Week type, which is basically same solution, but you can store all information in one field.
Anyway thanks for your help
Adam