![]() Where message is the notification that we want to display to user and level represent type of notification that we want to show. setFormNotification(message, level, uniqueId) We can use following statement for form notification: This is very useful if we want display a consolidated notification or may be want to remind user something about current record or want to display some error message at form level, we can use this option. This method is used to set notification at form level. For example if we want to remove notification from earlier example it can be like following: ![]() This method is used to clear notification which is set using setNotification method with the help of unique notification id. If user will enter some text under telephone field it will show the error notification like following: We can bind above method onchange of telephone1 field in account entity: ("telephone1").setNotification("Please enter correct mobile number","101") So to implement our validation, we can use following method: UniqueId:- The unique id associated to notification. ![]() Message:- The notification that we want to display to user. So let’s use setNotification method with mobile field using following code: ![]() This is just an example but it can be used in actual requirement similarly. We can make use of this method to implement our client side data validation and display error notification to user for example let’s say we want to implement a validation into mobile number field of account entity and we want to make sure user should not enter text value in mobile field. This method is used to work with individual control over entity form. In this article we are going to provide different methods which can be used to work with notifications. Dynamics 365 provides different ways to implement client side notifications, we can implement them in different level. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |