How to filter the products on the Order Product form by the price list selected on the parent Order form
Add the following code the the form load function:
if ((window.opener != null) && (window.opener.parent != null) && (window.opener.parent.document != null) && (window.opener.parent.document.crmForm != null))
{
var parentForm = window.opener.parent.document.crmForm;
var lookupItem = new Array;
lookupItem = parentForm.all.pricelevelid.DataValue;
var pricelevelid = parentForm.all.pricelevelid.DataValue;
crmForm.all.productid.additionalparams = 'search=' + lookupItem[0].name;
}
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5