Applications → Working with Forms → Form Settings → Widget Settings → REST Grid Widget
This topic describes REST Grid widget settings. For details on using the widget, refer to Using the REST Grid Widget.
The following table describes the fields on the General tab of the Property Editor for this widget.
Field | Description |
---|---|
Name | Type the name by which the widget is uniquely identified. No other widget or control on this form can have the same name. |
Caption | Type the text to appear in the title bar
above the widget.
If you leave this field blank, the widget will not have a title bar. |
URL | Displays a URL to a configured REST
service. If none has been configured, click
Configure URL. Complete the dialog box
that opens as described in
REST Service Configuration Dialog Box.
Click the Clear button to remove the URL and start over. |
Options | Border: Select this
check box to draw a thin line around the widget.
Scroll bars: Select this check box to include scroll bars in the widget. This provides more content than the allotted space. Paging: Select this check box to
include buttons at the top of the widget that let users navigate between pages
in the result set.
Note:
Include lower page bar: Select this check box if you want to include paging buttons at both the top and the bottom of the widget. Use SSO authentication: Select this check box to pass a Single Sign-On (SSO) token to the REST service for authentication at runtime. SSO authentication can be used for REST services within SBM. (See the SBM Installation and Configuration Guide for information about SSO.) Important: This option only applies if
SSO
is enabled for
SBM.
It should not be used with non-SBM
REST services for security reasons and because some REST services will fail if
the token is not expected.
|
Description | Type an optional description of the widget. |
The Query tab lets you override the parameters and values for the REST service.
The following table describes the fields on the Query tab of the Property Editor for this widget.
Field | Description |
---|---|
URL | Indicates the base REST URL. During deployment, the endpoint is generated using this URL. |
Parameters/Values |
URL parameters are listed below the URL. Values can be static values or be bound to other field or control values. If Paging is selected on the General tab, you must map a parameter responsible for paging to the RESTGridWidget._currentPage or RESTGridWidget._currentIndex parameter. Otherwise, during validation, you receive a warning message, and when the user pages, the previous results are displayed. (See Using the String Builder Tool for instructions.) |
The following table describes the fields on the Result tab of the Property Editor for this widget.
Field | Description |
---|---|
Render as |
Enable row selection and use of row data as field content: Lets users populate a control such as a text box with the data from a selected row. If this check box is cleared, the Columns the grid will display table contains an additional Action on click column. Allow multiple row selection: Lets users select multiple rows in the REST grid by pressing Ctrl+click or Shift+click. If you map this to a single text field, the field will be populated with a comma-separated list (for example, "value1,value2,value3"). |
Output: Available Data | Shows the data elements you can include in
the result set. Bold nodes indicate valid elements that you can move to the
Grid columns or to the
Tile content pane.
As you type in the box above the list, SBM Composer filters the list to show only the data elements with names that contain the characters you typed. |
Grid Columns |
The Action on click column is not available if you are binding to widget data, because when you bind to widget data, there are other links, and users would find it difficult to determine what they are clicking. |
Tile Content | Type or paste the content for each tile in
the result set.
Alternatively, you can use the string builder tool to insert references to table fields and form controls. For example, you could use the following code to put a small HTML table in each tile: <table width='100%'> <tr> <td rowspan='2' width='80px'>{SmallImage}</td> <td>{ItemAttributes.Title}</td> </tr> <tr> <td>{OfferSummary.LowestNewPrice}</td> </tr> </table> |
Copyright © 2007–2015 Serena Software, Inc. All rights reserved.