Monday, November 26, 2012

Building the Browse for Folder lookup


1. In the AOT, open the LedgerParameters table, and create a new field with the
following properties:

Property   Value
Type         String
Name       DocumentPath
Label        Documents
ExtendedDataType FilePath
2. Add the newly created field to the bottom of the table's General field group.

3. In the AOT, open the LedgerParameters form, and create a new method with the
following code:

public str filePathLookupTitle()
{
    return "Select document folder";
}
4. To test the results, open General ledger | Setup | General ledger parameters, and notice the newly created Documents control, which allows you to select a folder:


No comments: