- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2017 10:22 PM
1.Quarter number
2.Current number
Display Quarter number based on date
Ex: Jan to march Between related dates Display Quarter -1
April to June Between related dates Display Quarter -3 etc.
Ex:
now Current date: 2017-01-20 week: Quarter-1;
now Current date:2017-05-14 week: Quarter-2
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2017 12:22 AM
remove current.update()
var check= current.u_another_open;
var test = new GlideDateTime(check);
var mn = test.getMonth();
var quar = Math.ceil(mn/3);
gs.log('hellosssssss'+quar);
current.u_dateee=quar;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2017 12:25 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2017 12:27 AM
why after business rule.?. change it to before.
after business rule: we use when we need to do some operation in another table. and i think you are updating the value in same table that you have selected in your business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2017 12:39 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2017 12:44 AM
are you doing it on demo instance. if yes then i can have look into this..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2017 12:50 AM
Hi,
i m doing it in my personal instance