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





