Substitute com.glideapp.servicecatalog_category_view with com.glideapp.my_custom_view

Greg42
Mega Guru

Hi All,

I am trying to change the way items/categories are displayed it a catalogue - namely, to display it as a grid not a list. I don't want to change existing code from obvious reasons. I did some research and looked around the system of how those thing work together but can't see where the link item - using SNC.CatalogURLGenerator - generates com.glideapp.servicecatalog_category_view - can't see source code for it anywhere. I would like to change it to my custom view allowing me to work on it without worrying about future updates.

Is there a way to change the path generated by CatalogURLGenerator to point somewhere else than default com.glideapp.servicecatalog_category_view?

Any help will be much appreciated.

Cheers

Greg

1 ACCEPTED SOLUTION

Greg42
Mega Guru

I have managed to style the view as I wanted. Used addLoadEvent and checked for com.glideapp.servicecatalog_category_view.do then used jQuery for styling.


View solution in original post

39 REPLIES 39

User166992
Tera Guru

Hi Greg,



How are you doing today? UI Script is throwing error in IE 8 .


Is it working fine for you in IE 8?



Thanks,


Jaikumar


Hi Jaikumar,



Yes we all love IE



IE8 doesn't like .trim(); You can add this snippet at the beginning of the script:



if(typeof String.prototype.trim !== 'function') {


        String.prototype.trim = function() {


                  return this.replace(/^\s+|\s+$/g, '');


        }


}



Ref: http://stackoverflow.com/questions/2308134/trim-in-javascript-not-working-in-ie




Cheers



Greg


User166992
Tera Guru

Hello Greg,



Thanks for the quick response.But still no luck.



Thanks,


Jaikumar


Hi Jaikumar,



What is the error you're having then?




Cheers



Greg


User166992
Tera Guru

Hello Greg,



I'm getting below error:


IE Error.PNG



I tried putting value.textContent in alert. But I'm not getting any value.



Thanks,


Jaikumar