User Roles, Lookups & Pages

Wisa123
Member Posts: 309
Hi Experts,
I am currently working on an Issue that seems impossible for me to solve.
Maybe someone on this beautiful Forum can help me out on this.
Easy Example (page Purchase Order).
We want our Purchasers to be able to perform the lookup onto the "No." field when the Line Type = G/L Account.
But for some weird reason we dont want them to actually be able to Open the page18 G/L Account List.
Is there any way to achieve this?
TLDR:
Any way to achieve that a Lookup on a Table works without having a Page with the same table working?
Thanks in advance!
I am currently working on an Issue that seems impossible for me to solve.
Maybe someone on this beautiful Forum can help me out on this.
Easy Example (page Purchase Order).
We want our Purchasers to be able to perform the lookup onto the "No." field when the Line Type = G/L Account.
But for some weird reason we dont want them to actually be able to Open the page18 G/L Account List.
Is there any way to achieve this?
TLDR:
Any way to achieve that a Lookup on a Table works without having a Page with the same table working?
Thanks in advance!
Austrian NAV/BC Dev
0
Comments
-
Sure! Add new code in OnLookup trigger of field "No." in page: in this way you "overload" the table field trigger behavior and will be possible to open every list you need to use.* Daniele Rebussi * | * Rebu NAV Diary *0
-
I’m not sure I understand what you want.
To me it sounds like you want different lookup pages per user group. you can do that by adding code in OnLookup on G/L Account No. where you set the page.
If you dont set a LookupPageId on a table, you will only have the dropdown list (the fields in dropdown field group). Is that what you are looking for?0 -
I may have explained my issue a bit poorly.
What i want to happen:
a) The simple lookup (F4) to work.
b) I want the User so receive an Error message when Trying to open the Advanced Lookup (CTRL+F4).
If i implement a conditional Error in the Page i cant use the simple lookup.
Overwriting the Field-OnLookup Trigger didnt work for me.
Thanks for your responses!Austrian NAV/BC Dev0 -
I wonder if you resolved this problem?
I have a related question.
Is it possible to add code to the OnLookup trigger for a field (e.g. to set a filter) and still display the "default" RTC drop-down list?0 -
If you write some code on the OnLookUp trigger then you can't use default RTC dropdown list.0
-
Thank you.0
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