AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Editores / Editor de reportes / Controles de reporte
  • Overview
  • Example
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Clickable control in a report
Overview
The report editor allows you to propose clickable controls in the report viewer.
When printing an invoice, the user wants to see all the details about the selected customer or all the characteristics of the products ordered? Nothing's easier, all you have to do is modify the click code of the control to perform the requested operation.
In the report viewer, the clickable areas can be easily identified by the symbol. Furthermore, these areas are colored in yellow when they are hovered by the mouse cursor.
Example
A report lists the customers by postal code. The user wants to display the customer form by clicking his name. The customer form already exists in the project, it must be linked to the click performed on the Name control in the report.
To open the window directly from the report viewer:
  1. Open the report in the report editor.
  2. Select the control to click and display the different events available ( "Code" option in the context menu).
  3. Write the following code in the "Click xxx" event:
    Open(FEN_FicheClient, "Modif", MySource.IDClient)

    This code is used to:
    • open the "WIN_CustomerForm" window in modification mode
    • pass the identifier of the customer as parameter to the window (this identifier is found in the embedded query). The MySource keyword allows managing the source of the report.
Caution: If a query is associated with the report, the query is automatically closed at the end of report execution.. The items of this query are no longer accessible.
Form displayed from a report with clickable control
Ver también
Versión mínima requerida
  • Versión 10
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local