Exercise - Inner Classes
- In ShowEmployees.
- Add two new local columns type NumberColumn:
- NumberOfCars.
- LatestModel.
- Build and add the two columns to the grid in the form.
- Save changes to Git.
- Build and test.
- Add a new inner class ,use contrp snippet, remember to tab after update every item in the snippet.
- Name = GetCarsInfo.
- Inherit from BusinessProcessBase.
- parent = name of the parent class ShowEmployees.
- Set the main table of GetCarsInfo to be EmployeeCars.
- Add a where to filter GetCarsInfo to the parent employee ID.
- In the Run method set the parent two local columns to zero.
- Override the OnEnterRow.
- Update the parent NumberOfCars to be accumulated by one.
- Update the parent LatestModel to the current row CarYear only if it's bigger. (use if)
- In ShowEmployees.
- Override the OnEnterRow.
- Add a call to GetCarsInfo. (notice that you need to send this as parameter to the class constructor).
- Save changes to Git.
- Build and test.
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com