List CI's owned by selected user

Harry Campbell2
Mega Guru

Hello Everyone,

I want to list all CI's owned by a selected user on a leaver form.

This is how I would like it to work:

1. User Opens our User Leaving catalog item and selects the name of the user that is leaving in the 'impacted_user' variable.

2. Either on the same page or in a popup window, I want to list the CI's that the person leaving is an owner of, with the option to set a new owner for each. (If the user is not an owner of any CI's then nothing would be shown)

Could someone please let me know how this is possible, I think some form of UI page would be the best bet, I just cant get my head around it.

Many Thanks

Harry

15 REPLIES 15

I know - and in my opinion this is the single greatest feature of Helsinki, unfortunately I'm still on Geneva.


Try



  • var collectorName = 'ci_ownership';  
  •   var filterString = 'owned_by='+g_form.getValue('impacted_user');  
  •   window[collectorName + 'g_filter'].reset();  
  •   window[collectorName + 'g_filter'].setQuery(filterString);  
  •   window[collectorName + 'acRequest'](null);  

Thanks Kalai, this is now pulling the correct info but it doesn't look too pretty on the page.



Is it possible to list the CI's using a UI page at all?


Did you check out the links that I posted before?


I have but it's not exactly what I need. Whe I say a list, it would just need to be a text list of the CI's.