Input/Output Component

Fnd_Hook_IO_SelectionChanged

Fnd_Hook_IO_SelectionChanged

Legacy manual page 125

Parameters

ParameterTypeDescription
No parameters required

Description

This hook is called any time the current selection of records displayed in an output list has changed by Foundation. If your code changes the selection, be sure to call Fnd_Gen_SelectionChanged. You can filter the selection here (remove records the user should not see), sort the selection, etc. from this hook. Use the Fnd_Gen_CurrentTable method to determine the current table. The following example uses this hook to remove discontinued items from the selection of products displayed in the output form. Case of

: (Fnd_Gen_CurrentTable =(->[Products]))
QUERY SELECTION([Products];[Products]Discontinued=False)

End case

Extracted source text
            Fnd_Hook_IO_SelectionChanged

              Parameter                Type              Description
              No parameters required.

            This hook is called any time the current selection of records displayed in an output list has changed by
            Foundation. If your code changes the selection, be sure to call Fnd_Gen_SelectionChanged. You can
            filter the selection here (remove records the user should not see), sort the selection, etc. from this hook.
            Use the Fnd_Gen_CurrentTable method to determine the current table.
            The following example uses this hook to remove discontinued items from the selection of products
            displayed in the output form.
              Case of
               : (Fnd_Gen_CurrentTable =(->[Products]))
              		QUERY SELECTION([Products];[Products]Discontinued=False)
              End case