The UIDesigner Perspective

The UIDesigner perspective is where you design user interfaces, such as input forms or custom pages. When you select the UIDesigner perspective tab, Desktop Studio displays the UIDesigner perspective panel:

This panel consists of:
  • The Resources tree (1)

  • The popup editor zone (2)

  • Various tool windows (3, 4) that can be docked around it.

The Resources Tree

The Resources tree displays a list of the popups included in the project. It allows you to:
  • Manage the popups included in the project

  • Manage the list of files used by the popup

  • Manage the list of items of a popup

Manage the Popups Included in the Project

Add a new popup: To create a new popup, right-click the POPUPS root node of the Resources tree and select Add a new Popup … from the context menu. This displays a dialog where you have to:
  • Enter the name of the popup – this name must be unique among the popups of the project

  • Choose the template that best meets your needs

Edit a popup: To edit a popup, right-click the corresponding Popup node in the Resources tree and select Edit from the context menu. A new editor then opens in the popup editor zone.

Delete a popup: To delete a popup, right-click the popup node in the Resources tree and select Delete from the context menu. A confirmation message is displayed before the popup is deleted.

Manage the List of Files Used by the Popup

Each popup subtree displays the list of files used by the popup:
  • Popup.html: the HTML page

  • Settings.js: the JavaScript file containing the page design

  • Popup.js and Popup.css: let you to customize the page behavior and style sheet (see Advanced Techniques for Custom Page Design)

This list automatically includes all of the project files in the page subdirectory found in the local folder of your project.

Add a new file: To add a new JavaScript or CSS file:
  • Right-click the popup node in the Resources tree and select Add a new file … from the context menu

  • Enter the name and the type in the displayed popup and validate

  • The new file is created in the page subdirectory

  • It is added to the Resources tree, which means you can edit it in the UI Designer

You can also manually add any existing file (for example, an image) as follows:

  • Copy the file to the page subdirectory

  • Refresh the Resources tree by selecting Refresh file list from the context menu

The added file appears in the Resources tree, allowing you to edit it in the UI Designer.

Edit a file: To edit a file:

  • Right-click the file node in the Resources tree

  • Select Edit from the context menu

  • If necessary, the associated popup is then opened in the popup editor zone

  • The file is opened for editing in its editor zone

Delete a file: To delete a file, you need to remove it manually in Windows Explorer. If necessary, manually update the popup.html file to remove any “include” clauses.

Manage the List of Items of a Popup

The Popup subtree also contains an Items node that contains a hierarchical view of the popup items.

Add a new item: You cannot add a new item using the Resources tree. You must do it in the Designer view.

Edit an item: To edit an item, right-click the Item node in the Resource tree and select Edit from the context menu. The item properties are then displayed in the Properties window, where you can edit them.

Move an item in the hierarchy: Some items are container items that accept other items as children. This enables you to build a hierarchy of items.

You can move an item within the hierarchy using drag&drop in the Resources tree.

Delete an item: To delete an item, right-click the Item node in the Resources tree and select Delete from the context menu. A confirmation message is displayed before the popup is deleted.

Popup Editor Zone

The popup editor zone allows you to design popups. It can contain one or more popup editors, each of which lets you design one popup. You can switch between them using the document selector (see The Editor Perspective). Each popup editor instance consists of the following:

  • The designer view (1)

  • The editor zone (2)

The Designer View

The designer view displays the popup in an embedded Internet Explorer window. This allows you to graphically design your popups. The toolbar contains the following items:

  • : Refresh the design view from the settings.js JavaScript file

  • : Switch design mode on/off

  • : Switch test mode on/off

  • : Open the popup in an external Internet Explorer browser

  • : Capture the popup to make it available in the workflow designer

  • : Replace the popup

Design Mode

When design mode is active, each item is surrounded by a dotted rectangle with the Name property in the top-right corner. In this mode, you can:

  • Add new items

  • Select an item to edit its properties

Add new items:

With design mode active (), right-click in the page:

  • A context menu is displayed showing all available items (button, edit, table, and so on). Each item is mapped to a bootstrap component.

  • Select the desired item type and validate.

  • The new item is added to the Resources tree, under the Items node.

Edit an item:

With design mode active (), click the item in the designer view. The item properties are then displayed in the Properties window, where you can edit them.

Set the position of an item:

UI Designer uses the Bootstrap-3 framework to manage popups. That means that you cannot simply set (X,Y) properties to choose the position of an item. Instead, you have to create a grid using row and columns items.

With design mode active (), right-click within the page in the design view:

  • Expand the Insert grid menu item and choose a grid item to add (such as containers, rows, columns).

  • The new grid item is added to the Resources tree [1] under the Items node.

The Items subtree reflects the structure of the grid. You can change this grid structure using drag&drop in the Resources tree.

For a full description of how to design a grid, see Managing Custom Pages With UI Designer.

To set an item position, simply drag&drop it to the right grid cell.

Delete an item:

You cannot delete an item in design view. You have to do it in the Resources tree.

The Editor Zone

The editor zone allows you to edit the text files associated with the popup: settings.js, popup.html, and so on.

You can open multiple files at the same time and switch between them using the document selector (see The Editor Perspective).

Each file is opened in an editor that provides a wide range of features, including syntax highlighting, unlimited undo/redo, IntelliPrompt, outlining, and zoom. For a complete description of these features, see The Code Editor section in The Editor Perspective.

The Tool Windows

The UI Designer perspective contains the following tool windows:

Properties Tool Window

The Properties tool window allows you to change the properties of popups and their items. The toolbar contains the following items:
  • : Manually refresh the design view with the new properties value

  • : Switch auto-refresh mode on/off

Edit Properties

You can edit the properties of a popup or an item in different ways:

  • From the Resources tree, right-click the corresponding node and select Edit from the context menu.

  • From the design view, either select the item in design mode, or right-click the item and select Edit Item or Edit Popup from the context menu.

The properties are then displayed in the property grid.

Refresh Mode

If auto-refresh mode is on, the design view is automatically updated each time you validate a property change in the property grid. If not, you need to update the design view manually using the button.

Manage Complex Items

Most properties are simple to edit. But some items, such as radio buttons and checkboxes, have complex properties that are editable as arrays of objects.

For these properties, you can:

  • Add a new object to the array using the + button (1).

  • Remove an object from the array using the - button (2).

Docking Management

The layout of the UI Designer perspective is a DockSite comprising:
  • Four tool window zones at the left, right, top and bottom

  • One documents zone in the center. This zone can be split into multiple documents zones.

As in the editor perspective, the layout can be modified and saved (see Docking Management in the The Editor Perspective).