Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Setting Default View (Products in Parent Price List updated) in CRM 2016 Online

$
0
0

All, when I am on the Order Product form in CRM 2016 Online, when I choose Existing Product and try to look up a product, I was originally showing Products in Parent Price list updated. I then exported the solutions and edited the customization.xml so that the "product id" lookup is not read-only and this enabled the lookup field as seen below. The difference, is the one view I want to display is grouped in the System Views and the one that is defaulted is in Custom Views: Products in Parent Price List updated.

I want the Product Lookup View to be default and not forcing the user to select this view when looking up product.

I googled and saw that you can create a function and on the OnForm load, to add a JavaScript to set the view you want as default.  This doesn't seem to force it because the default value is still Products in Parent Price List updated.

function setDefaultViewID() {
Xrm.Page.getControl("productid").setDefaultView("{8BA625B2-6A2A-4735-BAB2-0C74AE8442A4}");
}

I went into the customization.xml and added the Product Lookup View Guid as the default view and reimport the solution and it's still not working.

At this point, I'm totally stumped, can someone provide some feedback?

Thanks in advance!!!


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>