Announcements
No record found.
Hi folks
is there a way to open an existing record in a subgrid in a new window instead of current window
*This post is locked for comments
yes, you can do through javascript.
/*
open contact record through sub grid
selectedItemCount - no of list item selected
selectedItemIds - list of selected item ids.
*/
function OpenContactSubgridForm (selectedItemCount, selectedItemIds) {
if (selectedItemCount == 1) {
var contactid = selectedItemIds[0];
//Xrm.Utility.openEntityForm("contact", contactid , {});
url = Xrm.Page.context.getClientUrl() + "/main.aspx?etn=" + entityname + "&navbar=off&cmdbar=true&newWindow=true&pagetype=entityrecord&id=" + contactid;
window.open(url , null, "");
}
},
Hi luckylifestyledesigner,
please check it following links,
http://www.powerobjects.com/2013/10/31/crm-2013-will-miss-screen-pop-ups-and-refreshing-grid/
Please mark suggested answer if above suggest resolve your issue or guide you.
Thanks
Happy CRM
Hi,
Can you show me how to integrate this code please ?
Thank you !
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Varsha deshpande 5
JS-09031509-0 3
Ciprian P 2