Official Content

Prevents end-users from selecting/browsing data for a key.

Syntax

NoPrompt(att…);

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

Scope

Objects:Transaction object, Panel, Work With for Smart Devices
Generators: .NET.NET Framework, Java, Apple, Android Angular

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 end-user from viewing/selecting data from the table identified by this rule's parameters.

Samples

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 end-user will not be able to see the values of valid passwords. If you consider that the end-user should not have access to clients' data which may come up after working with an Invoice transaction because the client's identification is displayed on the invoice transaction screen, you must include the following line in the Transaction Rules:

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

See Also

Prompt rule










Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant