English|Português|Español
UserPasswordLogin

HOME
SESSIONS
INFO
how to 288

How to: Patterns

Dynamism between Transactions and Patterns.
All objects generated by Patterns are created with default parts, meaning that every part (form, rules, events, variables) of every object is generated by default. This is represented by the following icons:


If you change some part of the object, the icon will change as well:



The implementation based on default parts provides dynamism between the transaction and the pattern. This means that when you change a property in the pattern definition, add a new filter in the instance or make a change in the Transaction, all objects generated by Patterns will automatically react to the change without the need to reapply the pattern.

For example, the Work With Pattern implementation creates a set of empty objects with specific default templates set in each object. It creates a “WW" Web Panel with a default template that reads the transaction structure and creates a grid.

Suppose that you have a Client Transaction with the following attributes:



When you apply the Work With Pattern to this Transaction, you will obtain the following WWClient Web Panel:



Every time you add an attribute to the transaction structure, it will also be added in the transaction's instance and the Work With Web Panel without the need to apply the pattern again. You only need to open the Work With Web Panel to view all the new attributes in the grid.

In the example, if you add a ClientEmail attribute to the structure of the Client Transaction:



When you save the Transaction, the attribute will be automatically added in the transaction's instance and in the Work With Web Panel. When you open the objects you can see the new attribute:





The dynamism between Transaction and Pattern stays for all the default parts of the objects.

For example, if you modify the Web Form of a WW (it does not stay as default), and add a new attribute to the transaction, the attribute will be automatically added in the transaction's instance but not in the Work With Web Panel grid.

If you want to have default parts again, you can select the Edit option of the Menu, Apply Default (the part where the object is open) or Apply Default (All Parts) which returns all the parts that had been modified to default.
 
Related
How to: Workflow
How to: Enabling security in GXserver
Special Edition #GeneXusTheBestOf2014 :: Cloud Computing, the Internet of Things, GeneXus X Evolution 3, Success Stories, Smart Devices and ... Much More!
Release of U2 of GeneXus Evolution 3
Chopo Mobile introduces successful app in Mexico, developed with GeneXus and used for medical studies
GeneXus™ ERP Explorer and Connector for SAP® ERP Now Live on SAP Store
We have a new Download Center! The GeneXus download center has an enhanced appearance at its new location
Demand for Apple TV apps expected to double in 2016
What we've learned about GeneXus by working with Gartner (by Gabriel Simonet)
Agile or Waterfall development? (by Breogán Gonda)
We are pleased to share an interesting white paper about GeneXus, written by Kapil Ambwani from India!
Mickey, Toy Story & GeneXus: Why robots will transform developers?
GeneXus™ Named a NEW Challenger by Gartner In Its 2017 Magic Quadrant for App Development Platforms Report
Free Live Webinar: Conversations on Digital Transformation - Wednesday, November 8, 2:30PM (EST)
GeneXus™ Announces Its Participation at SAPPHIRE NOW® to Showcase GeneXus for SAP® Systems