Defining Layouts

Layouts enable you to customize the user interface presented in your spreadsheet. Use the layout functionality to determine the fields in a spreadsheet, set their positions, and specify default values for the fields.

A layout must be available before you create a spreadsheet in the Create Document interface. Some integrators offer predefined layouts, or you can use the procedure described in this chapter to create a layout.

Note: For some products, the layouts are predefined and preselected. Therefore you cannot select an alternate layout during document creation.

Note: Unless you log in as a user who is assigned the System Administrator responsibility, you must be granted access to an integrator to modify its layout. Specific form functions grant access to specific integrators. See the product-specific documentation for information regarding access to individual integrator layouts.

Use the Define Layout interface to perform the following:

When you define a layout, you must first select the integrator to which the layout applies. Then choose to create a new layout or select an existing layout to update. You can then define the layout properties, including the following:

Oracle Web Applications Desktop Integrator provides two versions of the Define Layout interface. The default is the Define Layout page flow, which guides you through multiple pages to enter the layout properties. Alternatively, your administrator can enable the Define Layout page, which lets you enter all the layout properties in a single page after you have selected the integrator to which the layout applies.

arrow icon   To define a layout in the Define Layout page flow:

  1. From the Oracle E-Business Suite navigator, select Define Layout. This menu item may be under the Desktop Integration responsibility, or it may be located under a different responsibility assigned to you by your system administrator.

  2. Select the integrator. Oracle Web Applications Desktop Integrator displays any existing layouts for the integrator.

  3. Choose Create to create a new layout, or select an existing layout and choose Update to modify it.

    To create a new layout based on an existing layout, select the existing layout and choose Duplicate. Enter a name for the new layout and choose Apply.

    To delete a layout that you no longer need, select the layout and choose Delete. Then choose OK in the confirmation page.

  4. Enter a Layout Name and specify the Number of Headers to place across the top of the document.

    If your document has one header, all fields that you identify as header fields will display in a single list. If your layout includes numerous header fields, consider defining multiple headers to place them horizontally across the top of your document.

  5. Determine the fields to be included in the layout, their placement, and their default values. The page displays a list of the required fields for this integrator and a list of optional fields.

    Some integrators offer the ability to display a graph of data from the rows in the lines region. In this case the Include Graph of Lines Data option appears in this page. Optionally select this option to specify that Oracle Web Applications Desktop Integrator should generate a graph automatically when the document is first downloaded. For example, you might want to select this option if the integrator has a content defined to populate the document with data during the initial download. If you do not select this option, then users must use one of the graph buttons from the Oracle ribbon tab in Microsoft Excel to generate a graph in their documents after the initial download. See: Viewing Graphs.

    All required fields must be included in your layout. Include optional fields by selecting the Select box. The following table describes the options available for the fields in your layout:

    Layout Field Options

    Fields Description
    Placement Defines the location of the field on the spreadsheet. You can select Context, Header, or Line.
    If you specified that the document has multiple headers, select the one in which you want the field to appear, such as Header 1, Header 2, or Header 3.
    Default Value Some fields may have predefined default values, or you can enter the default value here, using the appropriate format for the default type. For context fields, you should always define a default value.

    Note: For a field that contains a date value, the format of the default value should match the date format defined for the integrator in the integrator LDT file.

    Default Type Indicates how Oracle Web Applications Desktop Integrator should obtain the default value.

    The following table describes the available default types.

    Default Types

    Default Type Description
    None If you do not want to specify any default value, select this type and leave the Default Value field blank. None is the default setting for the Default Type option itself, for all fields in the layout. For context fields, you should always change this setting to specify a default type and a default value.
    Constant Select this type to use the text entered in the Default Value field as the default value in the spreadsheet.
    Environment Select this type to reference an environment variable when setting a default for a field. If you select this type, enter one of the following values in the Default Value field:
    • sysdate - System date

    • database - Name of the current database

    • oauser.id - ID of your current Oracle E-Business Suite user

    Parameter Select this type to reference a parameter that your system administrator stores in the form function (Self Service Link) used to access the Create Document interface. The parameters that can be referenced are specific to each integrator. See the product-specific documentation for the valid values to enter in the Default Value field for this default type.
    SQL Select this type to run a SQL statement to determine the default for the field. Oracle Web Applications Desktop Integrator runs the SQL statement entered in the Default Value field and automatically populates the spreadsheet with the results. If more than one value is returned from the query, Oracle Web Applications Desktop Integrator uses the first value.
    You can use the following tokens in the SQL statement that you enter in the Default Value field:
    • $profiles$.profilename - Returns the value for the current user's profile when you enter the name of the profile option.

    • $env$.userid - Returns the current user ID.

    • $env$.appid - Returns the current application ID.

    • $env$.respid - Returns the current responsibility ID.

    • $env$.language - Returns the current session language.

    Formula Select this type to enter an Excel-compatible formula to determine the default value for a field. When you enter the formula in the Default Value field, follow the Excel formula syntax and enclose field names in brackets.
    For example: [credit]+[debit]
    Note that referencing the field names rather than the cell names prevents your formulas from being corrupted if the order of the fields is changed in the layout.
  6. In the Create Layout page, define display properties for the page components. Use this page to mark fields as Read Only, to hide fields, and to move the fields up or down in the display order.

    Document Properties

    Graph Properties

    Tip: Users can modify the graph within the downloaded document by selecting Modify Graph Type or Modify Graph Options from the Oracle ribbon tab in Microsoft Excel. See: Viewing Graphs.

    Context Field Properties

    Header Field Properties

    Line Region Properties

arrow icon   To define a layout in the simplified Define Layout page:

  1. From the Oracle E-Business Suite navigator, select Define Layout. This menu item may be under the Desktop Integration responsibility, or it may be located under a different responsibility assigned to you by your system administrator.

  2. Select the integrator. You can optionally enter a complete or partial layout name to search for layouts whose names match that value. Leave the layout name blank to search for all existing layouts for the integrator. Then choose Go. Oracle Web Applications Desktop Integrator displays the layouts that match your search criteria.

    Note: The number of integrators displayed in the list of values for the Integrator Name field is limited by the FND: View Object Max Fetch Size profile option. By default, this profile option is set to 200 records. If the list of values does not display all your integrators, set the FND: View Object Max Fetch Size profile option to a value equal to or higher than the number of integrators defined in your instance. For more information about this profile option, see the Oracle Application Framework Developer's Guide, available from My Oracle Support Knowledge Document 1315485.1.

  3. Choose the action you want to perform.

    If you chose to create, update, or duplicate a layout, continue with the following steps to define the layout properties in the Create Layout, Update Layout, or Duplicate Layout page, respectively.

  4. Enter a name for the layout.

  5. Select a style sheet to apply to the documents created with this layout. See Defining a Style Sheet.

  6. If you want to display a branding image in the documents created with this layout, enter the file name of the image. For example, MyCompanyImage.gif. Ensure that you have placed the image in the OA_MEDIA virtual directory. The image you define here for the layout overrides any image specified at the style sheet level or in the Corporate Branding Image for Oracle Applications profile option. See: Implementing Branding Images.

  7. Optionally select the Protect Sheet option to set the state of the document to protected when it is first downloaded. A protected sheet lets users update the data fields but does not let them insert rows. Users can change this setting in Microsoft Excel.

  8. Optionally select the Apply Filters option to enable Microsoft Excel filters for the lines region when the document is first downloaded. Users can change this setting in Microsoft Excel by selecting the Filters button in the Oracle ribbon tab.

  9. Some integrators offer the ability to display a graph of data from the rows in the lines region. In this case the Graph region appears in this page.

    Optionally select the Automatically Generate Graph option to specify that Oracle Web Applications Desktop Integrator should generate a graph automatically when the document is first downloaded. For example, you might want to select this option if the integrator has a content defined to populate the document with data during the initial download. If you do not select this option, then users must use one of the graph buttons from the Oracle ribbon tab in Microsoft Excel to generate a graph in their documents after the initial download. See: Viewing Graphs.

    Specify the following properties to define how the graph should appear by default. These properties apply both to automatically generated graphs and to graphs that users add manually.

    Additionally, when you set the properties for the line fields in the Line region of this page, you should specify the fields that will be represented on the X axis and the fields that will be represented on the Y axis. See step 19.

    Tip: Users can modify the graph within the downloaded document by selecting Modify Graph Type or Modify Graph Options from the Oracle ribbon tab in Microsoft Excel. See: Viewing Graphs.

  10. In the Context region, enter the following overall properties for the context fields.

  11. Specify the fields to include as context fields in the layout. Choose Add Optional Fields to add available fields to the context. You can also move fields from a header or from the Line region to the context.

    If you do not want a field to appear in the context, you can move it to a header or to the Line region, or, if the field is optional, you can remove it from the layout.

  12. Set the properties for each context field.

  13. In the Headers region, select the number of headers to include in the layout and choose Apply. The page then displays a region to define each header, identified as Header 1, Header 2, Header 3, and so on. You can include up to 10 headers. If you do not want to include a header, select 0.

    If your document has one header, all fields that you identify as header fields will be displayed in a single vertical list. If you define multiple headers, they are displayed in multiple lists placed horizontally across your document. If your layout includes numerous header fields, consider defining multiple headers to make it easier for users to see all the header fields.

  14. In each header region, enter the following overall properties for the header.

  15. Specify the fields to include in this header. Choose Add Optional Fields to add available fields to the header. You can also move fields from the context, from another header, or from the Line region to this header.

    If you do not want a field to appear in this header, you can move it to the context, to another header, or to the Line region. Alternatively, if the field is optional, you can remove it from the layout.

  16. Set the properties for each header field.

  17. In the Line region, in the Data Entry Rows field, enter the number of blank rows to display when the document is generated. Users can add more rows once the document is downloaded to Microsoft Excel.

    Note: The maximum number of data entry rows is limited by the number of rows that Microsoft Excel allows in a worksheet. When you use Microsoft Excel 2007 and higher with Oracle Web Applications Desktop Integrator Release 12.2.6 and higher, the maximum value for the Data Entry Rows field is 1,048,000 rows.

    If your site is not using the OOXML format, use caution when specifying the Data Entry Rows setting. Specifying a large number of data entry rows significantly increases the time required to create and upload Oracle Web Applications Desktop Integrator documents.

    If your site is using the OOXML format, then the document creation and upload processing is performed on the server. In this case the processing is significantly faster than if you do not use OOXML, but requires a larger server heap memory. You should review the server heap memory setting to ensure it is appropriate for this configuration.

  18. Specify the fields to include in the lines in the layout. Choose Add Optional Fields to add available fields to the lines. You can also move fields from the context or from a header to the lines.

    If you do not want a field to appear in the lines, you can move it to the context or to a header, or, if the field is optional, you can remove it from the layout.

  19. Set the properties for each line field.

  20. Choose Apply to save the layout definition.

arrow icon   Design Considerations:

The width of columns in a spreadsheet is set at the line item level. Consequently, when setting the column spans for context and header fields, you must consider the widths of the corresponding line item columns. The following example shows the layout specifications for the Context fields and how these specifications are rendered in the actual document. The Context Prompt Span is defined as 5 columns and the Context Data Span is defined as 4 columns. Note that in the resulting spreadsheet, the context prompts span the five columns B through F.

The context data following the context prompts span the 4 columns G through J.

Note: The examples in this section show the layout specifications defined in the simplified Define Layout page. The layout properties appear slightly differently in the Define Layout page flow, but you can define the same properties in both interfaces.

Example 1 - Resulting Spreadsheet

image described in text

The next example shows the Hint Span for the Header set to 1. In this case because the column that the hint falls into is narrow, the full hints are not displayed. To display the full hint text in this example, expand the Hint Span to 3.

Example 2 - Resulting Spreadsheet

image described in text

The following example shows the same document after increasing the Header Hint Span to 3, to accommodate the full hint text.

Example 3 - Resulting Spreadsheet

image described in text

Note that achieving the desired layout might require several iterations, because changing the column spans for the fields in the first header will affect the placement of the fields in subsequent headers. For example, if changing the Hint Span for Header 1 moves the hint text for Header 2 to a narrower column, then you should also change the Hint Span for Header 2 to accommodate that hint text.