The following topics describe the tabs and panels that are available when you are developing HTML pages in the HTML canvas.
In this section: |
You can add a variety of components to an HTML page found in the command groups in the Components tab. For example, suppose you want to add a button to your page that a user can click to refresh the data. The button is a component. You select it from the Generic Elements command group in the Components tab, then add it to your page as desired.
The Components tab contains the Reports, Generic Elements, Containers, and Objects groups, as shown in the following image.
When you click a command from a ribbon, your mouse pointer turns into a cross-hair to let you draw the object in the HTML canvas. If you click a command in error, press the Escape key to return your mouse to a pointer.
How to: |
From the Reports group, you can add a report or chart to your HTML page. The Reports group is shown in the following image.
The commands in the Reports group are:
Inserts a report object. You can add reports to the HTML canvas that will display when you run the layout. You can either embed or reference reports. Double-clicking a blank report object opens the Report canvas where you can create and style a report to be used in the HTML page.
You can also include parameters in a report whose values can be assigned with controls that are added with the HTML canvas.
Inserts a chart object. You can add charts to the HTML canvas that will display when you run the layout. You can either embed or reference charts. Double-clicking on a blank chart object will open the Chart canvas where you can create and style a chart to be used in the HTML canvas.
The pointer changes into a crosshair.
A report or chart object is created in the layout and assigned the name report(n) or chart(n), where n is a number. The object will appear in gray and white to indicate that the placeholder does not have a report or chart associated with it. Once a report or chart is associated with the object, the object displays the contents of the report or chart if live or simulated data is active (live data is the default) or a colored placeholder if preview is off in the HTML Page tab, located in the App Studio Options dialog box.
or
The Open File dialog box appears.
The Report canvas opens for reports and the Chart canvas opens for charts.
The pointer changes into a crosshair. Drag the crosshair to create a report or chart object and adjust it to the size you want.
A report or chart object is created in the layout and assigned the name report(n) or chart(n), where n is a number. The object will appear in gray and white to indicate that the placeholder does not have a report or chart associated with it. Once a report or chart is associated with the object, the object displays the contents of the report or chart if live or simulated data is active (live data is the default) or a colored placeholder if preview is off in the HTML Page tab, located in the App Studio Options dialog box.
The Open File dialog box appears.
The report or chart object appears in the Design view of the HTML canvas.
How to: |
You can add a variety of basic elements. The Generic Elements group is shown in the following image.
The commands in the Generic Elements group are:
Inserts an image. You can add an image to the layout. This is useful for including graphics, such as a company logo.
You can insert an image into your report layout and add a hyperlink. After you run your report and click the image, you can launch a URL or run a report the same way by clicking a hyperlink or push button.
Note: When inserting images, images must be referenced from a specific directory location.
Inserts a hyperlink.
Inserts a button. A push button enables you to execute a report or link to a URL or HTML file. This behavior is similar to a hyperlink.
Note: You can either double click to change the text or can use the Text property in the Properties panel.
Inserts a reset button. A reset button enables you to revert the entire page back to its initial settings.
Inserts a Save Selection button. At run time, the user can select given parameters and save them in a snapshot by clicking the Save Selection button. This creates a static HTML file that is saved in the same folder as the source file, by default.
To make the default save location for the parameterized HTML page your nearest My Content folder instead, select the Save Selection button on the canvas and, in the Properties panel, select My Content for the File default folder property. You can still navigate to another folder in your environment to save it there. The new save location becomes the default for saved parameter pages for the remainder of the session.
The static Save Selection files are not editable in the HTML canvas or in the text editor. To verify that a file is a Save Selection file:
The File/Folder Properties panel opens.
Inserts a hamburger control, which can be used to hide or display a form or control panel. A control panel is a panel component that has the Control panel property enabled.
To use a hamburger control, add it to the page, select it, and open the Properties panel. In the Hamburger specific section, select a form or control panel on the page from the Navigation and controls panel drop-down menu. You can also use the Properties panel to set the animation used when the hamburger control is clicked, and automatically hide the form or control panel when a request is executed on the page.
When you run the HTML page, the selected form or control panel does not appear until you click the hamburger control. You can hide it by clicking the hamburger control again.
Inserts a label. The label component lets you create and name a label, and link it to a control. To link a label to a control, you can select a value from the Htmlform property drop-down list in the Properties panel, or you can select the Bind label to option from the shortcut menu, when the label and control are both selected.
Inserts a text box. You can add text to the layout. This is useful for including headings for your webpage, or adding directions or explanations for your report or chart.
Inserts a line. You can add a horizontal or vertical line to the layout. This is useful for distinguishing between sections of your launch or display page.
Inserts a menu. You can add a horizontal or vertical menu to the layout. This component can be used with Maintain code.
Inserts a table. This component can be used with Maintain code.
Inserts a grid.
A hamburger control allows you to show and hide a form, saving space on an HTML page.
The New Parameters dialog box opens.
Note: Forms appear below and to the right of the hamburger control when it is clicked. Make sure to leave enough space between the hamburger control and the right side of the page to display the entire form.
You can also link a hamburger control to a control panel. To create a control panel, on the Components tab, in the Containers group, click Panel, and draw a panel onto the page. Select it and, in the Properties panel, set the Control panel property to Yes.
The Animation property allows you to set the animation that occurs when the form appears.
When the Auto-hide panel property is enabled, clicking the submit button in the form hides the panel. If Auto-hide panel is not enabled, you can hide the form again by clicking the hamburger control.
You may apply various formatting and style options to words and individual text characters within the text object.
Note: Any formatting and styling that you have applied to individual text strings within the text object will remain unchanged. Changes made to the entire text object are only applied to part of the text string that has not been formatted.
The pointer changes to a crosshair.
A text object with the default text, Enter text, is created.
The Style Composer dialog box opens with Font selected automatically.
Note: You can also access font formatting options in the Properties panel.
Note: When you enter a Specific font size, the unit defaults to px (pixels).
The formatting options that you selected are applied to the text.
To insert a bulleted list or numbered list into a text object:
The pointer changes to a crosshair.
A text object with the default text, Enter text, is created.
To insert a nested list into the text object:
The pointer changes to a crosshair.
A text object with the default text, Enter text, is created.
A list is started within the current list, allowing you to enter text on that list level.
Note: Pressing Tab while your pointer is on the same line as a list item will move that item one level down, resulting in a nested list. The bullet or number type selected is the next list type in the right-click shortcut menu. For example, if you have a bulleted list that uses the disc bullet type, pressing Tab to move an item down one level will cause that nested list to have the circle bullet type.
You can continue to nest lists within other lists by using the same steps shown above.
Note: You cannot skip a list level. For example, in order to insert a nested bulleted list or nested numbered list on a lower level, there must be a list one level up from it.
In this section: |
How to: |
You can add specific containers that group objects together on an HTML page. The Containers group is shown in the following image.
The commands in the Containers group are:
Inserts either a multi-layer form or single-layer form.
Inserts a tab control. Tab controls enable you to create multiple pages in one HTML form and present a better display for viewing secondary information. You can select Top, Bottom, Left, or Right. This means you can choose to add a tab control that displays tabs at the top, bottom, left, or right on the control.
You can drag and resize this object, at run time, if the Enable dragging and Enable resizing properties, in the Properties panel, are set to Yes.
To change the header text, you can either double click and change the header text or enter a value in the Selected Page: Title property.
When a tab control object is added to the layout, each tab control consists of:
A tab item is the tab label. You may edit the name of the tab item, style the tab item, and add multiple tab items. Each tab item is associated with a tab body.
A tab body is the tab page where you associate your components, such as report and graph objects, images, and lines.
The Tab control can be displayed as a full screen or part of an HTML page.
Inserts an Accordion styled box. You can drag and resize this object, at run time, if the Enable dragging and Enable resizing properties, in the Properties panel, are set to Yes.
To change the header text, you can either double click and change the header text or enter a value in the Selected Page: Title property.
Inserts a window. You can drag and resize this object, at run time, if the Enable dragging and Enable resizing properties, in the Properties panel, are set to Yes.
To change the header text, you can either double click and change the header text or enter a value in the Selected Page: Title property.
Inserts an output widget. The output widget container includes buttons in the widget title bar that let you display or hide filter controls and that let you maximize to display full-screen, and minimize to return it to its original size.
Inserts a mobile container containing an output widget. You can right-click the mobile container to add multiple pages, and then create tasks using the Go to page action to navigate between them. If you right-click a page in a mobile container and click Selected page as prototype, any subsequently added pages are created as clones of the prototype page.
The output widgets on mobile container pages include hamburger controls, allowing you to access collapsible forms and control panels to interact with the page at run time.
You can enable responsive design on an HTML page that includes a mobile container so that the mobile container and the output widgets in it can resize to comfortably fit on mobile devices.
Inserts a Maintain Data app window. You can drag and resize this object, at run time, if the Enable dragging and Enable resizing properties, in the Properties panel, are set to Yes.
Inserts a group box. A group box can be used to create a border around a group of objects, for example, forms or reports and charts.
Inserts a panel to group objects together. The panel is invisible at run time.
You can use a form object to create a pop-up dialog box.
As popup dialog causes the form to display as a pop-up dialog box. When the dialog box is displayed, you must click Close to return to your HTML page.
As popup window causes the form to display as a pop-up window. When the window is displayed, you can resize and move the window around your screen.
You can reorder tabs, accordions, and windows by dragging the page that you want to appear first onto the page that you want it to display before. For example, if you have 3 tabs, Tab1, Tab2, and Tab3, and you drag Tab3 onto Tab1, Tab3 will now display ahead of Tab1. The order of the tabs will then be Tab3, Tab1, Tab2. You can reorder windows when they are in tile view.
You can add multiple pages to a mobile container on an HTML page to provide different sets of content with expandable forms and control panels. You can add a task using the Go to page action to allow users to move between pages.
Using responsive design will make the content on the page easier to use on mobile devices.
The mobile container contains one page by default.
Since the Go to page action differentiates between pages by the widget title, using different titles for each one helps to ensure you select the correct page to navigate to.
Optionally, double-click the button to change the text in it.
This turns the panel into a control panel that can be accessed using the hamburger control in the mobile container output widget.
A second page with an output widget is created in the mobile container.
This will allow you to access the second page from a button accessible from the first page.
This will allow you to return to the first page using a button accessible on the second page.
When you tap the hamburger control, a panel with a button opens. Tap the button to access the other page created using the mobile container.
You can add objects other than reports, charts, elements, or containers to customize your HTML page. The Objects group is shown in the following image.
The commands in the Objects group are:
Inserts a frame object. You can use a frame to embed additional web sources or run reports. You can also use a frame as the output location or target for a drill-down report. You can also use a frame to run a table of contents report, an OLAP report, a PDF report, or an Excel® report.
Inserts a Flash component. You can add SWF files that are Adobe® Flash Player compatible to accompany reports or graphs on an HTML page.
Note: When inserting Flash animations, only files that are 1 MB or smaller can be run using the HTML canvas.
Inserts a map object. You can add a Google™ or ESRI map to your HTML page. Maps are services offering powerful, user-friendly mapping technology that can be customized to show points on a map with drill-down capabilities. You can customize the map properties and bind them to a report or chart.
Inserts an HTML object. Developers can use the Settings panel to type a valid snippet of HTML code for the HTML object, such as HTML code to browse for a file.
Inserts an ESRI map object. You can use the Settings panel to configure the properties and components.
In an HTML page, objects load in the order in which they were added to the canvas. A developer using raw HTML has the option of editing the source code to change the load order. Such edits leverage the Document Object Model (DOM) for HTML and XML documents.
In App Studio, however, the source code cannot be edited. Therefore, the HTML object manipulation menu is provided to allow you to change the load order, if necessary.
To change the load order, select multiple objects or components in the HTML canvas, then right-click and select HTML object manipulation. The following menu options are available:
How to: |
You can add elements/objects independently of screen reading order and then change the order later on during the development process.
Using the Accessible property, available on the Properties panel for a document, you can indicate that the Document Object Model (DOM) should be rewritten in the order of objects on the page, left to right, top to bottom. In addition, all tab index values should be set to the value -1.
The following tab order warning message appears, as shown in the following image.
Note: The Warning message displays only once, when the Accessibility property is set to Yes.
Selecting Yes will write the tab order of objects on the page, left to right, top to bottom. Selecting No will keep the tab order in the page.
In this section: |
How to: |
You can use the Controls tab and group to insert controls in an HTML page or a Guided Report page. Controls enable you to prompt users for a parameter value. When you create a parameter as part of a report or graph, the HTML canvas automatically adds a control, Submit button, and Reset button for the parameter to your layout, and the parameter appears on the Parameters tab. You can also add an input control and bind it to a parameter.
Controls, with the exception of a text box which does not supply a list of possible values, can supply values with a dynamic or static list of values:
An control lists Analytic Document values that mimic In-Document Analytic menu items. The Analytic Document controls cannot be associated to any parameters in the layout. This type of control can only be associated with an Analytic Document in the layout.
The properties of a control, as well as the parameters associated with each control, can be controlled with the Properties tab of the Properties window, and with the Parameters tab. The Controls tab is shown in the following image.
The controls are:
Inserts a text box. A text box enables you to enter a value in an entry field. You can specify a list of static or dynamic accepted values in Settings panel and, at run time, when you type the first letter of a value into the text box, that value will be listed as an autocomplete suggestion.
Change the Type property for the edit box control to File to use the edit box to browse for files from your system, to Password to automatically mask the text for password entry, or to Hidden to make the control invisible.
Inserts a hidden control. A hidden input control allows parameter values to be used in a control without the user seeing them. When a hidden control is used, the current input control assigned to the parameter will not be visible. The value of the parameter can be entered in the Properties panel of the Parameters tab, or supplied through chaining.
Inserts a drop-down list. A drop-down list enables you to select single or multiple values from a list of supplied values. In order to provide multiple values, the procedure must be set up to accept multiple values.
A single-select drop-down list enables you to select only one value for each time a request is run.
A multiselect drop-down list enables you to select multiple values using the check boxes adjacent to the values.
You can use a dynamic or static list of values for the drop-down list.
Note: The height of a drop down control is based on the font size of the text within it, and not the height property of the control object.
Inserts a list. This enables you to select single or multiple values at one time:
A single-select list enables you to select only one value for each time a request is run.
A multiselect list enables you to select multiple values by using the Ctrl key while selecting values.
In order to provide multiple values, the procedure must be set up to accept multiple values.
List box values can be dynamic or static.
Inserts a double list. Displays multiselect values. This enables you to view a list of the available values and add or remove them from one list to another. At run time, a report is generated based on the values that are added.
Inserts a radio button. Radio buttons enable you to select a single value from a list of supplied values. Radio button values can be static or dynamic.
Use the Type property to control the appearance of the radio buttons. From the drop-down list box in the Type field, select Standard to display standard radio buttons.
From the drop-down list box in the Type field, select Push button to display push buttons.
Inserts a check box. Check boxes enable you to select a single value from a list of supplied values. Note that if there are multiple check box input controls that are grouped together, you may select the Multiple properties for each control. Multiple ensures that you can select a single value from each check box control. Check box list values can be dynamic or static.
Use the Type property to control the appearance of the check boxes. From the drop-down list box in the Type field, select Standard to display standard check boxes.
From the drop-down list box in the Type field, select Push button to display push buttons.
Inserts a text area. A text area is a single-select control that enables you to enter multiple lines of text that can be assigned to a single variable. The behavior is similar to a text box, but you are not restricted to entering just one line of text. For example, if you want to assign a paragraph (multiple lines of text) to a variable that can be referenced by a procedure, you can add the paragraph to a text area from the Properties panel on the Parameters tab.
If you want to display text in the control:
If you want to submit values in the control:
ENGLAND
FRANCE
Inserts either a single-source tree control or multi-source tree control. By using a tree structure in an HTML report, you can show hierarchical data from a multi-dimensional data source (for example, SAP BW), that uses the parent/child model. You may also use a tree control for non-hierarchical data sources. Level hierarchies are not supported. The behavior of the tree control is integrated with the parameter definition. If a parameter is defined as a single value and that parameter is bound to a tree control, the tree control uses option buttons for each node in the hierarchy. If the parameter is defined as Multiselect OR or Multiselect AND, and that parameter is bound to a tree control, then the tree control uses check boxes for each node in the hierarchy, enabling you to select multiple nodes.
Inserts a calendar. Date parameters can utilize a built-in calendar control that enables you to select the desired date or range of dates in a pop-up dynamic calendar. A procedure or parameter that is added to or referenced in the HTML canvas, and contains date parameters, will have a Calendar control type available in the New Parameters dialog box. When you select the Calendar control type, a text box with a calendar icon displays in the Design view of the layout. The text box is the only control available for the calendar, and the icon always displays to the right of the text box. The icon cannot be positioned independently from the text box. Note that when programmatically returning a date to the calendar, the date must be in a WebFOCUS date format that specifies the complete date from the list of supported data types in the Popup Calendar Settings section of the Settings panel.
Inserts a horizontal or vertical slider control that has a numeric range of values to be used with a report or chart. This enables you to use a slider bar to select from a range of values.
How to: |
With a List Box, Drop Down List, or the first control of a Double List, you can add additional paging and search capabilities. Designed for controls that have a large number of valid values, this functionality enables you to:
These options give you a quick way of narrowing your search when you know the value, or partial value, that you want to use to filter your page.
The Add 'Paging/Search' control function is available on the HTML canvas through the right-click context menu for the List Box, Drop Down List, and the first control of a Double List.
Use this function to enhance the capabilities of an individual control. If you want to create a single Paging/Search option that applies to multiple controls on a page, see Adding a Paging/Search Control to an HTML Page.
To add paging and search capabilities to a control that has a large number of valid values:
The paging/search control is added to the canvas below the input control. The following image shows the paging/search control added below a Drop Down List for Product Subcategory.
Note that the blue left and right arrow buttons are for paging. The gray magnifying glass and arrow buttons are for searching.
At run time, the paging/search control shows a number or page range of values. The default range is 1-50, meaning the input control starts at the first value and displays a range of 50 values per page.
The paging/search control shows the specified range. For example, 1-50.
For searching, enter a search term in the paging/search control and press the Enter key or click the Search (magnifying glass) button.
To display search criteria, click the search arrow button on the far right. The search criteria list is displayed. You can select any of the following options:
Toggle the search arrow button to hide the search criteria list.
How to: |
A global paging/search control lets you add additional capabilities to an HTML page that contains multiple instances of the following controls: List Box, Drop Down List, and the first control of a Double List. Designed for controls that have a large number of valid values, this functionality enables you to:
Use this option to enhance the functionality of an HTML page. If you want to enhance the functionality of an individual control, see Adding Paging/Search Capabilities to a Control.
Use this procedure to add global paging and search capabilities to an HTML page with multiple controls.
The search options for the global paging/search control override the options for individual controls. For example, if Keep selected values is selected for the global paging/search control, that setting is applied to all controls on the page, regardless of whether they have Keep selected values enabled.
The global paging/search control appears in the upper right corner of the window (Home position).
The global paging/search control appears below the selected input control.
The label for the input control is displayed showing that it is linked to that input control. If no label is associated with the input control, the window will show the unique identifier for the input control, for example, combobox1.
If you want multiple pages, type a range in the Search/Paging field in the format 1-2 of 4 and press the Enter key.
The Search/Paging options are:
Toggle the Up arrow button to display and collapse the Search/Paging options. Click the Home icon on the Search/Paging window to move the window back to the Home position.
When entering a value in a text box at run time, you may set the Mask text property so that the text is not displayed as text, but masked by default characters. This is recommended when using passwords or other sensitive information.
The value being entered appears as masked text.
This procedure shows how you create a push button form from a radio button or check box control. It also shows how you can apply background color to push buttons to distinguish between selected and unselected values.
Two additional properties appear: Selected pushbutton background color and Unselected pushbutton background color.
The specified background colors appear for the selected and unselected values.
This procedure shows you how to add images to radio buttons with Static content.
Note: The first value defaults to Selected, but you can clear this check box.
Note: The text in the Display column outside the angle brackets (<>) is displayed when the page is run. If no text is included, only the image is displayed. If the display text is moved to before the brackets, the image appears to the right of the text in the radio button control.
Position the cursor over the HTML canvas. The pointer changes to a crosshair.
A calendar placeholder is created in the layout and assigned the name calendar(n), where (n) is a number.
Binding a parameter to a calendar control creates an incoming parameter. The incoming parameter value must be in a WebFOCUS date format that specifies the complete date from the list of supported data types in Calendar Properties. The incoming parameter value will populate the calendar with date values.
Binding the calendar to a parameter will populate the parameter with a date value.
The Settings panel opens, showing the calendar setup options in the Popup Calendar Settings section. The calendar setup options enable you to set the range of dates available to the user at run time. Available dates are represented as an active hyperlink (blue and underlined). Unavailable dates are static (black without underlines).
Note: The Settings panel for a calendar contains different options depending on the selected data type.
When the Current/Start date option is checked, the current date will be used in the calendar control at run time.
The Date Range options for setting up the calendar include:
The pop-up calendar icon appears in the From and To sections when the Static Date Range is selected. If you click the pop-up calendar icon, a pop-up calendar appears and shows the current date selected and circled in red by default. As you scroll through the calendar with the left/right arrows, the currently selected day will remain highlighted for each month. Clicking a date will add that date to the control. Dates can be selected by scrolling left to right, entering the month, day, and year as text, or by selecting the month, day, and year from the drop-down list and spin boxes.
How to: |
You can use a slider control to select numeric values. A slider allows you to select a single number value from a range of available values. You can click a point in the slider to select it, or use the arrow buttons at either end of the slider to move the slider one increment at a time. If you create a slider for a static parameter, you can use the Settings panel to specify the minimum and maximum value and the increment between values on the slider. If you create a slider for a dynamic parameter, all values from the selected data source and field are available on the slider.
You can also create a double-head slider. A double-head slider control is a type of slider control in which you can select a range of values for displaying data in a report or chart. Rather than having one slider head, you have two. In order to use a double-head slider control, you must have two variables in the report or chart that will be controlled by the double-head slider control. One variable will be controlled by one head of the double-head slider control and the other variable will be controlled by the other head of the double-head slider control. The variables need to be specified in the procedure as FROM and TO.
Note: You can use the Report canvas to create a parameter that accepts a range of values using the Expression Builder dialog box. The Chart canvas requires you to manually create a parameter that accepts a range of values.
The New Parameters dialog box opens.
If you click the Parameters view tab at the bottom of the HTML canvas, you will see that the slider control is chained to the parameter in the report, and if you select the slider control and open the Settings panel, you will see that it uses a dynamic list of values to supply a selected value to the parameter in the report.
The slider control controls what you see in your report or chart by allowing you to select a value.
The Expression Builder dialog box opens.
This indicates that the parameter that you are creating is a range of values.
In the Range Builder dialog box, you can name the parameters you will use for the Double-head slider control or select a field whose values you want to create a range from.
This is the FROM value.
This is the TO value.
These are the names of the two parameters that will be controlled by the double-head slider control.
This report can now be used with a double-head slider control once you set up your HTML page.
The pointer changes to a crosshair.
Changing the Range property to Yes changes the single-head slider control to a double-head slider control. You can now use this control to select a range of values to display.
The pointer changes to a crosshair.
The New Parameters dialog box opens.
Note that the Control Type for the second parameter changes to Append to Above. This means that the second parameter has been recognized as being part of a range and will be controlled by the double-head slider control specified in the first parameter.
The New Parameters dialog box opens.
Note that the Control Type for the second parameter changes to Append to Above. This means that the second parameter has been recognized as being part of a range and will be controlled by the double-head slider control specified in the first parameter.
The double-head slider control controls what you see in your report or chart by allowing you to select a range of values rather than one specific value or all values. The first head updates the FROM value and the second head updates the TO value.
Two types of multi-select lists can be used in a report: a regular list box or a drop-down list. When using either type of multi-select input control to supply parameter values, the Multiple property value indicates whether multiple values can be selected from a list of supplied values at run time.
A multi-select list box enables you to select multiple values by using the Ctrl key while selecting values. In order to select multiple values in the list box, the procedure must be set up to accept multiple values. Ensure that the Variable Type for the parameter value is Multiselect OR or Multiselect AND in the procedure.
For example, create a report with Multiselect OR as the variable type for the parameter, accepting a dynamic list of values from a Master File.
A list box is created in the layout and assigned the name listbox(n), where (n) is a number.
This indicates that multiple items can be selected from the list box.
A multiselect drop-down list enables you to select multiple values using the check boxes adjacent to the values. In order to select multiple values in the drop-down list, the procedure must be set up to accept multiple values. Ensure that the Variable Type for the parameter value is Multiselect OR or Multiselect AND in the procedure.
For example, create a report with Multiselect OR as the variable type for the parameter, accepting a dynamic list of values from a Master File.
A list box is created in the layout and assigned the name listbox(n), where (n) is a number.
Note: In the Properties panel, the Multiple property for the control is automatically set to Multiple.
How to: |
You can link the controls on HTML pages so that they automatically default to the same selected value when you switch between multiple pages in the same browser session. To do this, you need to assign a common value to the Global name property for each control that you want to link.
For example, you may have two HTML pages that contain controls with information that relates to regional sales. You can assign a value to the Global name property, such as Region, to each of the controls that you want to link. When you run those pages in the same browser session, and choose a value from one of the linked controls, such as Southeast, the controls on the other pages will refresh and display the information for the Southeast, by default.
Note: A selected value is retained as the default only during a single browser session. The value is not retained after you close the browser.
This procedure describes how to assign a value to the Global name property, which enables you to save control selections within a browser session.
Note: A selected value is retained as the default only during a single browser session. The value is not retained after you close the browser.
How to: |
Reference: |
You can insert a single-source tree control or a multi-source tree control in an HTML page.
This procedure describes how to add a tree control for a multi-dimensional data source, using a default procedure.
Note: In prior releases, a default procedure was known as an “Embedded Procedure.”
Tip: You may select Single source Tree control or Multi source Tree control. If no type is selected, Single source Tree control is the default. Single source Tree controls must be populated from a multi-dimensional data source such as SAP BW, SSAS, or Essbase.
The pointer changes to a crosshair.
A tree control is created in the layout and assigned the name treecontrol(n), where (n) is a number.
The Open File dialog box appears.
The multi-dimensional data source is added as the default procedure.
The Value from field is the data source field from which the values will be retrieved.
The Display field is the text that represents the parameter value in the tree control.
You can select an existing procedure to add to the tree control in an HTML page. When you select a procedure, it should use fields from the parent/child hierarchy and be set up as follows:
TABLE FILE file SUM FST.dispfield BY ParentUniqueField BY UniqueField BY datafield ON TABLE PCHOLD FORMAT XML END
where:
Is the name of the data source.
Is the field whose values display in the tree control.
Is the field that represents the parent for the parent/child hierarchy (PROPERTY = PARENT_OF).
Is the field that represents the unique IDs for the hierarchy members (PROPERTY=UID).
Is the field whose values are passed as the parameter value.
After the procedure is set up, follow these steps:
Tip: You may select Single source Tree control or Multi source Tree control. If no type is selected, Single source Tree control is the default. Single source Tree controls must be populated from a multi-dimensional data source such as SAP BW, SSAS, or Essbase.
The pointer changes to a crosshair.
A tree control is created in the layout and assigned the name treecontrol(n), where (n) is a number.
The procedure name is added as the explicit procedure.
Note: In prior releases, an explicit procedure was known as an “external” procedure.
The Value from field is the data source field from which the values will be retrieved.
The Display field is the text that represents the parameter value in the tree control.
You can show a tree structure for a non-hierarchical data source by using a tree control. By identifying the number of levels for the tree control, you are able to populate each level of the tree control with its own procedure. Setting the number of levels creates a tree structure by which each level is its own subcontrol, chained together with no conditions.
This procedure describes how to add parameters for a tree control, where the number of levels property is set.
The pointer changes to a crosshair.
A tree control is created in the layout and assigned the name treecontrol(n), where (n) is a number.
This enables you to specify the number of levels to populate.
The tree control object shows the set number of levels.
When creating a Multi source Tree control, the static data type is not available. If creating static values for the tree control, you must create a single source tree control.
Note: Add level only appears for a Multi source tree control object.
Note that the Properties window drop-down list for the tree control shows each level of input values.
Note: If a user selects a lower level node in one level and a higher level node in another level, when the procedure is executed, only the lowest level selections will take effect. For example, you have 3 levels: COUNTRY, CAR, and MODEL. Under ENGLAND, TRIUMPH you select TR7. Under FRANCE, you select PEUGEOT. At run time you will only receive the records for TR7 because you did not select a MODEL under the FRANCE node.
The tree control populates each level with values.
Note: A value must be selected for each level before you can click the Save Selection button.
If a selected value is specified for a field that is not in level1, then corresponding selected values must also be specified for the preceding levels.
Only the first and second levels load at run time. If a selected value is specified for a field in level1, only values from the first two levels will be selected.
This procedure describes how to add static data type parameters for a tree control, where the Number of levels property for the tree control is not set. This enables you to add a static list of values.
Static is selected, by default. You may select an item, delete it, or add a subitem.
Repeat these steps until the list contains all of the values you want to include.
When a report contains one or more new amper variable parameters, the New Parameters dialog box opens when you save the report and return to the HTML canvas. You can assign a new Single source or Multi source Tree control from the HTML page to the parameter from the New Parameters dialog box.
For each parameter, you will find Name and Control Type fields, a Create control check box, and options to set the Control Type to a Single source or Multi source Tree control.
When importing a report with parameters, the New Parameters dialog box opens, prompting you to create the control type.
The Control Type column refreshes, showing the selected control.
The report is added and the associated parameters are bound to the tree control.
The following usage notes apply when chaining tree controls. You may chain controls from the New Parameters dialog box and from the Parameters tab.
In this section: |
Positioning options enable you to multi-select objects and position them relative to one another. The Positioning tab contains the Positioning, Relationships, Text Alignment, and Responsive Design groups, as shown in the following image.
How to: |
The Positioning group contains the Left, Right, Top, Bottom, Center, Middle, Same Width, Same Height, Same Size, Toggles Grid, and Drag and Drop commands.
Aligns the objects to the left. This works in relationship positioning.
Relates an object to the left of another object.
Aligns the objects to the right. This works in relationship positioning.
Relates an object to the right of another object.
Aligns the objects to the top of the highest selected object. This works in relationship positioning.
Aligns the objects by the bottom of the lowest selected object. This works in relationship positioning.
Aligns the objects to the center of the page. This works in relationship positioning.
Aligns objects at the horizontal center point of the object.
Aligns the objects to the middle of the page. This works in relationship positioning.
Aligns objects at the vertical center point of the object.
Makes two or more objects the same width.
Makes two or more objects the same height.
Makes two or more objects the same size.
Turns the grid on and off.
Turns parent/child Drag and Drop on and off.
When this command is off (default), drag and drop is used only to reposition objects on the HTML canvas.
When this command is on, drag and drop is used to designate a parent/child relationship between two objects.
There are instances where you want an object in your HTML canvas to be a child to another object. For example, you may have a report (child) that you want to place within a tab container (parent).
Alternatively, you can select Toggle Drag and Drop from the HTML canvas shortcut menu.
The Drag and Drop command on the Positioning tab is now highlighted.
A small rectangle appears below your cursor, but the child object itself does not move.
The parent/child relationship is now created.
Note: When the Drag and Drop command is on, you are unable to reorder tabs or page containers, when using the Tab, Accordion, or Window components.
The Relationships group contains the Top Left, Top Right, Bottom Right, Bottom Left, Break, and Show commands. The Top Left, Top Right, and Bottom Right commands are only available for HTML pages and Guided Report pages.
Relates two or more objects on a page. Two objects must be selected. Relates an object to the top left of another object.
Relates two or more objects on a page. Two objects must be selected. Relates an object to the top right of another object.
Relates two or more objects on a page. Two objects must be selected. Relates an object to the bottom right of another object.
Relates two or more objects on a page. Two objects must be selected. Relates an object to the bottom left of another object.
Note: The above four commands have been deprecated and will be removed from a future release of App Studio.
Breaks the relationship between the objects selected.
Shows or hides the relationship between objects.
The Text Alignment group contains the Left, Center, Right, and Full Justification commands. These commands align text within the HTML page.
Aligns selected text to the left.
Aligns selected text to the center.
Aligns selected text to the right.
Fully justifies the selected text, meaning that the text fills the width of the text box.
The Responsive Design group contains the Toggle Editing, Toggle Selection, and Update Layout commands. These commands are enabled when the Responsive design property is set to Yes.
Toggle on to allow containers that include content to be dragged to a new position. Toggle off to prevent those containers from being repositioned.
Click to refresh the HTML canvas after you reposition containers, to show how the containers will stack when folded. This command is activated when the Autosize Enable property is set to Yes for both the document and the object.
You can change HTML page properties using the Utilities tab. For example, suppose you want to test your HTML page in a specific browser. The default browser specification is considered a property of your HTML page. To run your page in a different browser, open the Utilities tab and select the desired browser from the Preview command group.
The Utilities tab is shown in the following image.
You can add or remove chaining options using the Chaining group. The Chaining group is shown in the following image.
The commands are:
Chains two or more objects that are selected in the Parameters tab.
Unchains two or more selected, chained objects in the Parameters tab.
You can synchronize an Analytic Document using the Analytic Documents group. This group is available only for an HTML page and a Guided Report page. The Analytic Documents group is shown in the following image.
The commands are:
Syncs an Analytic Document.
Shows the synchronization of the canvas.
You can unlock a template to add controls, text, and buttons. This group is available only for an HTML page and a Guided Report page. The Template group is shown in the following image.
The commands are:
Unlocks the template that you are using and allows for full control of the page.
In template mode, this adds a title bar and a form with controls, text, and buttons as a set.
How to: |
The Miscellaneous group contains the Visibility, Tab order, Delete Container, and Refresh All commands. This group is available only for an HTML page and a Guided Report page. The Miscellaneous group is shown in the following image.
The commands are:
Toggles the visibility of hidden objects. Hidden objects are objects that have the Visibility property, in the Properties panel, set to hidden.
For more information on using the Visibility command, see How to Toggle the Visibility of a Hidden Object.
Shows the order of the tabs.
Deletes the selected container, without deleting the container content.
Refreshes the HTML page.
The object on the canvas is hidden from view.
The hidden object is now displayed on the canvas. You can click the Visibility command again to hide the object again. At run time, this object will be hidden.
The Preview group, as shown in the following image, allows you to preview HTML output in Chrome, Firefox, and Edge browsers to be sure that your content displays correctly.
The Preview Runtime option is available for Responsive HTML pages only. It uses your default browser to preview your HTML run time layout with simulated data. This may be faster than running the page if it contains large amounts of data.
Note: Alternatively, you can right-click in the HTML canvas, select Preview, and select a browser or Preview Runtime.
The browser preview options are:
Preview your HTML output in Chrome.
Preview your HTML output in Firefox.
Preview your HTML output in Edge.
Available for Responsive HTML pages only. It uses your default browser to preview your HTML run time layout with simulated data.
The View group allows you to display or hide the panels associated with an HTML Page or Guided Report page. This group is accessible in the Utilities tab of the HTML canvas and in the Text Editor tab when accessing the Embedded JavaScript and Embedded CSS view tabs. The View group is shown in the following image.
The commands are:
Toggles the visibility of the Properties panel.
Toggles the visibility of the Settings panel.
Toggles the visibility of the Thumbnails panel.
Toggles the visibility of the Tasks & Animations panel.
Toggles the visibility of the Requests & Data sources panel.