Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

OVSD4.5: IViewInfo, returning a list of filtered Priorities through the API

Highlighted
John_Baker
Collector

OVSD4.5: IViewInfo, returning a list of filtered Priorities through the API

Hello,

I've created a new view in Admin -> Views -> Codes -> Priority, and when I go to Data -> General -> Codes -> Priority, I can select my view in the drop down selector in the top of the client (beside the Advanced Find button). When I select, the Priorities are filtered as per the settings of the filter in the view.

How do I access this from the API? My aim is to return the filtered list of Priorities.

The IViewInfoWhere object doesn't have a method to query for a view by name, and there's no getName/getText on the IViewInfo object, so iterating through them all doesn't seem to help.

I also don't understand the relationship between IViewInfo and ITemplate.

I'd be very grateful for any advice!

Thanks,


John
//Add this to "OnDomLoad" event