To add a column to an expression handle

  1. Assuming you have a form application, with a datagrid and an expression handle already defined, select the expression handle in the Component Tray.
  2. Click the ellipsis (...) button on the Column field in the Object Inspector. This displays the Column Collection Editor.
  3. Click Add to add a new column.
  4. Click the ellipsis (...) button on the Expression field in the properties pane of the dialog.
  5. Create your OCL expression by double-clicking objects in the right-hand textbox of the OCL Expression Editor and adding elements.

For instance, double-click a class name, then double-click the allInstances expression to add it.

  1. Click OK.
  2. Click OK.
  3. Compile the application.

If you are using a datagrid that references the expression handle for which you created a new column, the new column should appear in the designtime datagrid.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment