locked
Ribbon Unblock after adding sharpoint file browser to form. RRS feed

  • Question

  • I have entity with document managment enabled CRM2011 UR12. Everyone nows that if we turn on document mangment for entity (and we have Sharpoint integrated CRM),  in menu on left side of this entity will appear item "Documents". This documents will open document managment iframe. Its nice, but I decided to put this same iframe on main form of entity. This is possible by this JS script:

    function OnLoad(){
        var orgName = Xrm.Page.context.getOrgUniqueName();
       // alert(orgName);
        var etc = Xrm.Page.context.getQueryStringParameters().etc;
       // alert(etc);
    	var navDocument;
    	navDocument = document.all.navDocument;
    	if (navDocument != null){ 
    		//navDocument.style.display = “none”;
    		if (Xrm.Page.data.entity.getId()!=null){
    			var recordId=Xrm.Page.data.entity.getId().replace("{","").replace("}","");
    			document.all.IFRAME_Documents.src="/"+orgName+"/tools/documentmanagement/areas.aspx?oId=%7b" + recordId + "%7d&oType="+etc+"&pagemode=iframe";
    		}
    	}
    }

    Of course we have to put on form Iframe with name IFRAME_Documents

    This is nice and this works fine, but one thing is annoing and cosing that this solution cant be used...

    After Iframe "IFRAME_Documents" is loaded it will switch ribbon to document managmant and will disable all buttons on entity ribbon. So save, save as,  close etc. is greyed-out. When i click on document on left side menu and come back to form it become normal...

    So my queston are:

    Is there any possibility to enable greyed-out-ribbon by JS? 

    Is there any possibility to switch  tabs on ribbon thrue JS?







    Friday, July 19, 2013 6:37 AM

All replies

  • Hi,

    It may be possible through some complex javascript - but I would recommend against this approach. The Document Management View is not intended to be embedded in an IFRAME on the form. If you implement this customisations, it will also not upgrade to Dynamics CRM 2013.



    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Friday, July 19, 2013 7:23 AM
    Answerer
  • Let's say i have it already, and its very important to achive this thrue some "complex javascript" any help direcion?


    Friday, July 19, 2013 8:35 AM