Creating a Rich Display File™
To create a simple Hello World display file, follow these steps:
Start the designer
Create the Hello World Label
Drag a label widget onto the canvas
Double-click the label
Type “Hello World”
Use the inline editing toolbar to center the content within the label widget
Create a button to exit the application
Drag a button onto the canvas
Double-click the button and type “Exit”
Find the button’s response property in the Properties Window. Click the bind button. In the binding dialog, type “btnExit” for the field name.
This step is important. It tells the application to send a response to the server when the button is clicked, and to set on an indicator so that the application’s code can determine which button is being used.
Note: In this example, we used a named indicator. You may also use a traditional RPG indicator, such as a *IN01. Named indicators are declared as length 1 alpha fields in the display file.
Click the canvas to select screen properties. Set the following properties:
record format name: HELLO
description: Hello World Record Format
document title: Hello World
Save your work to a source member
Select the Save button from the ribbon. The Save As Dialog will appear:
Type in a source file and library name. It is best to use a development library of your own. If you don’t have a library to use, you may create a separate library for Profound UI applications (using command CRTLIB), along with a source file for DDS source (using command CRTSRCPF). Alternatively, you may use the PUISAMPLES library, which ships with the product.
Type “HELLOWORLD” for member name.
Type “Hello World Rich Display File™” for text.
Click Save
Note: Your work is saved as standard DDS source.
Compile the display file source to create the rich display file™
Click the Compile… button on the ribbon. The Create Rich Display File™ Dialog will appear:
Click the Compile button.
Note: Rich display files™ can also be compiled from the command line, using the CRTDSPF command, or option 14 in PDM.