Preferences Component

Fnd_Pref_GetText

Fnd_Pref_GetText (name{; default {; scope}}) -> Text

Legacy manual page 177

Parameters

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

Description

Returns the text value of the preference with the specified name:

$email_t:=Fnd_Pref_GetText ("EmailAddress")

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

$email_t:=Fnd_Pref_GetText ("EmailAddress";"you@OurCompany.com")

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:

$email_t:=Fnd_Pref_GetText ("EmailAddress";"you@OurCompany.com";Fnd_Pref_Server )

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

Extracted source text
            Fnd_Pref_GetText (name{; default {; scope}}) ➔ Text

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

            Returns the text value of the preference with the specified name:
              $email_t:=Fnd_Pref_GetText ("EmailAddress")

            If an item with the specified name is not found, an empty string is returned. To specify a different default
            value, pass it as the second parameter:
              $email_t:=Fnd_Pref_GetText ("EmailAddress";"you@OurCompany.com")

             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:
              $email_t:=Fnd_Pref_GetText ("EmailAddress";"you@OurCompany.com";Fnd_Pref_Server )

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