Official Content

You can configure some general aspects for the Work With for Web pattern so that when you apply the pattern, those configurations are set by default.

WWForWebPatternSettings-GeneXus18

Here you can configure properties such as the following:

Style

This option indicates the Design System Object / Web Theme object / classes to be used. 
Read also Style property in Work With for Web Pattern Settings.

Grid

Page = Page.Rows - Indicates how many rows will be viewed in the grids.
SaveGridState - Indicates whether or not Orders, Current Page and Filters will be saved for Work With Web Panels.

Standard Actions

DefaultMode - Indicates whether to include an action by default in the grid. It applies to insert, update, delete, display and export* actions.

* You can export to xls or xlsx format using the File extension property (available from GeneXus X Evolution 2 Upgrade 3).

Context

This property can be used for "Context management". For example, to maintain information about the application's current user (especially for authentication/authorization purposes), the current company for multi-company systems, etc. By changing the Context variable properties, you can change the variables and the procedures called. For example, you can use a context variable to define a filter: CompanyId = &Context.CurrentCompanyId. 

By default the "Context node" is empty. You can set the variables and procedures needed, in order to implement "context management". Once these values are defined and the patterns instance updated, the variables will be defined in the needed objects (e.g. transaction, workwith, etc)

Security

This property implements object level security. By default, the implementation includes a procedure called IsAuthorized, which is invoked in the Start event of each Web Panel, to control the authorization for accessing the resource. If this procedure returns a false, it means that the user is not authorized to execute the application, and therefore the Web Panel NotAuthorized is called. In the sample implementation this procedure always returns a True, so you should customize it as needed. You can change the called objects by changing the Security properties.


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