Official Content
  • This documentation is valid for:

You might have seen how much was automatically generated by GeneXus from the two objects you have defined following the steps indicated in Getting Started with GeneXus Next - Defining the first objects.

Now suppose you are told that the pharmacy wants to record an image for each product. To do that, go back to GeneXus Next Desktop, and in the Product Transaction object, define an attribute called ProductPhoto based on the Image data type. The Image type enables you to store images.

You can choose to define it through the Source or the Structure selector. The definitions made through the Source selector are reflected in the Structure selector and vice versa.

ProductTrnWithProductPhoto_GeneXusNext

You could also have asked Nexa, the GeneXus Next Assistant, to create this new attribute, and the result would have been the same.

Nexa-AddProductPhotoAttribute

In addition, you could also have said, for example, “I want to store the photo of each product”, or in any other way using natural language.

The Web Layout is automatically updated, including the ProductPhoto attribute. 

Press F5 and GeneXus will evaluate the impact caused by the new definitions in the Knowledge Base, and it will show the Impact Analysis Report.

In the report, you can see that the Product table must be updated. 

Impact Analysis GeneXus Next - Reorganization

The attributes based on the Image data type create two attributes in the corresponding physical table to store the image information.

By clicking on the Reorganize button, GeneXus will create and execute the programs that will change the database. The term “reorganize” always refers to the task of modifying the database structure.

Then, it will generate the programs required that correspond to the application itself. 

After the reorganization, the Launchpad is displayed showing the generated objects.

GeneXus Next - Launchpad - Running Product and ProductType Trns

Click on the Product Transaction to run it. Note that the new definition is included:

ExectuingProductTrnWithPhoto-GeneXusNext

If you remember the stored product code you may enter it; another option is to select it from a list by clicking on the SELECT option. From there, you can retrieve the “STAR muscular pain medicine” and upload its photo:

ExectuingProductTrnWithPhoto2-GeneXusNext

 

Last update: June 2025 | © GeneXus. All rights reserved. GeneXus Powered by Globant