Open Client New Features

  

Open Client Administration  

Open Client New Features

Open Client supports the Expander object that renders to the coordinates specified and when the expanded state is changed will animate the appearance/disappearance of the rows defined by the object. If the contracting/expanding of the rows alters the screen size relative to the browser window size significantly, Open Client will update the state of the browsers scroll bars such that all screen content is accessible. If resizable objects are present in a screen with an expanding area, then Open Client will, if required, resize those objects as the objects in the expanding area are contracted/expanded. See Expander Object at run-time.

Soft Key Mapping and the Function Key Toolbar

PROIV Function Keys can inadvertently control browser features, for example F1 displays a help page, and F11 displays a full screen web page. Not all browsers allow this functionality to be turned off by a page script, and therefore, some Function Keys may not work as expected in a PROIV Function. To help resolve this issue, Open Client has introduced a built-in toolbar for the Function Keys that can be enabled by setting the Softkeys.enabled property in the Messages.properties file to TRUE. Click here to learn more about the Open Client Function Key Toolbar.

CSS Style Sheets

Open Client's display is controlled by its style sheets. There are two default style sheets supplied, PROIVDefaultStyle.css and PROIVFixedStyle.css. The PROIVDefaultStyle.css file contains style elements that may be changed for your applications, and PROIVFixedStyle.css contains elements that should not be changed unless the implementation of a widget is being replaced.

Note: Warning: Changing style elements in the PROIVFixedStyle.css style sheet may stop a widget from working. Do not change the contents of the PROIVDefaultStyle.css as any updates released by PROIV will overwrite your changes. Instead you should create your own style sheet in the application resources area and use this to override style elements.

Application Images

Images used by Open Client are not held on your computer, they are held on the Open Client server. This means that there is only image location to maintain, and any changes are made available to all users with immediate effect.

The application images are stored in the appImages folder in the Application Resources folder, …/appResources/myApplication/appImages.

Click here to learn more about accessing images on the server.

Open Client uses several standard images (e.g. the Date Picker ) and these can be overridden by putting an image of the same name in the appImages folder. When the Open Client needs an image, it uses the resource paths defined for the service to check each appImages folder in turn looking for the image. If the image is not found then it looks in the …/appResources/appImages folder for the default Open Client images, and if it is still not found then a default image (proiv.gif) is used.

Web-Based Help

Open Client includes a web-based help system that maps PROIV Help Keywords to web pages. The default help page in Open Client explains how to configure a help system for an application.

To disable the Open Client help, set the status.helpButton property in the Messages.properties file to FALSE.

Status.helpButton = false

Configuring help for an Open Client application

To configure help for an Open Client application, create a new folder called appHelp in the Application Resources folder, .../appResources/myApplication/appHelp.

The Open Client help can be configured in the following ways:

Adding a new default Help page

Adding your own Help pages

Adding your own Help pages using existing application keywords

  1. Add the help pages to the appHelp folder.

  2. Copy your default help page ('default_help.html') to the appHelp folder.

  3. Edit the 'default_help.html', enter the keywords and the name of help file in the 'keywordsArray'.

See the following example:

<html>

  <head>

    <script language="JavaScript" type="text/javascript" src="help_topic.js"></script>

    <script language="JavaScript" type="text/javascript">

    function keywordRedirect() {

    // add your entries after the example and before the empty array ([]). Each entry

    // must end with a comma. Note that the empty array must be the last entry and

    // must not end with a comma. You can remove the example.

    var keywordsArray = [

      ['myKeywordExample', 'myHelpPageExample.html'],

    []

    ];

      redirect(keywordsArray);

    }

    </script>

Open Client Help system can be replaced by a customised one.

  1. Copy the files help_object.json and PROIV_Help.js to the application resources appOjects folder (e.g. …/appResources/myApplication/appObjects/).

  2. The PROIV_Help.js file contains a function called 'setProperty' that is called with the new keyword every time the PROIV Help Keyword changes. This function can be changed to perform the required action.

List Box Multi-Column Resizing

If an Open Client list box has a header and a vertical scrollbar, it has a at the top of the vertical scrollbar that resizes all columns in the list. Clicking this resizes all columns in the list in 3 different ways:

  1. The columns are set to their initial widths as defined by the PROIV Developer.

  2. The columns are set to the width of the longest text in the column.

  3. The columns are set to the minimum width in an attempt to display all columns without horizontal scroll. There is an absolute minimum width for all columns and so it may not be possible to display all columns without horizontal scroll.

The Listbox.multiColumnResize property can be set in the Messages.properties file to specify the starting state of the column widths:

This property does not affect how the states are cycled, it only affects the starting state. The property applies to all list boxes in the application.

Date Picker

The Open Client Date Picker includes drop-down lists to select the month and the year. There are also two s for moving the year list backward and forwards. The current date is shown as is the currently selected date.

The Date Picker display is controlled by a style sheet and a set of properties in the Messages.properties file.

To change the style, copy the datePicker.css, date_picker_object.json and the PROIV_DatePicker.js files from the …/appResources/appObjects folder to the appObjects folder in the Application Resources folder.

Property

Description

DatePicker.format

The format of the date when presented as a string. The letters mm are the month, dd is the day of the month, yy is a two digit year and yyyy is a 4 digit year. The default is mm/dd/yyyy.

DatePicker.charsForDay

The number of characters from the day of the week (DatePicker.firstDayOfWeek) that should be used to represent the day in the calendar. The default is 1 (i.e. the first letter).

DatePicker.inputAssist

If set to TRUE, any input the user types into a date text field is automatically formatted and validated.

DatePicker.firstDayOfWeek

First day of the week displayed in the calendar. The default is 7 (Sunday).

DatePicker.ascDescYears

asc displays the Years drop-down list with ascending years.

desc displays descending years.

The default is asc.

DatePicker.numberOfYears

Number of years displayed the Years drop-down list. The default is 16.

DatePicker.selectedYearPosition

The position in the Years drop-down list of the currently selected year. The default is 8.

DatePicker.yearsToMove

The number of years that the Years list is moved forwards or backwards by the Year s. The default is 16.

DatePicker.addFormatToTooltip

If this is set to TRUE, the tool tip for a date edit box includes the date format (see above).

DatePicker.monday - DatePicker.friday

The defaults are ‘Monday’, 'Tuesday', 'Wednesday', 'Thursday', and 'Friday'.

DatePicker.january - DatePicker.december

The defaults are ‘January’, 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November' and 'December'.

The Date Picker image is called datepicker.gif and can be changed by putting a file with the same name in the Application Resources appImages folder.

Date Picker Input Assistance

An edit box set up as date field can have edit assistance. This is turned on and off by the DatePicker.inputAssist property (see above). If enabled, date format characters (such a slashes) are automatically added in the correct places and the date is checked for validity as you type.

Multilingual Text and Locale-Based Properties

Open Client contains strings which are used for error messages, dialogues and other objects (e.g. the Date Picker) that are not generated by the PROIV Virtual Machine. If the client is being used in a multilingual environment, these strings may need to be available in different languages. See the Open Client Message Properties section for details.

Cell Sizing

Open Client positions widgets using the character properties defined by PROIV Developer. These properties are based on a grid of cells. In the PROIV Client, this was assumed to be one character per cell, but in the Open Client the cell size can be defined by the session properties' width factor and height factor. The width factor is the width in pixels of a cell and the height factor is the height in pixels of a cell. The defaults used by the Open Client are 9 and 20 to mirror the PROIV Client.

Comment on this topic

Topic ID: 800046