Base Trn property

Official Content
This documentation is valid for:
Indicates the Transaction name or Transaction.Level name to be used as the base table for the Grid navigation.

Syntax

control. BaseTrn

<Trn> [ , <Trn> ]*

where:
<Trn> is a Transaction name or Transaction.Level name.

Scope

Generators: Android, Angular, Apple, Java, .NET, .NET Core
Controls: Grid

Description

Although optional, allows the developer to declare its navigation intention and to improve time for specification (because it isn't needed to do the calculation of the grid Base Table).

It may be a list of Transaction levels. In that case, a kind of 'product' between the tables is done, solving queries which imply navigation over different tables that are difficult to express in another way, or that cannot be solved in a single SQL sentence.

Run-time/Design-time

This property applies only at design-time.

Samples

Having the following transactions:

User            //Transaction 1st. level name
{
   UserId*
   UserName
   UserType
   Role        //Transaction 2nd. level name
   {
      RoleId*
   }
}

Role            //Transaction 1st. level name
{
   RoleId*
   RoleName
}

Look at the following image that shows a Web Panel (same concept for SD Panel) that receives a UserId value in its Parm rule and displays in a grid the roles associated with that user:

BaseTrnPropertyImage

Note the Base Trn grid property set with User.Role in order to indicate the base table associated with that level.

Availability

This property is available since GeneXus X Evolution 3.

See Also