DataAreaWeb

Unofficial Content

Data Area Web

Scope

Languages: All
Objects: Web Transaction Styles and Web Panel Styles
Interfaces: Web

Introduction

When designing an Style for webforms (Web Panels or Transactions), you must use the control Data Area to indicate where the webforms that use the style will present their data.

This concept is similar to Data Area in winforms Styles, but in this case is more flexible due the developer has more control on where the data area is located in the form.

Description

If you are defining a Transaction Style and, like in win forms, you want to design all the web form except the Data Area (that is, the place where GeneXus will include the data automatically) you can insert a Web Data Area in the form.
 
You can also do this in Web Panel Styles. Although this makes more sense for the Web Prompt automatically created by GeneXus , you can also associate that style to a Web Panel.

To make all Web Prompts use the same style, indicate it in Model Properties->Master Styles tab->Web Prompts field.

When you select a style here, all the prompts are created using the same one, following the design of the style, and the data is inserted in place of the Data Area Web control.

On the other hand, if you associate a style with a web Data Area to a Web Panel, when designing the form you must replace the Data Area web control with your data.

To insert a Web Data Area when designing the form from the Web Form tab, select Insert->Data Area.

The result is something as follows:

img/wiki_up//twdawexmpl2.jpg

Considerations

  • If we include this control in an object other than a style object, the following message appears: "Error: Data Area control is only allowed in style objects."
Comments & Collaboration
Interesting links
Master Styles
How to define a Style
Style Object
Style Objects