Service Desk Practitioners Forum
cancel

Fields from View (WebApi)

Highlighted
Siekierko Przem
Respected Contributor.

Fields from View (WebApi)

I’ve created some view witch selecting configuration items by some criteria and it’s showing fields SEARCHCODE, NAME1.

In my Java code I can take configuration items by criteria taken from view:

IConfigurationItemHome ci_hm = session45.getConfigurationItemHome();
Long viewID = new Long("281495411753906");
IConfigurationItem[] cis = ci_hm.findConfigurationItem(viewID);

But I don’t know how to get list of fields with was used in this view. If someone could help me I would be very thankful.

Regards
Przemyslaw Siekierko
2 REPLIES
Vasily Kamenev
Acclaimed Contributor.

Re: Fields from View (WebApi)

HI
cis[i].getSearchcode();

Vasily
Siekierko Przem
Respected Contributor.

Re: Fields from View (WebApi)

Thanks for fast response. But I'm looking for solution that give me possibility automatically generate views on webserver side. So I need to get list of fields selected for this view in hp open view client.