PC SOFT

WINDEV的在线文档

  • Overview
  • How do I proceed?
  • Correspondence between control and item
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Overview
When you design a quick prototype, you often create windows (or pages) without defining any data files. When the prototype is validated, and only then, you decide to create the structures of the data files.

Rather than creating these data files "manually", WinDev, WebDev and WinDev Mobile allow you to export the content of the window (or page) to automatically create the corresponding structure of the data file.

How do I proceed?
To generate a description of a data file from a window or from a page:
  1. Open the window (or the page) from which the description of the data file must be generated.
  2. Select "Windows/Page .. Generate a file description" (or "Generate a file description" from the popup menu of the window or page). The wizard for generating a file description starts.Start the wizard for generating a file description:
    • WinDev On the "窗口" pane, in the "编辑" group, expand "其他操作" and select "Generate a file description". You also have the ability to select "Generate a file description" from the popup menu of the window.
  3. Specify:
    • the logical name of the data file. This name will be used to handle the data file. By default, this name corresponds to the name of the window or page.
    • the caption of the file that briefly summarizes the subject of the data file. By default, this caption corresponds to the title of the window or page.
    • the representation of a record in the data file. This representation improves the meaning of the questions asked when describing the links. This option must be preceded by an indefinite article (A or AN).
  4. Go to the next step.
  5. Select the controls from which the items of the data file must be created. Only the controls that can be linked to an item are proposed. Go to the next step.
  6. Specify (if necessary) the type of key for each item (not key, unique key or key with duplicates). Go to the next step.
  7. The wizard presents the description of the data file to generate. Validate.
The new data file becomes the current data file in the data model editor. To modify it, double-click the data file to display the description of the file items.
See Operations on a data file and Operations on an item for more details.

Correspondence between control and item
All the controls of the window/page that can be linked to an item (edit control, radio button, table, ...) can become items in the generated description of the data file.

The type and the size of the item depend on the type of information displayed in the control (text, numeric, ...) and on the input size.

All the characteristics of the control are used in the shared information of the item.