Customer Engagement & Dynamics CRM Forum

iFrame Sharepoint Documents content/count

  • 1.  iFrame Sharepoint Documents content/count

    Posted Feb 20, 2019 01:10 PM
    I'm using iFrame for SharePoint documents on a form as suggested here:
                 https://jlattimer.blogspot.com/search?q=iframe
    Everything is working well, can upload and list documents from the form.

    There's a requirement to show the documents tab only if documents exist and display the totalrecordcount elsewhere on the form. Tried using js/jquery, no luck.
    1. contentDocument, contentWindow.. are unavailable.
    2. Debug shows iFrame document as prevObject:
                 $("IFRAME_abc")                         -->     jQuery.fn.init [prevObject: jQuery.fn.init(1)]
                 $("IFRAME_abc").contents()        -->     jQuery.fn.init [prevObject: jQuery.fn.init(0)]
    4. I see the 'totalrecordcount' in the debug on Elements html in one of the table divs, not sure how to get this from js/jquery

    Any help appreciated.
    Thanks


    #CRM2015


    ------------------------------
    Aparna
    ------------------------------


If you've found this thread useful, dive deeper into User Group community content by role