in

Dynamics User Group

Since 1995 - The Microsoft Dynamics Online User Community

Is there any way to get the Navigation Path?

Last post 08-13-2008 19:07 by galletin. 8 replies.
Page 1 of 1 (9 items)
Write a New Post Sort Posts: Previous Next
  • 08-12-2008 8:19

    • Divya
    • Not Ranked
    • Joined on 08-12-2008
    • Posts 5
    • Points 200

    Is there any way to get the Navigation Path?

    Helo,

    We have Account Entity in various sections(WorkPalce,Sales,Marketing and Service) of the Main Navigation Bar of the Loader Page of CRM 4.0.

    I want to customise the Accounts Form (hide certain fields, certain tabs ,etc.) when I navigate through different sections.

    How can I do that? Is there any way to get the Navigation Path? Please Help.

     

    Thanks in Advance.

    • Post Points: 20
  • 08-12-2008 9:31 In reply to

    • galletin
    • Top 75 Contributor
      Male
    • Joined on 07-23-2007
    • Gijón, Asturias, España
    • Posts 226
    • Points 3,685

    Re: Is there any way to get the Navigation Path?

    Customize fields is very easy, since you can change programatically VISIBLE and EDITABLE properties. Tabs, mmm... no no !! Tongue Tied

    • Post Points: 20
  • 08-12-2008 9:43 In reply to

    • Divya
    • Not Ranked
    • Joined on 08-12-2008
    • Posts 5
    • Points 200

    Re: Is there any way to get the Navigation Path?

    Thats fine.. But I want to customize the form depending upon the Navigation Path, ie.,from which section the Accounts form is opened,(from Sales or Service Navigation Menu) . How can I get the Navigation Path at runtime?

    • Post Points: 20
  • 08-12-2008 10:07 In reply to

    • galletin
    • Top 75 Contributor
      Male
    • Joined on 07-23-2007
    • Gijón, Asturias, España
    • Posts 226
    • Points 3,685

    Re: Is there any way to get the Navigation Path?

    I've never seen that, on the other hand if you want to customize the fields for the user permissions... why don't you just use the user role to set the visible or editable properties?. Doing it this way you will not customize the form when it's called from Sales (for example), but you can customize it for the users that has the "Sales-role"..... did I explain?

    • Post Points: 20
  • 08-12-2008 10:40 In reply to

    • Divya
    • Not Ranked
    • Joined on 08-12-2008
    • Posts 5
    • Points 200

    Re: Is there any way to get the Navigation Path?

    Can you please explain?

    • Post Points: 20
  • 08-13-2008 9:16 In reply to

    • galletin
    • Top 75 Contributor
      Male
    • Joined on 07-23-2007
    • Gijón, Asturias, España
    • Posts 226
    • Points 3,685

    Re: Is there any way to get the Navigation Path?

    Imagine a function that returns the actual user role...

        roleOk := 'sales-role'; //this would be the valid role for fields to be editable
        userRole := getActualUserRole;
        field1.Editable(userRole = roleOk);
        ......

    Obviously it's not so easy, even if a user can have many roles and you can want fields to be editable for more than one role. Hope it's enough Big Smile

    • Post Points: 20
  • 08-13-2008 13:37 In reply to

    • Divya
    • Not Ranked
    • Joined on 08-12-2008
    • Posts 5
    • Points 200

    Re: Is there any way to get the Navigation Path?

    Thank You..

    Is it possible to call a Javascript function when a Left Navigation Bar Menu is clicked? 

    Is it possible to specify the name of the Javascript function in Sitemap?

     

     

    Thanks in Advance.

    • Post Points: 20
  • 08-13-2008 18:11 In reply to

    • Viktoras
    • Top 150 Contributor
      Male
    • Joined on 11-27-2002
    • Lithuania
    • Posts 129
    • Points 2,172

    Re: Is there any way to get the Navigation Path?

    Hi,

    I understand that question is about CRM 4.0, but it is posted on Navision forum. And I think that Galletin's answers are about Navision...

    Viktoras Danielius
    Microsoft Dynamics NAV Developer
    • Post Points: 20
  • 08-13-2008 19:07 In reply to

    • galletin
    • Top 75 Contributor
      Male
    • Joined on 07-23-2007
    • Gijón, Asturias, España
    • Posts 226
    • Points 3,685

    Re: Is there any way to get the Navigation Path?

    Viktoras:
    And I think that Galletin's answers are about Navision...

    Sure jajajja
    • Post Points: 5
Page 1 of 1 (9 items)


Copyright Dynamics User Group, 1995-2008, all rights reserved. This website and user group are independent and not affiliated with the Microsoft Corporation.