20.05.2013, 18:11 | #1 |
Участник
|
dynamics-coe: Show Members Sub Grid on Marketing List Form in Dynamics CRM 2011
Источник: http://blogs.msdn.com/b/dynamics-coe...-crm-2011.aspx
============== In one of my recent engagement, my customer asked us to show members sub grid on the marketing list form. In out of box implementation, one has to click on links to see marketing list members and it also demands navigating out of marketing list form. There were many challenges in configuring this sub-grid on the marketing list form –
Finally, we finalized for a very simple solution. Solution The solution goes as following –
function hidethelist() { if (Xrm.Page.ui.getFormType() ==1) { Xrm.Page.ui.tabs.get("leadtab").setVisible(false); Xrm.Page.ui.tabs.get("contacttab").setVisible(false); Xrm.Page.ui.tabs.get("accounttab").setVisible(false); } if (Xrm.Page.ui.getFormType() ==2) { if (Xrm.Page.getAttribute("createdfromcode").getText() == 'Account') { Xrm.Page.ui.tabs.get("leadtab").setVisible(false); Xrm.Page.ui.tabs.get("contacttab").setVisible(false); } if (Xrm.Page.getAttribute("createdfromcode").getText() == 'Lead') { Xrm.Page.ui.tabs.get("contacttab").setVisible(false); Xrm.Page.ui.tabs.get("accounttab").setVisible(false); } if (Xrm.Page.getAttribute("createdfromcode").getText() == 'Contact') { Xrm.Page.ui.tabs.get("leadtab").setVisible(false); Xrm.Page.ui.tabs.get("accounttab").setVisible(false); } } } The “leadtab”, “accounttab” and “contacttab” are the ids of three tabs we defined earlier. Conclusion This is a simple yet on-spot solution. It helps reduce navigation. Not sure, how relevant it will be in Orion but till then keep using when need comes. Thanks! Источник: http://blogs.msdn.com/b/dynamics-coe...-crm-2011.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|