var accountPlanId=Xrm.Page.data.entity.getId();
var year=Xrm.Page.getAttribute("year").getValue();
var productTypeCode=Xrm.Page.getAttribute("producttypecode").getValue();
var accountId=Xrm.Page.getAttribute("accountid").getValue()[0].id
var priceListId=Xrm.Page.getAttribute("pricelistid").getValue()[0].id;
//var url= Xrm.Page.context.getClientUrl() + '/WebResources/productselector.html'
var url= Xrm.Page.context.getClientUrl() +'/WebResources/productselector.html?’+'accountplanid=’+ accountPlanId+'&year=’+year+’& producttypecode=’+ productTypeCode+’& accountid=’+ accountId+’& pricelistid=’+ priceListId
In above code I am passing the parameters to HTML web resources and forming the URL
.I am getting the all the fields values.but HTML page is not opening I guess some syntax error is there.
*This post is locked for comments
I have the same question (0)