Hi--
I'm trying the get the Value of Field, that's located in a QuickView on a Related Entity.
I know how to get the value if it's on the same form; and I know how to get the value of a 'normal' field on a related entity; ...but I can't get the two working together.
Example--
To get the value out of a QuickView I'd use this:
var quickViewControl = Xrm.Page.ui.quickForms.get("RelatedCaseInformation"); var jobnumberField = quickViewControl.getControl(1).getAttribute("gs_jobnumber").getValue();
To get value from a Related Entity, I'm using (as an example):
var poField = Xrm.Page.getAttribute("msdyn_purchaseorder").getValue(); if (poField != null && poField != undefined) { // get id var poFieldId = poField[0].id; var poFieldId = poFieldId.replace('{', '').replace('}', ''); var poFieldEntity = poField[0].entityType; var columns = ['gs_Case']; var poFieldRecord = gs_CrmRestKit.Retrieve(poFieldEntity, poFieldId, columns, null); var Caseno = poFieldRecord.gs_Case; }
Any ideas how I can use the latter code to get to the Value of Field in QuickView on a Related Entity?
Maybe something like this (though I've tried and it didn't work):
var poFieldRecord.quickForms.get("RelatedCaseInformation");
Thanks in advance for any suggestions!
*This post is locked for comments