Thank you for being a valued client of CM First Group. If you have any technical issues or concerns, please open a ticket on, email CM First technical support at or call us on our 24/7 customer hotline at +1 (512) 623-7586.


Provide a Method to Calculate Values for Derived Attributes


This example will use the entity OrderDetail where a derived field will be added. Enter the following triple:

OrderProcessing.OrderDetail has a derived FLD LineTotal.

Generate Changes.

On the test Model there is an OrderProcessingbuildObjects list object that contains all the template generation functions for all the entities in the application.

After generating the OrderProcessingbuildObjects list we need to generate ApplicationServerObject that contains all the server objects of the application:

back to top


Now go to eclipse.

To import all the generated function right click and refresh the java project:

Then look for Custom Derived Add code for the derived field:

Then run the Application Generator:

When the application is running do the following:

  1. Click on Application Settings then on Apply:
  2. Click on Application Template, select Gen Folder, and Generate Application. Wait for the message that all was generated successfully.

Now right click and refresh the web project.

Run tomcat server.

back to top

Test Changes

See that Line Total is a derived attribute and is calculated. The calculation of line total is Quantity x Product Price.

back to top

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk