Searcharticlebydescription
Form SearchArticleByDescription
- Unit name: Forms.SearchArticleByDescription
- Form name: SearchArticleByDescriptionDialog
- Old form name: unit47 (form47)
Synopsis
Form to search an article, based on description name.
Functionalities
- Edit box to enter article description. On Enter key, execute SearchArticles action.
- Button to execute SearchArticles action.
- Grid to display result. on double click, execute ShowDetails action.
- Button to execute OK ction.
- Button to execute Cancel action.
Actions
SearchArticles
- Enabled when the article description edit has at least 2 characters in it.
- When executed, open SearchArticleByDescription view using the contents of the edit box as search term, and display results in the grid.
OK
- Enabled when an article is selected in the grid.
- Closes form with Modalresult=mrOK.
Cancel
- Always enabled.
- Closes form with Modalresult=mrCancel.
Tables/Views
- SearchArticleByDescription
SELECT ID, NAME, NAME2 FROM ARTICLE WHERE name2 LIKE '%'+:SearchTerm+'%' ORDER BY name