Modifies the default read-only behavior of variables in transactions, allowing the user to enter a value for that variable.
Accept(&var [ , att ] );
Where:
&var
Is the variable defined in the transaction and present in the screen in order to accept a value. It could be an SDT variable and in this case just writing Accept(&var) is enough to enable all the SDT elements.
att
Is an optional attribute that you can specify, to help to determine in which level the variable must be considered (for example if the variable participate in a formula). If att is not specified, then the first level is assumed.
Objects:Transaction
Generators: .NET,
.NET Framework,
Java, RPG, Cobol, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)
This server rule allows you to accept a variable at the transaction level where the Attribute att is found. The order in which data is entered for a certain level depends on the order in which the variables and attributes have been positioned on the screen. If att is not specified then the first level is assumed.
Customer
{
CustomerId*
CustomerName
CustomerAddress
CustomerPhone
CustomerPassportNum
}
Customer rules:
Accept(&Print);
Ticket.call(CustomerPassportNum) if &Print='Y';