Home » Microsoft » MB6-704 » How should you create the data source for the form?
You have two tables named Table l and Table2. There is a relationship between the tables.
You need to display data from both tables in a form.
How should you create the data source for the form?
A. Add both tables to a perspective and use the perspective as the data source.
B. Create a new table named Table3 that is related to Table l and Table2. Use Tables as the data source.
C. Add both tables to a map and use the map as the data source.
D. Add both tables to a query and use the query as the data source.
Correct Answer: D
Explanation/Reference:
You can add parent and child data sources to a query.
Add multiple data sources to a query
1. In the Application Object Tree (AOT), click Queries, locate the query you want to add data sources to, and then click the query node. For information about create queries, see Accessing Data.
2. Right-click Data Dictionary, and then click Open New Window.
3. Drag a table, map, or view from the new window to the Data Sources node below the query node to add a parent data source.
4. Click the parent data source, and then drag a table, map, or view from the new window to the Data Sources node below the parent data source to add a child data source.
5. Specify how the parent and child data sources are joined by setting the JoinMode property on the child data source
6. Create a relationship between the data sources.
Reference: How to: Add Multiple Data Sources to a Query [AX 2012]
Incorrect:
Not C: Maps define X++ elements that wrap table objects at run time. With a map, you associate a map field with a field in one or more tables. This enables you to use the same field name to access fields with different names in different tables. Map methods enable you to create or modify methods that act on the map fields.