web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Focus sharepoint Dynamics 365

(0) ShareShare
ReportReport
Posted on by

Hello,

I'm trying to use the solution of jlattimer  https://community.dynamics.com/crm/b/jasonlattimersblog/archive/2017/01/04/show-sharepoint-documents-on-the-main-form to add the sharepoint iFrame, however, as it gets the control and setsrc, it puts always the focus in this tab, I tried to remove it, by setting the focus away but it doesn't work, 

Xrm.Page.getControl("name").setFocus(true);

Any help please?

Thank you

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    I recommend against doing this since it is not a supported use for the documents grid - and also it will greatly affect performance since the grid must query SharePoint everytime you load the form.

  • Community Member Profile Picture
    on at

    Is there any other way to do this ?

  • ScottDurow Profile Picture
    21 on at

    No - there is no supported way of adding the documents view to a form.

  • Community Member Profile Picture
    on at

    Thank you, I actually can't change the solution, is it possible to find a way to set the focus away after the

    Xrm.Page.getControl("IFRAME_NAMEXX").setSrc(url);

    the

    Xrm.Page.getControl("name").setFocus(true);

    sets it for seconds and then gets back to the sharepoint tab :(

  • Community Member Profile Picture
    on at

    up

  • Community Member Profile Picture
    on at

    Hello

    You may consult your Sharepoint integration issue to Tenfold , it's a great phone to CRM integration and has all of the features you need and more (click to dial, call pop up, creating new lead and follow up task from pop up, handling multiple matches, etc.). It supports several phone systems and CRMs like MS Dynamics. Here's a list of their integrations: www.tenfold.com/.../dynamics

  • ZMansuri Profile Picture
    85 on at

    Hi Guys,

    I am facing same issue with Dynamics 365, is there any solution for this ?

    Thanks,

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi

    You can try setting timeout for your set focus call since it might take a while for source to load. The focus should be set after the load is complete?

    Xrm.Page.getControl("IFRAME_NAMEXX").setSrc(url);

    setTimeout(function () {

    Xrm.Page.getControl("name").setFocus(true);

               }, 9000);

    Try different timeouts to see what works best

    Please Mark as verified answer if this helps.

    Thanks,

    SM.

  • ZMansuri Profile Picture
    85 on at

    Thanks SM, it does work but gives flickering effect.

    Page goes down to bottom (iframe) and then goes up once focus to set to first field.

  • Suggested answer
    Community Member Profile Picture
    on at

    You can move the field in the bottom below iFrame or move iFrame in separate tab

    I think its better to use Tab and put iFrame in separate Tab. Then set focus to the first tab.

    But its more of a Ui decision that you need to make :)

    Please Mark as verified answer if this helps.

    Thanks,

    SM.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans