Community articleRunning the form sample application under C on AIX, Linux, and Solaris
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Run the form sample application in IBM® Forms Viewer to view what you have created.
To set up and run the Form sample under C:
  1. Switch to the directory:
  2.    <API Installation Folder>/samples/<UNIX_OS>/demo/sample_application/

  3. To view XFDL forms you must use a computer running Windows. Copy the file formSample.xfd to a computer running Windows.
  4. In Windows, use the Viewer to open formSample.xfd.
  5. Notice the radio buttons used to indicate gender and the empty Age field. You can now close the Viewer.
  6. Create the makefile by typing xmkmf at the command prompt and press Enter.
  7. At the command prompt, type make and press Enter.
    • This will build the application file (formSample).
  8. To run the sample application, type ./formSample and press Enter.
    • This produces a new form called output.xfd in the current folder.
  9. Copy the file output.xfd to a computer running Windows.
  10. In Windows, use the Viewer to compare the two forms.