Mario Bustamante, Director of Punto Exe.
A significant part of the GeneXus paradigm as a language is based on its simplicity for handling transactional structures and the modeling of its operational treatment through the renowned “Work with” dialogs.
This behavioral pattern has been efficiently adapted in the web platform to the new environment rules, by including the transfer to “View” of each record, directly from the grid of the “WorkWith”, in order to minimize browsing options in the browser.
But we have continued with the maintenance of grid’s records in the transaction’s Form. This could be necessary in complex Transactions, but is not in line with the standard of the new platform, and it proves scarcely efficient in cases of ABM with many simultaneous records.
A new behavior for the WorkWith PatternThe issue was mentioned to us at the last GeneXus Meeting, and finally, an important new customer undertook the responsibility and made the request. The development was to propose a new change to the behavior of the traditional WorkWith pattern, for solving the issue.
It was a matter of searching for the way in which the records ABM could be done directly from the grid, without the need to go to the transaction’s Form. For this, it was necessary to work on the Business Component concept and update it in a batch process.
But soon came the things that needed to be solved, for changing the Grid itself to Edition mode implied having to consider treating certain particular attributes:
• Key
• Auto-numbered key
• Formula
• Inferred
• Redundant
It was also necessary to implement the sample of errors in entering data, the support of Edition Controls in the Grid, and for the case of Dynamic Controls, there was also the need to consider preloading of values, depending on other elements in the grid, etc.
The results attained encouraged us so much as to believe we have revealed a new contribution to the very core of the Pattern of Patterns. We hope that, after watching the video with the demo by its creator, the Engineer Juan Marcelo Bustamante, the whole GeneXus Community will fully agree with us.
Transaction as Business Component for Data Grid Capture from PuntoExe Consultores on Vimeo.