Foundation 6

Fnd_IO

23 shared methods.

Fnd_IO_AddMultipleRecords

Fnd_IO_AddMultipleRecords (enable?) --> Boolean

Allows the developer to get and set the value of the Fnd_IO_AddMultipleRecords_b variable.

ParameterTypeDirectionDescription
inEnableBooleaninThe new value of the setting to enable adding multiple records (optional)
ResultBooleanoutThe current setting of the variable to indicate if the feature is enabled

Fnd_IO_DisplayNavButtons

Fnd_IO_DisplayNavButtons ({enable?}) --> Boolean

Allows the developer to display or hide the record navigation buttons for the current process.

ParameterTypeDirectionDescription
inEnableBooleaninTrue to enable the display of record navigation buttons (optional)
ResultBooleanoutTrue if display of record navigation buttons is enabled

Fnd_IO_DisplayRecord

Fnd_IO_DisplayRecord ({->table{; record number}{; ShowLockedMessage}})

Displays the specified record of the table in a new process. If no table is passed, then the current form's table is used (if available). If no record number is passed, then the current record will be displayed. Pass 4D's New record constant to create a new record.

ParameterTypeDirectionDescription
inTablePointerinPointer to the record's table (optional)
inRecordNumberLongintinRecord number (optional)
inShowlockedmessageBooleaninShow Locked Message (optional)
ResultoutProcess number of the (new?) process displaying the record.

Fnd_IO_DisplayRecord2

Fnd_IO_DisplayRecord2 (->table; record number{; calling process})

Called from Fnd_IO_DisplayRecord to display an input form in a new window. If a calling process number is passed ($3) then that process is called if the record is saved. In this case, Fnd_IO_AddRecordNumber_i will contain the record number of the modified record.

ParameterTypeDirectionDescription
pointerTableDisplayPointerinA pointer to the table to display
recordNumberLongintinRecord number
inCallingProcessLongintinNumber of the calling process (optional)

Fnd_IO_DisplayRecord3

Fnd_IO_DisplayRecord3 (record number)

Similar to Fnd_IO_DisplayRecord2, but assumes we're displaying the record in the current process rather than in a new one.

Called from Fnd_IO_DisplayRecord.

No parameters.

Fnd_IO_DisplayTable

Fnd_IO_DisplayTable (->table{; force new window})

Displays the output list for the specified table.

If the table has already been displayed in a process by this method, it is brought to the front. Otherwise a new process is created to display the table.

If the optional parameter is passed and is True, a new table is created even if one already exists.

ParameterTypeDirectionDescription
tablePointerinA pointer to the table to display
inForceNewBooleaninOpen a new window, even if one is already open? (optional)

Fnd_IO_DisplayTable2

Fnd_IO_DisplayTable2 (->table)

Called from Fnd_IO_DisplayTable to display an output form in a new window.

ParameterTypeDirectionDescription
pointerTableDisplayPointerinA pointer to the table to display

Fnd_IO_GetWindowTitle

Fnd_IO_GetWindowTitle ({->table{; record number}}) -> Text

Returns the suggested title for the current window for input forms.

ParameterTypeDirectionDescription
inTablePointerinThe table (optional)
inRecordNumberLongintinThe record number (optional)
ResultTextoutSuggested title

Fnd_IO_Info

Fnd_IO_Info (label) --> Text

Returns requested information. See the Fnd_Gen_ComponentInfo method for more information.

ParameterTypeDirectionDescription
requestTextinInfo desired ("version" or "name")
ResultTextoutResponse

Fnd_IO_InputDrawButtons

Fnd_IO_InputDrawButtons

Called from Fnd_IO_InputFormMethod when the window is first open to draw the buttons from the inherited form.

No parameters.

Fnd_IO_InputFormClose

Fnd_IO_InputFormClose --> Boolean

Called from the Fnd_IO_InputFormMethod when the user clicks the close box or quits the database. Basically we need to ask the user if the record should be saved if it has been modified.

Returns True if the window gets closed.

ParameterTypeDirectionDescription
ResultBooleanoutTrue if the window will be closed.

Fnd_IO_InputFormMethod

Fnd_IO_InputFormMethod

Standard form method for input forms.

Handles the window title and close box on an input form.

No parameters.

Fnd_IO_InputFormName

Fnd_IO_InputFormName ({form name}) --> Text

Allows the developer to get and set the name of the input form to use.

ParameterTypeDirectionDescription
inFormNameTextinThe new input form name (optional)
ResultTextoutThe input form name

Fnd_IO_InputFormObjectMethod

Fnd_IO_InputFormObjectMethod (->form object)

ParameterTypeDirectionDescription
objectPointerinForm object

Fnd_IO_InputFormResize

Fnd_IO_InputFormResize

Called by the Fnd_IO_InputFormMethod to move the inherited buttons around.

No parameters.

Fnd_IO_Localize

Fnd_IO_Localize

Passed the localization strings to the General and (if available) Localization components.

No parameters.

Fnd_IO_MultiWindow

Fnd_IO_MultiWindow ({multi-window?}) --> Boolean

Allows the developer to get and set the multi-window setting.

Multi-window means the input forms are displayed in windows separate from the output lists. If multi-window is false, the input form is displayed in the same window as the output form.

The setting is for the current process.

ParameterTypeDirectionDescription
inMultiBooleaninTrue to begin multi-window mode (optional)
ResultBooleanoutTrue if we're in multi-window mode

Fnd_IO_OutputFormMethod

Fnd_IO_OutputFormMethod

Standard form method for output forms. Call this from every output form method. Make sure the form events checked here are enabled by the form.

No parameters.

Fnd_IO_OutputFormName

Fnd_IO_OutputFormName ({form name}) --> Text

Allows the developer to get and set the name of the output form to use.

ParameterTypeDirectionDescription
inFormNameTextinThe new output form name (optional)
ResultTextoutThe output form name

Fnd_IO_RecordEdited

Fnd_IO_RecordEdited ({->table; calling process}) --> Longint

Call this when a new record has been added. This routine will take care of adding it to the output list (if any).

This routine can also be called by the output list process to get the number of the most recently edited record. Once called to get the record number, it clears it so you won't accidentally get it again.

ParameterTypeDirectionDescription
tablePointerinA pointer to the record's table
inCallingProcessLongintinThe process number of the output form
ResultLongintoutThe record number that was edited

Fnd_IO_SetupToolbar

Fnd_IO_SetupToolbar

Handles the toolbar setup for the input and output forms.

No parameters.

Fnd_IO_ToolbarIconGroup

Fnd_IO_ToolbarIconGroup ({style name}) --> Text

Changes the icons in the IO forms to the specified style. Bold (default) Card Native Mac Win

ParameterTypeDirectionDescription
inSuggestedStyleTextinThe style name to use (optional)
ResultTextoutThe current style

Fnd_IO_UpdateToolbar

Fnd_IO_UpdateToolbar

Enables and disables the toolbar buttons based on whether or not the window is frontmost, the selection of records, and the highlighted records.

No parameters.