User Rating: 4 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Inactive
 

axScreenDataViewer

Description

Use of this eXtension enables the display of individual field data or a subfile data from one 5250 screen to another screen.

Properties

Name

Description and Comments

JavaScript

Shipped default

caption

Specifies the text that is to appear at the top of the element. Applicable only when the reference is a subfile and not an individual field.

Yes. Must return a string.

None.

enabled

Indicates whether this element is enabled.

TS2 only.

Yes. Must return a Boolean.

True.

onFocus

Optional. JavaScript code to be executed when the element receives the focus. 

Yes.

None.

onBlur

Optional. JavaScript code to be executed when the element lost the focus. 

Yes.

None.

referenceName

Refers to the logical name of the reference data.

Yes. Must return a string.

None.

style

Additional style properties that should be applied to the element. Overrides values whenever there is a previous setting. 

Yes. Must return a valid style object.

None.

Notes, Comments and Warnings

There are two user scripts needed to successfully display data from one screen to another screen: SAVESCREENDATA and DISPLAYSCREENDATA.

SAVESCREENDATA( <fieldName> );

         where <fieldName> is the name of a reference field assigned by the user.

SAVESCREENDATA( <referenceName>, <rowCount>, <colName1>, … <colNameN> );

    <referenceName> - the logical name of a subfile assigned by the user.

    <rowCount> - the number of subfile rows to be displayed.

    <columnName> - the name of the subfile column assigned by the user.

DISPLAYSCREENDATA( <element name> );

   <element name> - the name of the Screen Data Viewer element assigned by the user.

useJQueryExtensions Application Property

When the useJQueryExtensions property of the Application is checked, the display will change according to the theme that was set in the Application’s jqueryTheme property. Basically, the default border and the font styles will be based on the JQuery theme.

Examples

Add a Screen Data Viewer element to a primary screen.

Image

Define element properties.

Image

Put the DISPLAYSCREENDATA script onto the onArrive dialog.

Image

Go to the screen where the subfile resides. Mark the columns to be referenced.

Image

Put the SAVESCREENDATA script onto the onLeave dialog.

Image

Go back to the primary screen and see the result.

Image

Administrators

Legal Mentions

aXes is brought to you by:

LANSA

Serving the IBM i community for 30 years.