Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

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
Stoppage1
Stoppage1
Version11
NameStoppage1
Second - there should be menu which open tab with all stoppages:

Mockup
Stoppage2
Stoppage2
Version11
NameStoppage2

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
titleView Definition

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:

...