![]()
Windows and OS/2 Workflow
Then create a new Data Access part in that target. This launches the Data Access Builder SmartGuide, where Data Access Builder creates a mapping from a database schema (a database table, view, or an SQL query). The mapping contains sufficient information for Data Access Builder to generate C++ classes. For example, it has definitions for all attributes matching all the columns in the database table, view, or SQL query.
When you finish creating the mapping, the new Data Access part is added to the Data Access Launch view in the IDE. The part consists of the following files:
Note: Only one Data Access part can be created for a target. This means that only one Data Access session (a .dax file) can be associated with a target. However, you may include in that session several schemas and mappings.
You can also add schemas and mappings to the session. To add a schema, select Map Schema from the File menu. To add a mapping, select a schema and then select Create Mapping from the schema's popup menu.
Save the session information to the IDE. Corresponding .vbe and .vbf files will be added to the Data Access part in the IDE.
Then generate the code for the mapping (see Generate Source Code). If you chose the ESQL access method, an .sqx file will be generated. Otherwise, if you chose CLI or ODBC, a .cpp file and a .hpp file will be generated.
When you have finished customizing the mapping, close Data Access Builder and return to the IDE.
AIX Workflow
cppdata from the working
directory command line. In the startup window, select Create New Mapping
or Work with Existing Mapping. Create and customize the mapping as
needed.Data Access/Visual Builder Tutorial
Creating a Visual Data Access Application -
Follow the instructions in this tutorial to create a basic data access application
visually.
![]()
IDE: Create a Project
IDE: Add or Change a Target
IDE: Build
IDE: Set Build Options
IDE: Add Source Files to a Project
IDE: Add Part Source to the Configuration File
Create More than One Mapping for a Schema
Map a Schema
Customize the Mapping
Generate Source Code
Import a Data Access Builder Session
Migrate Existing Code
Write Data Access Applications with the Visual Builder
![]()
Data Access Class Library and Generated Class Reference
Files in Data Access Parts
Data Access Builder Samples
