We will create a class with the name
SearchProductController that will be invoked from the product menu (ProductInfoController) and which will retrieve all the rows from the MasterProduct entity to display the list of products available for the same. Not only this, the class will also display a Search Bar at the top allowing us to quickly search the product. On selecting any product from the SearchProductController, we will be navigated to the view of AddProductController where the product name and its price will be automatically displayed and we just have to enter the quantity of the product sold to the customer.
The steps required in implementing the search facility for the products sold to the customers are as follows:
1. Adding the
2. Designing the view of the
3. Coding in the
4. Invoking the
SearchProductControllerfrom the Product menu.
5. Displaying name, price...