Thank you @Necdet Saritas for your support, I used the tool and the output are identical with the source
what is the issue , Still using /mscrmservices/2007/CrmService.asmx after converting
function new_vatgroup_onchange()
{
if (Xrm.Page.getAttribute("new_vatgroupid").getValue() != null)
{
var vatgroupID= Xrm.Page.getAttribute("new_vatgroupid").getValue()[0].id;
var authenticationHeader = Xrm.Page.context.getAuthenticationHeader();
var xml = "<?xml version='1.0' encoding='utf-8'?>"+
"<soap:Envelope xmlns:soap='">schemas.xmlsoap.org/.../'"
" xmlns:xsi='">www.w3.org/.../XMLSchema-instance'"
" xmlns:xsd='">www.w3.org/.../XMLSchema'>"
authenticationHeader+
"<soap:Body>"+
"<Retrieve xmlns='">schemas.microsoft.com/.../WebServices'>"
"<entityName>new_vatgroup</entityName>"+
"<id>" + vatgroupID + "</id>"+
"<columnSet xmlns:q1='schemas.microsoft.com/.../Query' xsi:type='q1:ColumnSet'>"+
"<q1:Attributes>"+
"<q1:Attribute>new_vatvalues</q1:Attribute>"+
"</q1:Attributes>"+
"</columnSet>"+
"</Retrieve>"+
"</soap:Body>"+
"</soap:Envelope>";
var xHReq = new ActiveXObject("Msxml2.XMLHTTP");
xHReq.Open("POST", "/mscrmservices/2007/CrmService.asmx", false);
xHReq.setRequestHeader("SOAPAction","">schemas.microsoft.com/.../Retrieve");
xHReq.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
xHReq.setRequestHeader("Content-Length", xml.length);
xHReq.send(xml);
var resultXml = xHReq.responseXML;
var errorCount = resultXml.selectNodes('//error').length;
if (errorCount != 0)
{
var msg = resultXml.selectSingleNode('//description').nodeTypedValue;
alert(msg);
}
else
{
//filterSubGrid();
/////
var paymentamountValue = Xrm.Page.getAttribute("new_paymentamount").getValue();
//if (optValue == 0) {
// Xrm.Page.getAttribute("new_vatgroupvalue").setValue(0.06);
var VARvatgroupvalu = parseFloat(resultXml.selectSingleNode("//q1:new_vatvalues").nodeTypedValue)
Xrm.Page.getAttribute("new_vatgroupvalue").getValue()=(VARvatgroupvalu);
Xrm.Page.getAttribute("new_vatvalue").getValue()=(0);
Xrm.Page.getAttribute("new_dueamount").getValue()=(paymentamountValue);
if (VARvatgroupvalu !=0) {
var VARValue= (paymentamountValue * VARvatgroupvalu);
Xrm.Page.getAttribute("new_vatvalue").getValue()=(VARValue);
Xrm.Page.getAttribute("new_dueamount").getValue()=(VARValue + paymentamountValue);
}
//alert(parseFloat(resultXml.selectSingleNode("//q1:new_vatvalues").nodeTypedValue));
// alert(resultXml.selectSingleNode("//q1:new_vatvalues").nodeTypedValue);
// Xrm.Page.getAttribute("new_vatgroupvalue").getValue() = resultXml.selectSingleNode('//q1:new_vatvalues') == null ? 0 : parseInt(
// parseFloat(resultXml.selectSingleNode('//q1:new_vatvalues').nodeTypedValue);}
//Xrm.Page.getAttribute("new_vatgroupvalue").getValue()=(resultXml.selectSingleNode("//q1:new_vatvalues").nodeTypedValue);
///
}
}
}