Sample ADM Code

Sample code illustrating various techniques based on ADM code.


ADM code samples

V9 Application Development Methodology (ADM) development topics.

A separate zip file is also available which contains many of the sample 4GL procedures used by the examples in these papers. Note that code examples are not present in the zip file for newer papers, and that some errors in code for other papers are still to be corrected. In every case, the proper code needed to build the examples is illustrated in the documents themselves. There is no prescribed order for reading them, and the papers refer to one another in various ways, so it will be useful to make an effort to read all of them to get a complete view of the topics covered.


ADM code samples

This code samples are related to of a series of white papers on version 9.1 Application Development Methodology (ADM) development topics. These documents are intended to be supplementary to the standard Version 9 ADM and AppBuilder documentation, and can be considered to be a body of programming "tips" and guidelines by developers for developers. Although each of the papers focuses on a specific topic, you will find useful information on a wide variety of ADM development questions throughout the documents. A separate zip file is also available which contains many of the sample 4GL procedures used by the examples in these papers. Note that code examples are not present in the zip file for newer papers, and that some errors in code for other papers are still to be corrected. In every case, the proper code needed to build the examples is illustrated in the documents themselves. There is no prescribed order for reading them, and the papers refer to one another in various ways, so it will be useful to make an effort to read all of them to get a complete view of the topics covered.


Multi window management app using dynamic Smart Browser w/ Search

This is an example of an application with multiple window management and a dynamic smart browser with the search field option. A customised SDO populates a calculated field and performs some field population when a new row is added or created. Includes the following files: wMain,wOrder.w, wDept.w, dDept.w, dOrder.w  added by:
Kimberly Craven


waddwhere.w

This example shows the use the addQueryWhere and setQueryWhere functions in the SDO to make use of dynamic query functionality.added by: Kimberly Craven


wCustomers.w

This example shows the use of the filter in the dynamic toolbar.
added by: Kimberly Craven


wCustOrder.w

This example shows the use of a dynamic smart filter along with multiple SDO's
added by Kimberly Craven


wDataFilter.w

This example shows the use of the getDataHandle function along with a QUERY-PREPARE method call on the returned handle to set the query within the SDO.

added by: Kimberly Craven


wordcusrep.w

  This example shows the use of an SDO with a table Join. Added by: Kimberly Craven


wRepos.w

This example shows the use of the fetchRowIdent function to reposition a row within an SDO.


wSelection.w

This example shows the use the assignQuerySelection and removeQuerySelection functions in the SDO to make use of dynamic query functionality.  added by:
Kimberly Craven