- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2020 07:40 AM
Hello,
I have a question about the restriction on the Actions in the Allocation Workbench.
I customize the UI Action Confirm and Allocate
I change the condition.
How I put the same condition on the allocation Workbench?
Thanks a lot.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2020 05:24 AM
In your code, current is 'not defined'.
Try in below way.
var RMActionValidator = Class.create();
RMActionValidator.prototype = Object.extendsObject( RMActionValidatorSNC,{
initialize: function(gr) {
this.currentResPlanGr = gr;
RMActionValidatorSNC.prototype.initialize.call(this, gr);
},
canConfirm: function() {
if((gs.getUserID()==this.currentResPlanGr.user_resource.manager)||(gs.getUserID()==this.currentResPlanGr.group_resource.manager)){
return true; // You can add your logic here and return a boolean value
}else{
return false;
}
}
type: 'RMActionValidator'
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2020 05:24 AM
In your code, current is 'not defined'.
Try in below way.
var RMActionValidator = Class.create();
RMActionValidator.prototype = Object.extendsObject( RMActionValidatorSNC,{
initialize: function(gr) {
this.currentResPlanGr = gr;
RMActionValidatorSNC.prototype.initialize.call(this, gr);
},
canConfirm: function() {
if((gs.getUserID()==this.currentResPlanGr.user_resource.manager)||(gs.getUserID()==this.currentResPlanGr.group_resource.manager)){
return true; // You can add your logic here and return a boolean value
}else{
return false;
}
}
type: 'RMActionValidator'
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2020 07:10 AM
Hello
Thanks a lot.
Good Job Guy. 🙂 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2023 05:47 AM
Hello,
I used this script to prevent the delete action from showing on resource plans that were confirm, allocated and cancelled. How would I go about doing the same for planning and requested?
Thanks, Kathryn