- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 04:57 AM
1) | This is related to KB articles. There will be a valid date field on KB form. Ideally after that date , article gets retired. So , create an UI Action named Publish which will be visible only in Retired articles and if we click on it, validate that user changes valid to date to a future date. If date is in past or today, do not publish it. | |
2) | Create two fields on KB form. Group Reference to Groups table User Glide list field reference to User table. Fill Group field with some group. Now create a UI Action "All Users" , if we click on it, the users of the grp belonging to Group should be filled in User glide list field | |
How to perform this |
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 10:36 PM
I dono what is wrong in your code,
I have tested this and it does work
//code
if(current.valid_to <= gs.nowDateTime()){
gs.addInfoMessage('Invalid date.Please enter future date');
current.setAbortAction(true);
}
else
{
current.workflow_state = 'published';
current.update();
}
action.setRedirectURL(current);
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 11:19 PM
that code is not working?
add this at the end
action.setRedirectURL(current);
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2017 01:31 AM
Not working in mine
its working fine in my colleagues system

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2017 01:34 AM
you should have been missing something. Ask your colleague to help you
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2017 01:37 AM
Even they have checked nothing is wrong they are also confused. Moreover my colleague also written my code only

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2017 01:39 AM
Thats weird. What is the error your getting?
Harish