Scenario 2

John is working with a requirement according to which he needs to populate the category and subcategory of a selected product on the form. He is using JavaScript for this. There are three different lookups on the form: Product, Category, and Sub Category. Now, as per John's requirement, when a user selects a product in the lookup field, the category and subcategory of the product need to be populated on the onchange event of the product lookup on the form. Therefore, we can make a Web API call from JavaScript to retrieve both the category and the subcategory of a selected product and can further set those values for lookups using JavaScript functions.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset