Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Views are different forms of the same table.

SimpleOne supports multiple views which are useful not only for dealing with different sets of fields on the agent interface but also for different platform sections such as the agent interface itself and SimpleOne provides a number of predefined views for your basic system which you can customize to your business needs. These views specify what fields will be displayed in agent interface and on the Self-Service Portal (SSP). Let us demonstrate this functionality on the incident example.

Incidents have the following views:

SP View Only – the

These tables depict the out-of-the-box SimpleOne views which you can configure:

Form views
ViewInterfaceDescription
DefaultAgent

If no preferences set, a user will use this view in the agent interface. It is the basic view displaying most of the fields. If non-existent view is chosen in Preferences, the Default view will be used. 

PreviewAgentThe view displays read-only information about a record without transferring to the record. Learn more about the Preview view further in this article.
UserAgentThe form view is used in the agent interface for the Employee table. It has the same set of fields like the Default view of User.
SP View OnlyPortalThe form view is used on the SSP
in
on the My
Tickets
tickets page for displaying information about
incidents
cards created by the current user.
SP
– the
PortalThe form view is used on the SPP in the My
Tasks
tasks page to display information about
an incident record
records: incidents, user queries, requests, change requests and problems. This card contains
a
the Read Only Form
widget
 widget.
Service Catalog
– the
PortalThe form view is used on the SSP for submitting an incident or a user query from the Main page (
the
the Create
Incident card
Ticket card).
Service
portalApprovalPortal
Form
Default – the
The view is used for displaying approval tickets on the SSP.


List Views
ViewInterfaceDescription
Default 

Agent

If no preferences set, a user will use this view in the agent interface
(
. It is the basic view, displaying most of the
fields).
  • Previewreserved for the record preview form.
  • Panel

    ? как добавить вью к новой сущности (название вью то же, сущность другая, eg crm deal, а используем SP или что-то подобное)

    Create a new form view 
    columns. 
    AnnounceViewPortalThis list view is used by the Announcement list page on the SSP.
    SPPortalThis list view is used for lists on the SSP for the My tasks, My approvals, Assets and equipment, My tickets pages.


    Warning

    Do not delete these system views as it may harm the system.

    Adding a view
    Anchor
    create a new form view
    create a new form view


    Sometimes the out-of-the-box views are not displayed (like the Preview) or not added to the table you need.

    For example, in case you create a new table for a process which needs approvals. As this table is new, the system does not have information about what fields it should display on the portal, and the ticket looks like this:

    Image Added

    See the Configuring approval view section of this article to learn how to customize field set for approval tickets.

    To configure the view, To create a separate view, please complete the steps below:

    1. On the record form, enter the hamburger menu and select Configure → Form → Layout.
    2. In the Form view and section area, click Add new next to the View name field.
    3. In the modal window appeared, enter the desired view name and click Create.
      Image Modified
    4. Configure the fields to display order by moving them from the the Available to Selected layout area.(Optional) Use the Section option to add more form sections if you need.
    5. Click Save to apply changes and leave the configure menu.
    Note

    If you leave the configure menu without clicking the Save button, then the pop-up window will appear. Click OK to save changes or click Cancel to discard them.

    Configuring

    Preview

    preview form view
    Anchor
    preview view section
    preview view section


    The Please note that the Preview view name is reserved for the record preview form displaying in reference fields and info thingyread-only preview form. It provides brief information about the selected record. Call it by clicking on the record name in a reference field or on the information icon Image Added on the list view. This form looks like this:

    Image RemovedImage Added Image Added

    Tip

    Role required: admin.

    To configure a preview form view, please complete the steps below (you need to have admin privileges to perform this):

    1. Navigate to Open the record of a table form you need to add a preview form.
    2. Add a new form view as described in the Create a new view section and give it the Preview name.
    3. Fill it with desirable fields and click Save.
    4. After that, when clicking on a record in a referenced field related to this table, you will see a preview form containing brief information about the referenced record in the read-only mode.

    Example

    You have created a Preview form for the Timezone table and added some fields like shown in the screenshot above (these are the Title, Name, UTC Offset, Active, and Updated at fields). And by clicking on the field referenced to the Timezone table on other forms (for example, UserEmployee, Schedule, and so on), the timezone record Preview form appears
    1. In the hamburger menu Image Added, select Configure → Form → Layout.
    2. In the Form view and section area, click Add new next to the View name field.
    3. In the window appeared, enter Preview and click Create.
    4. Configure the fields order by moving them from the Available to Selected layout area.
    5. Click Save to apply changes.

    Configuring approval view 
    Anchor
    portalApproval view
    portalApproval view


    The portalApproval view is used to display record fields on the portal Approval page. You can configure existing portal forms and rearrange the displayed fields or define a set of fields for a newly created table.

    Image Added

    To configure the set of fields, perform the following steps:

    1. Open the record of a table for which an approval is created.
    2. In the hamburger menu Image Added, select Configure → Form → Layout.
    3. In the Form view and section, select the portalApproval view. 

      Info

      If the table does not have the view but has related approvals, click Add new and name it portalApproval. The system will retrieve this information to display exactly the selected fields.


    4. Configure the fields order by moving them from the Available to Selected layout area.
    5. Click Save to apply changes.

    Configuring a portal form view

    Adding view for a portal page

    To create a new view for a portal page element (of a record in a particular table), set up a widget instance and enter the name of the created view as this:

    "itemView":"Custom View"

    Creating view for a user

    ПРЕИМУЩЕСТВА:

    Виден ли другим юзерам? Ставится по дефолту или нужно выбирать? Как соотносится с преференсами?

    To create a new view, please complete the steps below:

    1. Navigate to System Definition → Form Views.
    2. Click New and fill in the fields.
    3. Click Save or Save and Exit to apply changes.

    View form fields

    Field

    Mandatory

    Description

    TableYSpecify a table for which you create a new view. This field is referenced to the Tables dictionary.UserNSpecify a user who will be shown this view. If the user is not specified, all users will see this view.TitleYEnter the descriptive title for the view.

    Portals pages use form views defined in agent interface. Depending on the table, the portal widgets use different kinds of views: some retrieve layout information from heapselect elements, and some use widgets.

    To configure the set of fields of a form to be displayed on portal, perform the following steps:

    1. Open a record in the table for which you need to configure the portal view.
    2. In the hamburger menu Image Added, select Configure → Form → Layout.
    3. In the Form view and section, select the view used by the widget instance.
    4. Depending on the widget, there are two ways to configure the layout:
      • move elements for the Service Catalog and Service Portal views. 

      • edit the Read Only Form widget properties for the SP and SP View Only views.
    5. Click Save to apply changes.

    To change the view that a widget instance uses, perform the following steps:

    1. Open the widget instance (ListItem) displaying the records form you need to configure.
    2. In the Schema Option Values field, enter the view name like this: 

      Code Block
      themeConfluence
      "itemView":"Custom View"


    See the Widgets Displaying article to learn more.

    Image Added

    For example, the portal uses the SP view to display records from My tasks page, and the SP View Only view for My tickets page. To change the set of fields for incident records of My tasks page, we will perform the following steps:

    1. Navigate to Incident Management → All Incidents and open any record.
    2. In the hamburger menu, select Configure → Form → Layout.
    3. In the Form view and section, select the SP view.
    4. Configure the layout.
    5. Click Save to apply changes.

    /

    Client-side scripts on views

    If there is more than one form view available for any table, then you are able to run separate Client Scripts on different views depending on the business need. In the above example, different client-side scripts can be executed on the agent and portal views if needed. So, if you need to execute your client-side script on a particular view, specify it in the relevant field when filling a form.


    Table of Contents
    absoluteUrltrue
    classfixedPosition
    printablefalse