formcreator icon indicating copy to clipboard operation
formcreator copied to clipboard

filter on GLPI Object

Open hcimadomo opened this issue 5 years ago • 6 comments

I need to have a filter for select only computer "en service". Same request for select "active" User.

My request to a new feature is to add filters as in filter search for computer.

Other solution : I see in github same request about computer (show only computers in service, show only active users, etc... So is it more simple to have this specific type ?

Best regards

hcimadomo avatar Aug 03 '20 07:08 hcimadomo

hi

The best design would be to use the search engine of GLPI to restrict the items. If you consider to sponsor this feature, please contact us at [email protected] .

btry avatar Aug 03 '20 07:08 btry

hello, I cant sponsor this.... Can you make a short explanation about how the list is defined in the execution of form ? BR

hcimadomo avatar Aug 03 '20 09:08 hcimadomo

The plugin mimics the restrictions in the ticket's form of GLPI in service catalog. It checks the rights "view all hardware", "view my hardware" and "view hardware of my groups".

To satisfy your need, the plugin shall use additional search criteria, like you can find in any list of GLPI.

If you want to see in deep the implementation the code is in inc/fields/dropdownfield.class.php, method displayField().

btry avatar Aug 03 '20 09:08 btry

The plugin mimics the restrictions in the ticket's form of GLPI in service catalog. It checks the rights "view all hardware", "view my hardware" and "view hardware of my groups".

To satisfy your need, the plugin shall use additional search criteria, like you can find in any list of GLPI.

If you want to see in deep the implementation the code is in inc/fields/dropdownfield.class.php, method displayField().

Hello, this method is not more in this class. Where is the code to analyse for implement a filter ? Best regard

hcimadomo avatar May 03 '21 12:05 hcimadomo

Duplicate of #1274 Duplicate of #591

btry avatar Jul 02 '21 07:07 btry

In progress: https://github.com/pluginsGLPI/formcreator/pull/2978

big up to the sponsor

btry avatar Sep 20 '22 11:09 btry

Hi

The feature will be available in version 2.14.0

btry avatar Apr 21 '23 13:04 btry