Working with Display Maps
Use Display Maps to link fields to Excel cells for data that will be retrieved from your environment by an app. When data is retrieved from your environment by a query or similar action, this data is temporarily stored in Excel memory before it is placed into the worksheet. X-Author then uses a Display Map to place the data in the correct Excel cells. You use Display Actions in your app to implement Display Maps.
How many Display Maps you use is dependent on app design and the timing of data retrieval in your app. Remember the following when working with Display Maps:
- There is no limit to the number of Display Maps in a single app.
- A single Display Map can include fields from multiple objects.
- A single Display Map can be used across multiple worksheets (not workbooks).
You do not need a Display Map if your app is not being designed to retrieve data from your environment. If you are retrieving data from your environment, then you need at least one Display Map per app.
Prerequisites
Before you can create a Display Map, you must have defined at least one object for your app. Refer to Adding Objects to your App for instructions.
Display Maps and Object Behavior
When you added objects to your app, you defined them as Individual (one record) or List (one or more records). When you map fields in a Display Map, you also choose whether the field type will be Individual or List. The behavior selected for an object determines how its fields are used in a Display Map.
Individual object fields can be placed anywhere in the worksheet except in the same row that contains fields from a List object.
List object fields must all be placed in the same row. This forms a List Range. List object fields do not need to be placed adjacent to each other, but there must be a start and end cell that represents the list range. For example, you could have mapped fields in A5, C5, and F5 with formulas in B5, D5, and E5.
You can find more information on Individual object fields and List object fields in the following sections.
To create a Display Map for an Individual object
To map List object fields to a Display Map
Note: In this task, you will map List fields to the same Display Map created in the previous task. You can also create a new Display Map for your List fields, but it is often easier, especially with parent-child apps, to use both Individual and List field types in your Display Map.
Rich Text Fields in List Ranges
You can insert Rich Text fields in the same way you enter any other field. Rich text fields appear to runtime users as a single link. The link opens an editor that allows the runtime user to modify the Rich Text field. Rich Text fields can only be edited by the runtime user if it is part of a list range (List object field). Rich Text fields of the SaveOnly type cannot be edited.
Use Case: Sales Pipeline Display Map Part 1
Danny Designer is designing an app with Account, Opportunity and User objects for sales persons to use to manage their sales pipeline. He has already selected the objects for the app and now needs to create a Display Map to link data from his environment to the cells in the Excel workbook.
Danny takes the following steps to create a Display Map:
- Danny connects to his environment and opens the Sales Pipeline app.
- He clicks Display Map and clicks Create to start a new Display Map.
- Danny enters the name "Pipeline Main" for his Display Map and selects List from the Type drop-down.
- Next, he drags and drops fields from the Account.Opportunity child object list to map them to the Display Map.
- Danny chooses to Hide column H. He added the field so that the user can save data back to the environment but he does not want to display it in the worksheet.
- Next, Danny adds a formula in D6 to SUM the Opportunity Amounts in D4.
- Danny clicks Save on the Display Map Panel and clicks Close.
- Danny clicks Save App to save all changes to the app.