SETFILTER Question

earldelrosario
Member Posts: 6
Hi All,
I'm new with NAV coding please help about SETFILTER. I have an issue and i was hoping SETFILTER can help me, here is the scenario:
User Setup Table Contains:
Username | Shortcut Dimension 1 Code
User1 | Comp1
User2 | Comp2
Now the Page currently showing all in either User logged:
No | Qty | Shortcut Dimension 1 Code
0001 | 2 | Comp1
0002 | 12 | Comp2
0003 | 20 | Comp2
What I want to show in the Page:
If User1 is logged on
No | Qty | Shortcut Dimension 1 Code
0001 | 2 | Comp1
If User2 is logged on
No | Qty | Shortcut Dimension 1 Code
0002 | 12 | Comp2
0003 | 20 | Comp2
How do I code it using SETFILTER. From what I've read all samples for SETFILTER are constant values.
Thank you.
I'm new with NAV coding please help about SETFILTER. I have an issue and i was hoping SETFILTER can help me, here is the scenario:
User Setup Table Contains:
Username | Shortcut Dimension 1 Code
User1 | Comp1
User2 | Comp2
Now the Page currently showing all in either User logged:
No | Qty | Shortcut Dimension 1 Code
0001 | 2 | Comp1
0002 | 12 | Comp2
0003 | 20 | Comp2
What I want to show in the Page:
If User1 is logged on
No | Qty | Shortcut Dimension 1 Code
0001 | 2 | Comp1
If User2 is logged on
No | Qty | Shortcut Dimension 1 Code
0002 | 12 | Comp2
0003 | 20 | Comp2
How do I code it using SETFILTER. From what I've read all samples for SETFILTER are constant values.
Thank you.
0
Best Answer
-
Hi,
In the OnOpenPage you could write something like this
IF UserSetup.get(USERID) THEN
SETRANGE("Shortcust Dimension 1 Code",UserSetup."Shortcut Dimension 1 Code");1
Answers
-
Hi,
In the OnOpenPage you could write something like this
IF UserSetup.get(USERID) THEN
SETRANGE("Shortcust Dimension 1 Code",UserSetup."Shortcut Dimension 1 Code");1 -
It works!!!
Thank you Albertvh.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