
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2017 10:17 AM
Hi,
We want to to auto-numbering on a certain table with a date prefix but I am a bit stuck...
I can't find anyone who has posted this in the past on this community but I do know the solution exists...
Any idea anyone?
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2017 03:19 AM
We used condition: When = OnDisplay
with the following script to add the date of today as a prefix:
var month = '', day='', year='';
var gdt =new GlideDateTime();
month = gdt.getMonth();
day=gdt.getDayOfMonth();
year=gdt.getYear();
var array='';
array=current.number.split('VLN');
current.number='VLN'+day+month+year+array[1];
//current.number = current.number + month;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2017 10:23 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2017 11:11 AM
That's the solution I tried... But no luck.
Tried it on our customized table, on the task table, ... Doesn't seem to be doing anything...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2017 11:13 AM
Can you please post screenshot of your business rule?
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2017 11:19 AM