Preferences Component

Fnd_Pref_GetLongInt

Fnd_Pref_GetLongInt (name{; default {; scope}}) -> Longint

Legacy manual page 176

Parameters

ParameterTypeDescription
nameTextName of the preference item
defaultLongintDefault value (optional)
scopeLongintThe scope if the default is used (optional)
Function resultLongintThe saved value

Description

Returns the long integer value of the preference with the specified name:

$timeout_i:=Fnd_Pref_GetLongint ("TimeoutInSeconds")

If an item with the specified name is not found, 0 is returned. To specify a different default value, pass it as the second parameter:

$timeout_i:=Fnd_Pref_GetLongint ("TimeoutInSeconds";30)

If the preference value already exists, the second parameter will be ignored. If it does not exist, it will be created and set to the value of the second parameter. If no scope parameter is specified, the value will be saved as a local preference. A third parameter can be used to specify the preference’s scope:

$timeout_i:=Fnd_Pref_GetLongint ("TimeoutInSeconds";30;Fnd_Pref_Server )

The scope value will be used only if the parameter does not already exist.

Extracted source text
            Fnd_Pref_GetLongInt (name{; default {; scope}}) ➔ Longint

              Parameter                 Type               Description
              name                      Text               Name of the preference item
              default                   Longint            Default value (optional)
              scope                     Longint            The scope if the default is used (optional)
              Function result           Longint            The saved value

            Returns the long integer value of the preference with the specified name:
              $timeout_i:=Fnd_Pref_GetLongint ("TimeoutInSeconds")

            If an item with the specified name is not found, 0 is returned. To specify a different default value, pass it as
            the second parameter:
              $timeout_i:=Fnd_Pref_GetLongint ("TimeoutInSeconds";30)

             If the preference value already exists, the second parameter will be ignored. If it does not exist, it will be
            created and set to the value of the second parameter.
            If no scope parameter is specified, the value will be saved as a local preference. A third parameter can be
            used to specify the preference’s scope:
              $timeout_i:=Fnd_Pref_GetLongint ("TimeoutInSeconds";30;Fnd_Pref_Server )

            The scope value will be used only if the parameter does not already exist.