Tuesday 8 November 2011

OData


1. include jquery, and jso library

/////////////////
To hide a field use

Xrm.Page.getControl("attributename").setVisible(true);

if it doesn't work then use

document.getElementById("attributename_c").style.display = "inline/none";
document.getElementById("attributename_d").style.display= "inline/none";

use inline to show, and none to hide the field
////////////////

To change the required field level use

 Xrm.Page.getAttribute("to").setRequiredLevel("required");

valid values are none, required and recommended

///////


function UpdateActivity()
{

    var CRMObject = new Object();
          CRMObject.proprtyname = value;
          updateRecord(guid, CRMObject, "EntityNameSet", null, null)
}

No comments:

Post a Comment