This tutorial will show you how to extend an already existing module. This is actually a description how we implemented the Stoppages module.
...
First - there should be a possibility to view list of stoppages for single production order by clicking button on details page:
Mockup | ||||||||
---|---|---|---|---|---|---|---|---|
|
Mockup | ||||||||
---|---|---|---|---|---|---|---|---|
|
Getting started
Before You start - You should check this pages:
...
We have also define the corresponding view (stoppage/allStoppagesForm). We can set here correspondingViewInModal to true if we want the add/edit form to be in a modal window.
Info | ||
---|---|---|
| ||
For more information check View Definition Overview wiki page. |
Now lets create the add/edit form it self:
...
Notice that the first component is a lookup - this is a input field which allows you to choose an entity by using a grid or a pop-up that shows as you type.
Views for Stoppages for order
Stoppages for an order should be shown by clicking on the Stoppage button in order details tab. We must add this button using a ribbon extension.
We'll do this in the file src/main/resources/stoppage/view/ribbonExtension/ribbonExtensionDetails.xml:
...