Resource_FillSeriesList()

Examples


The Resource_FillSeriesList() function fills two list fields (fields that use a list box or drop-down list control type) with the display names and technical names of resources of a specified resource type and series.

Syntax

Resource_FillSeriesList(product_ID, type, series, dnames_list, tnames_list)

Parameters

product_ID – An integer specifying the product ID of the dictionary from which resource information is being retrieved.

type – An integer specifying the type of resource whose names will fill the list fields dnames_list and tnames_list. The types, and their corresponding integer values, are shown in the following table.

[spacer]

Value

Description

40

Forms

43

Tables

44

Table Groups

45

Reports


series – An integer specifying the series of the forms, reports, tables and table groups whose names will fill the list fields dnames_list and tnames_list. The following table lists all the series and their corresponding integer values.

[spacer]

Series for forms and windows

1 – Financial

6 – Project

11 – Macro System

2 – Sales

7 – System

12 – Palette

3 – Purchasing

8 – Company

13 – Dexterity

4 – Inventory

9 – Online Documentation

14 – Dexterity System

5 – Payroll

10 – 3rd Party

15 – Report Writer


Series for tables and table groups

1 – Financial

7 – System

12 – Pathname

2 – Sales

8 – Company

13 – Design Document

3 – Purchasing

9 – Online Documentation

14 – Dexterity

4 – Inventory

10 – 3rd Party

15 – Dexterity System

5 – Payroll

11 – Payroll Tax

16 – Report Writer

6 – Project

 

 


dnames_list – A window list field that displays the returned display names of the specified resources.

tnames_list – A window field that displays the internal technical names for the specified resources. Names in this list must be used when referring to resource names in scripts.

Return value

The boolean value true.

Comments

Resource_FillSeriesList() returns two different names for a given resource; the display name (added to a window field specified by dnames_list) and the technical name (added to a list field specified by tnames_list).

If there is no main window for a form, the display name for the form will be “Main Window Missing”.

Be sure the series resource lists are up to date before you use this function. You can use the Series Resources utility in Dexterity Utilities to update series resources.



Documentation Feedback