Registration Component

Fnd_Reg_DemoMessage

Fnd_Reg_DemoMessage ({feature code{; message}}) -> Text

Legacy manual page 207

Parameters

ParameterTypeDescription
feature codeTextA registration feature code or “” (optional)
messageTextThe new demo dialog message text (optional)
Function resultTextThe current message text

Description

This routine allows the developer to get and set the demo message for the specified feature code. If this method is not called the default message contained in the localization strings is used, and can be edited using the Foundation Localization Editor. In most cases you will call this routine before calling Fnd_Reg_DemoDialog.

To set a new message, pass a second parameter to this method. To set the demo message for the application, pass a blank string as the feature code:

Fnd_Reg_DemoMessage ("";"This application will expire in 20 days.")

Instead of hard-coding the number of days, you can instead include “<<1>>” in the text passed to this method. When the dialog is displayed, this marker will be replaced by the number of days set by calling Fnd_Reg_DemoDays:

Fnd_Reg_DemoMessage ("";"This application will expire in <<1>> days.")

If called without a second parameter, this routine will return the currently set demo message. To get the demo message for the “APPL” feature you can also omit the feature code parameter:

$message_t:=Fnd_Reg_DemoMessage
Extracted source text
            Fnd_Reg_DemoMessage ({feature code{; message}}) ➔ Text

              Parameter                Type              Description
              feature code             Text              A registration feature code or “” (optional)
              message                  Text              The new demo dialog message text (optional)
              Function result          Text              The current message text

            This routine allows the developer to get and set the demo message for the specified feature code. If
            this method is not called the default message contained in the localization strings is used, and can be
            edited using the Foundation Localization Editor. In most cases you will call this routine before calling
            Fnd_Reg_DemoDialog.

            To set a new message, pass a second parameter to this method. To set the demo message for the
            application, pass a blank string as the feature code:
              Fnd_Reg_DemoMessage ("";"This application will expire in 20 days.")

            Instead of hard-coding the number of days, you can instead include “<<1>>” in the text passed to this
            method. When the dialog is displayed, this marker will be replaced by the number of days set by calling
            Fnd_Reg_DemoDays:
              Fnd_Reg_DemoMessage ("";"This application will expire in <<1>> days.")

            If called without a second parameter, this routine will return the currently set demo message. To get the
            demo message for the “APPL” feature you can also omit the feature code parameter:
              $message_t:=Fnd_Reg_DemoMessage