> Defining or Modifying Functions

Create new functions or modify existing functions by associating icons with functions, setting background-printing parameters for reports, etc.

   To view a list of current functions in Datastream 7i, run the List of functions report (BRFUNL).

Follow these steps to define or modify functions.

  1. Open the Functions form (BMFUNC).

  2. Click the Record view tab. Datastream 7i displays the Record view page.

  3. Function—Enter a unique six-character mnemonic code for the new function, and then enter a brief description of the function in the adjacent field.

   When modifying an existing function with an & (ampersand) in the title, do not modify the location of the &, and do not change the letter that follows it. This letter and symbol combination determines the shortcut key for that function; modifying this information could disable the shortcut.

  1. Class—Click to select the class of the function.

  2. Form type—Enter the code of the form type for this function. The code is the same as the second letter in the function’s mnemonic. Refer to the following list of valid codes:

  1. File—Enter the name of the executable file for this function.

  2. Parent—Click to select the function on which this new function is based.

  3. System entity—Enter the code of the primary entity this function supports. For entities with a status entity, enter the code of the status entity.

  4. Last value—Enter the entity used by Datastream 7i to "remember" the primary key field in this function.

  5. Query allowed—Select to allow users to retrieve data from the database.

  6. Insert allowed—Select to allow users to input data into the database.

  7. Update allowed—Select to allow users to update data previously retrieved from the database. Updating data requires Query permission.

  8. Delete allowed—Select to allow users to remove data from the database. Deleting data requires Query permission.

  9. Direct select—Select to allow users to open the form directly from the direct selection field.

  10. Background—Select to execute report functions in the background. Background printing is useful for batch reports.

  11. Icon—Enter the name of an existing icon file (without the .ICO extension) to associate the icon with the function for display with iconic menus. The icon file must be in the correct format for your operating system and within the search path for icons (normally the icons directory in your Datastream 7i environment).

  12. Report—Click to select a report that prints (in the background) using the selected data on a screen function. Also, specify background report parameters to use with this functionality.

  13. Public—Select to allow all users access to the function.

  14. Fixed printer—Click to select the printer code if you want to assign a specific printer to the function. Setting a fixed printer is valid only for report functions.

  15. List at startup—Select for Datastream 7i to display the List view page when the form is opened. Unselect for Datastream 7i to display the Record view page when the form is opened.

  16. Command—Click to select the external report command if defining a new report for this function.

  17. Query at start-up—Click to select the stage of the query process in which the form opens.

  18. Path—Enter the file location of the command (i.e., C:\\…).

  19. Employee filter—Click to select the employee type to apply to the function.

  20. User’s guide—Enter the file location of the Datastream 7i User’s Guide Adobe Acrobat Portable Document Format (.PDF) file.

  21. Choose File | Save from the menu bar. Datastream 7i saves the information to the database.

   After defining a new function, you must authorize users to use the new form.