Custom Reporting -- Search Reports: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
 
(2 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 agregar 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" para ajustar los campos que se muestran.    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 agregar el link "view?id=" a cualquiera de los campos en el formulario person le permitirá vincular la página de visualizació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.


==Registrar un Informe con la Página de Búsqueda==
==Registering A Report With The Search Page==


La registraciÓn de una vista de informe se hace al definir datos magic bajo:
Registering a report view is done by defining magic data under:
  /modules/CustomReports/search_reports
  /modules/CustomReports/search_reports


Vea [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-manage/4.0-dev/view/623/iHRIS-Manage-Configuration.xml#L511  lines 511-525] del archivo de configuración iHRIS Manage para un ejemplo de como las vistas de informe de '''search_people''' y '''position_list''' rson registradas con la página de búsquedaEl resultado es lo siguiente:
See [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-manage/4.0-dev/view/623/iHRIS-Manage-Configuration.xml#L511  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 pageThe result is the following:
*/moudles/CustomReports/search_reports:  Requiere nodo primarioTodas las vistas de informe qe están vinculadas a la página de búsqueda necesitan ser registrados aquí
*/moudles/CustomReports/search_reports:  Required parent nodeAll report views that are linked to the search page need to be registered here
**search_people:  Requiere nodo primarioEste es el nombre de la vista de informe que desea registrar bajo la página de búsqueda. Aquí la vista del informe es "search_people"
**search_people:  Required parent nodeThis is the name of the report view that you wish to register under the search page. Here the report view is "search_people"
***name: Requiere nodo escalarEste es el nombre de la búsqueda a como aparece en la página de búsqueda. En este caso es "Search People"
***name: Required scalar nodeThis is the name of the search as it appears on the search page. In this case it is "Search People"
***description: Requiere nodo escalarEstas son las instrucciones que se muestran en esta búsqedaEn este caso es en "Locate any person's record in the system to review, print or update."
***description: Required scalar nodeThese are the instructions that are shown with this searchIn this case it is "Locate any person's record in the system to review, print or update."
**position_list:  Requiere nodo primarioÉste es el nombre de la vista de informe que desea registrar bajo la página de búsqueda. Aquí la vista de reporte es "position_list"
**position_list:  Required parent nodeThis is the name of the report view that you wish to register under the search page. Here the report view is "position_list"
***name: Requiere nodo escalarÉste es el nombre de la búsqueda a como aparece en la página de búsquedaEn este caso es en "Search Positions"
***name: Required scalar nodeThis is the name of the search as it appears on the search pageIn this case it is "Search Positions"
***description: Requiere nodo escalarestas son las instrucciones que aparecen en esta búsquedaEn éste caso es en "Locate any position in the system to review, print or update."
***description: Required scalar nodeThese are the instructions that are shown with this searchIn 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."