javascript - Dynamics crm 2011 get subgrid selected cell value -
I need to get specific cell value from the selected sub-grid lines, I code to attach an event Is wrong, but it takes the name or ID back to the line, how is the value of cells obtained?, I am suing the code:
read the function from theSublandbrigreedreferences ( ) {If (document.getElementById ('Contact')) {Var Grid = document.getEleme NtById ('Contacts'). Control; Var id = grid.get_choose (); (Var rowNo = 0; rowNo & lt; grid.get_selectedRecords () Length; Line No ++) Alerts (grid.get_selectedRecords () [rowNo] .name); }} Function Form_OnLoad () {if (document.getElementById ('contact')) {var grid = document.getElementById ('contact'); If (grid.attachEvent) {grid.attachEvent ('onclick', Shugrid Records selected from Reed); }} And {setTimeout ("Form_OnLoad ();", 2000); }}
You can use CRM to retrieve record fields using the retrieved ID Have to call. You can use the OData REST endpoint to view the sample in the \ SDK \ SampleCode \ JS \ RESTEndpoint \ JavaScriptRostDataOperations folder.
Add all the provided libraries to your form and update your code to get the necessary records.
Comments
Post a Comment