Auto-Creating Data Regions and Fields
In order to export data from report models, data regions and data fields must be created. One way to do this is through the Auto Create (Fields or Regions) option. This method takes two lines as a sample of the data that is to be extracted and creates the desired region or fields with them. This is the simplest, fastest method for creating data regions and fields.
Creating Your Region
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F627607815-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6xzBT0roYJkfVS5klkLl%252Fuploads%252F5mECfo2faOU5Ijmrd63y%252F0.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=ce3e6f5d&sv=1)
To auto create a data region, click on the grey column to the left of one of the lines that is to be included in your region.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F627607815-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6xzBT0roYJkfVS5klkLl%252Fuploads%252Ft8NOuLP4RLgnDBjlTXeM%252F1.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=33f947b2&sv=1)
A green marker will appear: this means that the line is to be included. Clicking on the green marker again will make it turn red, which excludes the line. Clicking a third time will delete the marker.
Using this method, specify two lines that you wish to capture. Once two lines are indicated, the software creates a data region based on the selections. Note the orange bar (the pattern matching bar) at the top of the window below: the software has used a “match any alphabet” character above where the auction item numbers begin. This is because each auction item number begins with a letter, but not all of them are the same letter.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F627607815-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6xzBT0roYJkfVS5klkLl%252Fuploads%252FKVGAG2mjm7lDIo5UCmXw%252F2.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=1818fcd4&sv=1)
Your data region has been created. Data that can be captured will be highlighted, and a data region node (which has a name default of “Data”) will appear underneath your Record Node in the Model Layout display to the left of your report model.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F627607815-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6xzBT0roYJkfVS5klkLl%252Fuploads%252FBhgkc3WMhrlFa0BZLhkl%252F3.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=7700f789&sv=1)
Renaming Data Regions
Data regions can be named by editing the Name field in the Region Properties menu above the report model editor. Astera recommends naming each data region and field that is created, as this avoids confusion.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F627607815-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6xzBT0roYJkfVS5klkLl%252Fuploads%252FoHvlYmsxzsg5zeuzGbui%252F4.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=b757fa38&sv=1)
Your data region is now complete.
Creating Your Fields
Once your data region has been selected, the next step to a complete report model is to create data fields: this shows exactly what data will be extracted from your report. As with the data region, the software can also automatically create your data fields. Right-click on your data region and select, Auto Create Fields.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F627607815-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6xzBT0roYJkfVS5klkLl%252Fuploads%252FBUDiVyviDt1ap0aLXFNK%252F5.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=be717ed7&sv=1)
Your data fields have now been created. Specifically, in figure one, you can see that there have been two data fields created – one for the item numbers and one for the item descriptions. The left field has been clicked on, which is why it appears as navy with light text whereas the other field is a light blue with dark text.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F627607815-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6xzBT0roYJkfVS5klkLl%252Fuploads%252FELdNMaU5bBxneFO3iRmv%252F6.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=e849ded4&sv=1)
In figure two, the data fields are nested under the data region in the model layout window. As the item number field has been clicked upon, you can see a slight grey around the Field_0 in the model hierarchy. This is the field that has been selected.
The data fields created are automatically named Field_[NUMBER]. To rename your data field, click the tree node representing which field you wish to rename and follow the same steps you took to rename your data region.
Last updated