- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2016 01:10 AM
Hi,
I have been trying to create a Routine change using standard change templates but was unsuccessful in doing so. I have looked at the StdChangeProcessor but couldnt find a way to tweak that.
I have also modified the standard change properties and have excluded the field Type from the from restricted change request values and have added the Type as Routine in my template. Unfortunately even this didn't work.
Can someone help me over here.
Thanks,
Srikanth Varma
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2016 06:02 AM
Found the answer to this, need to make changes to StdChangeUtils script include.
Override the default change type to 'Routine'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 06:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 07:02 AM
Thanks for your prompt response. I have some additional changes that I need to make to another function in the "StdChangeUtilsSNC" script. In that case, should I be just copying over the said function or the whole script?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 12:48 AM
You need to just override the function of your interest by creating function with the same name in the StdChangeUtils script include. As StdChangeUtils inherits everything from StdChangeUtilsSNC, all its functions are there by default but you have option to define some of them again and change their behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 09:11 AM
I've tried to change the table which the standard change is created in but that does not seem to to have any effect. Any ideas? Is this even possible?
var StdChangeUtils = Class.create();
StdChangeUtils.prototype = Object.extendsObject(StdChangeUtilsSNC, {
initialize: function(request, responseXML, gc) {
StdChangeUtilsSNC.prototype.initialize.call(this, request, responseXML, gc);
this.TABLE_NAME_CHANGE = "u_change_operations";
},
/***************************
*
*Add customer changes below
*
****************************/
type: 'StdChangeUtils'
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2018 05:46 PM
Hey,
Sorry to revive an old topic, however, this is the only one around on the subject.
I am creating a new standard change type, let's call it standardv2.
I have tried what you have above, however, the change type is not working.
Is there anything else I need to do besides the change to the StdChangeUtils script include?
var StdChangeUtils = Class.create();
StdChangeUtils.prototype = Object.extendsObject(StdChangeUtilsSNC, {
initialize: function(request, responseXML, gc) {
StdChangeUtilsSNC.prototype.initialize.call(this, request, responseXML, gc);
this.DEFAULT_CHG_TYPE = "standardv2";
},
/***************************
*
*Add customer changes below
*
****************************/
//DEFAULT_CHG_TYPE: "standardv2",
type: 'StdChangeUtils'
});
I have tried adding the default_chg_type in the two locations you see above, but neither work. I have tried adding the type = standardv2 in the standard change properties as well, but no good. The change type definitely exists.
Cheers, Brendan