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)

Navbar SubArea Url Javascript Action

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have a quick question using the MS CRM Navigation.

In the SiteMap Editor I can successfully add a navbar element which opens a HTML WebResource or an External site in the CRM Window (IFRAME)

What I'd like to achieve is following:

<SubArea Icon="$webresource:timerecording_icon32" Id="nav_timerecording" Url="javascript:window.open('https://crm.*.*/timerecording');" Description="*" Title="*" AvailableOffline="false" PassParams="false" Client="Web" />


You can see that I tried to bind "JavaScript:window.open" to the a href action but that doesnt open the window.
Is there any suggestion to my problem?

*This post is locked for comments

I have the same question (0)
  • Yashpal Rajput Profile Picture
    on at

    hi Luca,

    i believe you wouldn't need to use window.open function instead you can create one html webresource which will open your url. You can open html webresource directly  like below on selection of subarea.

    <SubArea Icon="$webresource:timerecording_icon32" Id="nav_timerecording" Url=" Url="$webresource:new_/navsample.htm" Description="*" Title="*" AvailableOffline="false" PassParams="false" Client="Web" />

  • Community Member Profile Picture
    on at

    Hi Yashpal,

    Thanks for your reply, that would be a solution..

    But is it not possible to have window.open method directly in SiteMap XML ?

  • Suggested answer
    Yashpal Rajput Profile Picture
    on at

    Anyways html web resource opens in new window and you can specify anything in html web resource even javascript too.

  • Community Member Profile Picture
    on at

    Ok, I have done it now with a WebResource.. but Can I provide URL Parameters (QueryString) to that WebResource?

    E.G: $webresource:ise_forwarding_page?param1=Hello&param2=World

    ?

  • Verified answer
    Aman Kothari Profile Picture
    on at

    Yes, we can pass values to a web resource through the data parameter.

    Try below link

    msdn.microsoft.com/.../gg327945.aspx

    Hope this helps.

    Thanks

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