Input/Output Component

Fnd_Hook_IO_InputFormButton

Fnd_Hook_IO_InputFormButton ({button}) -> Boolean

Legacy manual page 124

Parameters

ParameterTypeDescription
enableBooleanTrue to enable adding multiple records (optional)
Function resultBooleanTrue if this feature is enabled

Description

This hook is called when a button on the inherited form named Fnd_IO_InputForm is clicked. It receives as the a parameter the name of the button that was clicked. The name will be one of these text values: Button Names save cancel first previous next last

Return True in $0 to allow Foundation to handle the click and perform the standard action. Return False to prevent Foundation from acting on the click. C_BOOLEAN($0;$allow) C_TEXT($1;$action)

$action:=$1
$allow:=True

Case of

: (Fnd_Gen_CurrentTable =(->[Invoices]))

Case of : ($action="save") If(Not(User in group(Current user;"Accounting"))

Fnd_Dlg_Alert ("You are not authorized to modify invoice records.")
$allow:=False

End if End case End case

$0:=$allow

Use the Fnd_Gen_CurrentTable method to determine the current table.

Extracted source text
            Fnd_Hook_IO_InputFormButton ({button}) ➔ Boolean

              Parameter               Type              Description
              enable                  Boolean           True to enable adding multiple records (optional)
              Function result         Boolean           True if this feature is enabled

            This hook is called when a button on the inherited form named Fnd_IO_InputForm is clicked. It
            receives as the a parameter the name of the button that was clicked. The name will be one of these text
            values:
              Button Names
              save
              cancel
              first
              previous
              next
              last

            Return True in $0 to allow Foundation to handle the click and perform the standard action. Return
            False to prevent Foundation from acting on the click.
              C_BOOLEAN($0;$allow)
              C_TEXT($1;$action)

              $action:=$1
              $allow:=True
              Case of
                : (Fnd_Gen_CurrentTable =(->[Invoices]))
              		Case of
              			: ($action="save")
              				If(Not(User in group(Current user;"Accounting"))
              					Fnd_Dlg_Alert ("You are not authorized to modify invoice records.")
              					$allow:=False
              				End if
              		End case
              End case

              $0:=$allow

            Use the Fnd_Gen_CurrentTable method to determine the current table.