Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Make Sub grid mandatory.

$
0
0

Hi,

Need help ! I want sub grid to be mandatory for user.

Users' must add value in Sub grid present on my contact form. After saving a new contact subgrid is seen and user must add a record into the subgrid is my requirement .

To achieve the above I used a js on save click ,as below :

function OpenSectorRegionMarket()
{

var windowOptions = {
 openInNewWindow: true
};

  var SectorRegionMarketrows = Xrm.Page.getControl("SectorRegionMarket").getGrid().getTotalRecordCount();
  if ( SectorRegionMarketrows <= 0) {
   Xrm.Utility.openEntityForm("entityname",null,null,windowOptions );
  }
}

but , value is not being associated with the contact nor it is opening in new window.

Regards,

Priya


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images