Exercise - Filtering data in the BusinessProcess
- Add new UIController name it ShowShippers.
- Set the Shippers Entity to be the main table.
- Add two local columns (use the mem snippet) :
- TotalOrders name "Total Orders",type NumberColumn, format "6".
- TotalFreightValue name "Total Freight Value",type NumberColumn, format "6.2C";
- Build and go to the form.
- Add a grid with two columns :
- ShipperID.
- CompanyName.
- Add the two local columns to the screen out side the grid.(use Ctrlarrow keys to set them next to the grid)
- Save changes to Git.
- Build and test.
- Add a new BusinessProcess name it CalcOrderTotalForShipper.
- Set the Orders entity to be the main table.
- In the Run method receive one parameter type Number name it ShipperID.
- Add a Where limit the BusinessProcess to run only where Orders ShipVia equal to the received parameter.
- Override the OnLeaveRow
- Add Debug.WriteLine to show the Order ID and Shipper ID. (remember to add using System.Diagnostics; if needed)
- Save changes to Git.
- Build and test the BusinessProcess using the ShiftF3 send 2 and check the Output panel for the results.
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com