Commands and Navigation in BrightWeb

Contents Hide

   

As there are far fewer user configuration commands in BrightWeb, most of the base UI differences from Windows Mobile and Android to the BrightWeb platform lies in navigation options for the user. This chapter will detail key navigation features for the web user employed in BrightWeb powered applications.

User Login Main Page

After entering the BrightWeb URL (http://<BrightServer IP Address>:<BrightServer Port>/brightserver/web/) , the following login page will be displayed to users:

Entering valid user credentials in at this stage and clicking 'OK' (or hitting the Enter key) may have three different effects:

If incorrect user details are entered at this stage, the page will be updated displaying the following to the user

Note: If an existing solution for Windows or Android already has a login screen, and is thus is no longer necessary due to the gateway's login page, then the 'Web Main Form Name' property of the project may be defined to accommodate differing login processes in web mode. Furthermore, this login screen may be changed, using the 'Branding' node of the Server's Configuration tree. For more information, please refer to the BrightServer > BrightWeb Branding chapter of this documentation.

Web Toolbar

All forms are able to close, log out, go 'home' or show the about or help pages via a web toolbar that appears at the bottom of the screen. This may display up to 5 options to the user, as well as the username of the user who has logged in.

The options to the user is as follows:

The appearance of these options may be modified in a form's properties in your BrightBuilder project, depending on the logical flow within the web based application. The web toolbar is displayed in addition to the screen space (i.e. the height of the form) defined in the application. This means if the toolbar needs to be visible on the screen without the user needs to scroll down, then the height of the toolbar must be taken into account when the forms are designed.

Logout Dialog

Tapping on the logout button will display a log out dialog to the user. If the user agrees to this confirmation, the application will return to the server login screen, and their session, as well as their application state, will be treated as completely logged out, the user session on the server will be removed and allocated system resources will be released.

While this course of events is similar to typical web applications, it is different from the typical flow of existing BrightXpress mobility platform solutions. Rich client BrightForms applications on Windows and Android platforms are in simple terms model dialog applications. This means that while the application is executed, BrightForms maintains a stack of forms on top of each other, and prevents the user from accessing other forms, allowing access only to the top most form currently active.  BrightWeb maintains and services forms in a different way. That is why if a certain execution order of opening and closing forms are to be maintained, then having the logout and home options on the toolbar may not be suitable on certain forms in a web application. For compatibility with existing Windows Mobile and Android applications, disabling the logout and home options on the web toolbar on some forms may need to occur for a consistent and unified solution.

Message Boxes in Web

Message boxes are given their own browser space separate to the form they have been called from to accommodate variable messages and options on the web platform. Once an option has been selected, the user is returned to the parent form which holds the result.

While consistent with BrightForms implementations on Window and Android, this may be disruptive to the user, and also may pose problems for the state of the application due to the screen shift. Thus in applications running on BrightWeb, the effect on State Management and Form Loading should be carefully considered before utilising message boxes.

Menus in Web

There are two types of menus available in BrightWeb, set by the 'Web Menu Position' in the Project's properties. Having the position set as 'Top' will have menus behaving similarly to PDA applications, displaying at the top of the screen when running in web mode. Menu expansion will occur when the menu item's region is hovered over. On touch screen devices, this region needs to be tapped to expand. The menu items are accessed by tapping/clicking the listed text entries. This is the default menu style for all new projects in BrightBuilder.

As of BrightBuilder 7.2.0, menus may also be defined as 'Left' positioned in web. This may be used within the application to give a more web-like look and feel in terms of navigation, displaying menu options on the left hand side of the screen for forms which have menus enabled. These items may be clicked as links for the menu action to occur.

There are a number of web-only properties which also apply solely to this menu representation - Web Menu Has Image/Image File, and Web Menu Width. This will define the image displayed at the top of the left-positioned menu in web mode, and the width of the menu displayed in the application.

Both these types of menus' font, text colour and background colour may be changed for web via a project's 'Web Menu Font' property. The space used by each of these menus is in addition to the space in the WYSIWYG. As a result, when defining a screen aspect with menus, this menu section's height/width and the form dimensions should also be factored in when calculating the total screen space of the application.

These side menus may be used to facilitate centralised navigation in projects where all forms may load from any other opened form via menus. In such projects, in order to avoid a large unused stack of forms, please refer to the 'Web - Close Current Form Before Opening Child Form' feature in the Form Open Dialog.

Cursor Forms

Cursor forms with cursor and/or navigation bars will display them with all available options above the web toolbar at the bottom of the form. The links correspond to the following actions:

The space for this feature is separate from the defined height of the form, and should be managed as such.