NoPrompt rule

Official Content
This documentation is valid for:

Prevents users from selecting/browsing data for a key.

Syntax

NoPrompt(att…);

Where:
att…
Is an ordered list of attributes that define an identifier.

Description

This rule is used to disable the PROMPT facility (F4) for the indicated list of attributes that are Foreign Keys or AUTOPROMPT (Primary Keys) in transaction programs, or the BROWSE facility (used only in Micro/LAN environments). It prevents the user from viewing/selecting data from the table identified by this rule's parameters.

Examples

It is mostly used to stop the end-user from browsing confidential information, such as passwords, like in the following example:

Invoice Transaction object structure:

Invoice
{
    InvoiceNumber*
    InvoiceDate
    PasswordId
    {
        PrdNbr*
        InvoiceLineQtty
        InvoiceLinePrice
        InvoiceLineAmount
    }
}

Invoice Transaction rule:

NoPrompt(PassworddId);

Password Transaction structure:

Password
{
    PasswordId*
    PasswordName
}

In this case, the user will not be able to see the values of valid passwords. If the designer considers that the user should not have access to client data which may come up after working with an Invoice transaction (because the client identification is displayed on the invoice transaction screen), what the designer must do is include the following in the transaction rules:

NoPrompt(ClientId); // ClientId is Client's table Primary key.

Scope

Objects Transaction object, WorkWithDevices, Smart Devices Panel
Interfaces  Web, Smart Devices
   

See also

Prompt rule








Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.