Custom Reporting -- Search Reports: Difference between revisions

From IHRIS Wiki
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
La página de búsqueda utiliza el módulo custom reporting para permitirle personalizar fécilmente la página de búsqueda y agragar nuevas búsquedas al sistema. Esto es un proceso de dos pasos:
The search page makes use of the custom reporting module to allow you to easily customize the search page and add new searches to the system. This is a two step process:
#[[#Creating A Search Report | Creating A Search Report]]
#[[#Creating A Search Report | Creating A Search Report]]
#[[#Registering A Report With The Search Page | Registering A Report With The Search Page]]
#[[#Registering A Report With The Search Page | Registering A Report With The Search Page]]
==Crear un Informe de Búsqueda==
==Creating A Search Report==
Debería crear una vista de informe que desee usar para la página de búsqueda. Debería incluir todos los campos que desee y límites que necesite. También puede modificar la vista de informe existente en el sistema, tal como "Search People" to adjust the fields that get displayed.    Puede que quiera ver [[Custom Reporting -- Creating a Staff List Example | create a staff list]].   
You should create a report view that you will want to use for the search page. It should include all the fields that you want and limits that you need. You can also modify the existing report view in the system, such as "Search People" to adjust the fields that get displayed.    You may wish to see how to [[Custom Reporting -- Creating a Staff List Example | create a staff list]].   


Algo que debe tener en mente, es que debe agregar el link apropiado a los campos en este informe, por ejemplo agragar el link "view?id=" a cualquiera de los campos en el formulario person le permitirá vincular la página de visualizaión de esa persona.
One thing to keep in mind, you should add the appropriate link to the fields in this report, for example adding the link "view?id=" to any of the fields in the person form will allow you to link to the view page for that person.


Puede modificar los informes de búsqueda existentes para que se adapten a sus necesidades. Por ejemplo, puede que quiera adjuntar el formulario "id" al formulario person y limitar el formulario "id" al número de "national identification" si tiene algo como esoLuego en el informe, puede agregar un límite para buscar por el número de national identification.
You can modify the existing search reports to suit your needs. For example, you may wish to join the "id" form to the person form and limit the "id" form it to "national identification" number if you have such a thingThen in the report, you can add a limit to search by the national identification number.


==Registering A Report With The Search Page==
==Registering A Report With The Search Page==
Line 23: Line 23:
***description: Required scalar node.  These are the instructions that are shown with this search.  In this case it is "Locate any position in the system to review, print or update."
***description: Required scalar node.  These are the instructions that are shown with this search.  In this case it is "Locate any position in the system to review, print or update."


[[Category:Technical Overview]][[Category:Search]][[Category:Reports]][[Category:Review2013]]
[[Category:Custom Reporting]][[Category:Review2013]]

Latest revision as of 13:24, 8 November 2013

The search page makes use of the custom reporting module to allow you to easily customize the search page and add new searches to the system. This is a two step process:

  1. Creating A Search Report
  2. Registering A Report With The Search Page

Creating A Search Report

You should create a report view that you will want to use for the search page. It should include all the fields that you want and limits that you need. You can also modify the existing report view in the system, such as "Search People" to adjust the fields that get displayed. You may wish to see how to create a staff list.

One thing to keep in mind, you should add the appropriate link to the fields in this report, for example adding the link "view?id=" to any of the fields in the person form will allow you to link to the view page for that person.

You can modify the existing search reports to suit your needs. For example, you may wish to join the "id" form to the person form and limit the "id" form it to "national identification" number if you have such a thing. Then in the report, you can add a limit to search by the national identification number.

Registering A Report With The Search Page

Registering a report view is done by defining magic data under:

/modules/CustomReports/search_reports

See lines 511-525 of the iHRIS Manage configuration file for an example on how the search_people and position_list report views are registered with the search page. The result is the following:

  • /moudles/CustomReports/search_reports: Required parent node. All report views that are linked to the search page need to be registered here
    • search_people: Required parent node. This is the name of the report view that you wish to register under the search page. Here the report view is "search_people"
      • name: Required scalar node. This is the name of the search as it appears on the search page. In this case it is "Search People"
      • description: Required scalar node. These are the instructions that are shown with this search. In this case it is "Locate any person's record in the system to review, print or update."
    • position_list: Required parent node. This is the name of the report view that you wish to register under the search page. Here the report view is "position_list"
      • name: Required scalar node. This is the name of the search as it appears on the search page. In this case it is "Search Positions"
      • description: Required scalar node. These are the instructions that are shown with this search. In this case it is "Locate any position in the system to review, print or update."