![]() ![]() ![]() ![]() Creating an SQL Business Rule to Handle the Action The application does not know what to do with a “Custom” action with argument of “ApplyDiscount”. If the user clicks OK, nothing will happen. The result is shown in the next screenshot. The application framework will pass the script for execution to the database engine when the action Custom / ApplyDiscount is activated by the user. The parameter to the CustomerCompanyName field of the Orders data controller. The parameter refers to the CustomerCompanyName field of the confirmation data controller. Where OrderID = OK to save the business rule. In the Project Explorer, right-click on OrderDiscount / Business Rules node, and press New Business Rule. Let’s populate Customer Company Name with the name of the company associated with the selected order and initialize Discount with the average discount of the order details. On the action bar, press the Apply a Discount action.Ī modal form with two empty fields, Customer Company Name and Discount, will be displayed. The value of this field is calculated by a business rule expression.Īdd another field with these values: Property Right-click on OrderDiscount / Fields node, and press New Field. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |