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.
Ā