Thursday, December 15, 2016

Lookup Control value set in CRM using Javascript

Lookup Control value set in CRM using Javascript

  var objPaymentModeValue = [{
        id: result[0].new_PaymentModeId.Id,
        name: result[0].new_PaymentModeId.Name,
        entityType: 'new_paymentmode'
    }];

 Xrm.Page.getAttribute("new_paymentmodeid").setValue(objPaymentModeValue);

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.