PC SOFT

WINDEV的在线文档

  • Overview
  • Example
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Clickable control in a report

Overview
The report editor allows you to propose clickable controls during the print preview.

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 print preview, 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 zip 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.

To open the window from the print preview directly:

  1. Open the report in the report editor.
  2. Select the control to click and display its code ("Code" from the popup menu).
  3. Enter the following code in the "Click on xxx" process:
打开WIN_CustomerForm"Modif",我的数据源.CustomerID

This code is used to:
  • open the "WIN_CustomerForm" window in modification mode
  • pass the identifier of the customer in parameter to the window (this identifier is found in the embedded query). The 我的数据源 keyword lets you handle the report's source.
Caution: If a query is associated with the report, the query is automatically closed at the end of the report execution. The items of this query are no longer accessible.