Creating a Rich Display Fileā„¢

Ā 

To create a simple Hello World display file, follow these steps:

  1. Start the designer

  2. Create the Hello World Label

    1. Drag a label widget onto the canvas

    2. Double-click the label

    3. Type ā€œHello Worldā€

    4. Use the inline editing toolbar to center the content within the label widget

  3. Create a button to exit the application

    1. Drag a button onto the canvas

    2. Double-click the button and type ā€œExitā€

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

  4. Click the canvas to select screen properties.Ā  Set the following properties:

    1. record format name: HELLO

    2. description: Hello World Record Format

    3. document title: Hello World

  5. Save your work to a source member

    1. Select the Save button from the ribbon.Ā  The Save As Dialog will appear:

      Ā 

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

    3. Type ā€œHELLOWORLDā€ for member name.

    4. Type ā€œHello World Rich Display Fileā„¢ā€ for text.

    5. Click Save

      Note: Your work is saved as standard DDS source.

  6. Compile the display file source to create the rich display fileā„¢

    1. Click the Compileā€¦ button on the ribbon.Ā  The Create Rich Display Fileā„¢ Dialog will appear:


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

Ā 

Video Tutorial