Form KitArticlesForm
- Unit name: Forms.Grids.KitArticle
- Form name: TSubArticleGridForm
- Old form name: Unit5
Synopsis
Show an overview of compound detail articles for a compound article (a kit).
Functionalities
- Label to show master article code.
- Label to show master article description.
- Grid to show list of kit articles for the master article: view ArticleLink, filtered on master article.
- Button to execute AddKitArticle action.
- Button to execute DeleteKitArticle action.
- Button to execute EditKitArticle action.
- Master article is passed through a business processor.
Actions
AddKitArticle
- Enabled when there is a master article.
- When executed, a new record is inserted, and the KitArticleDetails form is popped up, passing it the new record.
- If the user confirms the dialog, the kit article record is saved.
- If the user cancels the dialog, the kit article is cancelled.
EditKitArticle
- Enabled when there is a master article and a current kit article.
- When executed, the KitArticleDetails form is popped up, passing it the current kit article record.
- If the user confirms the dialog, the kit article record is saved.
- If the user cancels the dialog, the kit article edit is cancelled.
DeleteKitArticle
- Enabled when there is a master article and a current kit article.
- When executed, asks the user for a confirmation.
- When the user confirms, the current kit article is deleted.
- The action is logged in the user history.
Tables/Views
- ArticleLink
Needed Service Calls
Audit.UserHistory
To log the delete (optional: see if this can be done on the server, in a business processor)