JavaScript - Fetchxml In Dynamics Crm 2011
Hi all,
I need in CRM 2011 to get the count of child records that are related to the parent entity and show the count in a field on the form of the parent entity. I have developed some javascript with some fetchXML in it and as far as i am aware it should work. What i dont know how to do is take the fetchXML and get the actual count from it. I've seen a few examples of it around but none really show what you need to do clearly. I'll post what i have so far for if it might help: Code: function GetChildCount() { var solutionName = Xrm.Page.getAttribute("ts_descriptor").getValue(); var fetchXml = '<fetch mapping="logical" count="25" returntotalrecordcount="true">' fetchXml += '<entity name="ts_solution_area_specialist">' fetchXml += '<attribute name="ts_specialist_user_id" />' fetchXml += '<attribute name="ts_solution_area_id" />' fetchXml += '<attribute name="ts_solution_area_specialistid" />' fetchXml += '<order attribute="ts_specialist_user_id" descending="false" />' fetchXml += '<filter type="and">' fetchXml += '<condition attribute="ts_test" operator="eq" value="717750000" />' fetchXml += '<condition attribute="ts_solution_area_id" operator="eq" uiname="' fetchXml += solutionName fetchXml += '" />' fetchXml += '</filter>' fetchXml += '</entity>' fetchXml += '</fetch>' } Thanks Similar TutorialsI need to created a Calender using Javascript,Html and CSS. In my calender i want to specify each activities that will be carried-out on each month of the Calender.my Theme is "Production". I need helps in using the best [codes] that i can modify and how i can set each calender with various colour and image background and as well has how to show what activities will be carry out in the Calender.. I will be glad if anyone can help. Thank. |