Can NAV detect that it is running Embedded (in SharePoint) ?

Jan_Veenendaal
Member Posts: 206
We are running some pages in NAV - rolecenter activity pages in particular - embedded in a SharePoint site.
In that case the CLIENTTYPE in NAV is 'Web', but I need to know the difference between the normal NAV webclient and the (embedded) client from NAV, because I need to hide a specific field in the normal Web client, that must be visible on the SharePoint Client.
It is not an option to create a copy of the page because Personalisation done on the page needs to be the same on all available clients (Windows/Web/Phone/SharePoint)
Any ideas?
In that case the CLIENTTYPE in NAV is 'Web', but I need to know the difference between the normal NAV webclient and the (embedded) client from NAV, because I need to hide a specific field in the normal Web client, that must be visible on the SharePoint Client.
It is not an option to create a copy of the page because Personalisation done on the page needs to be the same on all available clients (Windows/Web/Phone/SharePoint)
Any ideas?
Jan Veenendaal
0
Best Answer
-
Interesting question
I have never used the Web Client embedded in SharePoint. Are you able to specify a full URL there (I assume yes). Probably you can pass some kind of dummy filter for a custom field which always has this value? And then react on this in the page by setting the Visible property (of a Group containing one field) to TRUE. A Group because I remember field visibility can only be changed in OnInit and OnOpenPage and you get the filter the earliest in OnFindRecord().
Probably something to try. Let me know if this works or not.Cheers
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.5
Answers
-
Interesting question
I have never used the Web Client embedded in SharePoint. Are you able to specify a full URL there (I assume yes). Probably you can pass some kind of dummy filter for a custom field which always has this value? And then react on this in the page by setting the Visible property (of a Group containing one field) to TRUE. A Group because I remember field visibility can only be changed in OnInit and OnOpenPage and you get the filter the earliest in OnFindRecord().
Probably something to try. Let me know if this works or not.Cheers
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.5 -
Thanks for the tip. Actually I was already planning to use a filter from SharePoint - so I am checking now if I can reuse the same filter for this. Alas, time is limited
I will get back to you soon I hope.
-- BACK ALREADY --
It works like a charm! The filter is already available in the OnOpenPage trigger, so I do not need to use a group.
Bummer is that now I would like to use the OnOpenPageEvent event to check the filter - but that event fires AFTER the OnOpenPage trigger executes. And the trigger does a RESET - killing my filter.
So for now I will just modify the trigger and hope for an 'OnBeforeOnOpenPage' event....Jan Veenendaal0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions