Sequrity Filter
vyanku
Member Posts: 791
I defind one Global Dimension as Site and defind dimension values as different site names.
My database is Nav 4.0 SP2 SQL option.
I want to apply sequrity filter for Dimension values , but I am not getting the result.
What I have done
And How can I apply sequrity filter for a Ge. Jnl. Batch?
My database is Nav 4.0 SP2 SQL option.
I want to apply sequrity filter for Dimension values , but I am not getting the result.
What I have done
How can I apply the sequrity filter for a perticular dimension value?Object table Object ID ObjectName Read SequrityFilter
Field Filter
Tabledata 349 DimensionValue Y code onoo2
And How can I apply sequrity filter for a Ge. Jnl. Batch?
0
Comments
-
security filter doesn't work with dimensions. You have to add code to implement it.0
-
I also create different batches for different sites.
Can I apply sequrity filter on Gen.Jnl.Batch name?0 -
yes you could use different batches.0
-
Colud u please tell me how can I apply Sequrity filter for perticular batch?
Anybody please ...............0 -
Please anybody .........Help0
-
Well you'll create a batch for every site.
You'll also create a role for every site. For every role you'll insert 232 table and in the security filter you'll enter the filter for that batch.
That's should do it. If the user gets error that they don' thave permission for the record, you have to modify the code and use SETPERMISSIONFILTER before the find('-')0 -
Where should I place the code of setpermissionfilter?0
-
You only need to set this if the user get's error. To see where you need to put this, is first see if they get the permission error, then turn on the debugger and see where it errors out.0
-
I got the error then I run the debugger it shows me the codeunit from where it shows me error.
I write code there asgenjnlbatch.setpermissionfilter;
But nothing is happend.
What I have do more to solve this problem?0 -
where did you put the code?0
-
I write code in
Codunit 230 GenJnlManagement
In checktempletname function before following code
IF NOT genjnlbatch.find('-')
I got error atGenJnlBatch.setpermissionfilter; GenJnlBatch.SETRANGE("Journal Template Name",CurrentJnlTemplateName); IF NOT GenJnlBatch.GET(CurrentJnlTemplateName,CurrentJnlBatchName) THEN BEGIN IF NOT GenJnlBatch.FIND('-') THEN BEGIN GenJnlBatch.INIT; GenJnlBatch."Journal Template Name" := CurrentJnlTemplateName; GenJnlBatch.SetupNewBatch; GenJnlBatch.Name := Text004; GenJnlBatch.Description := Text005; GenJnlBatch.INSERT(TRUE); [b] [I got error Here][/b] COMMIT;0 -
Now why should I got the error:- U do not have permission to insert Gen.Jnoural Batch table?
What I have to do to restrict user for perticular batch?
Anybody got this type of problem before ?please suggest.0 -
You need to set the security on the Gen. Journal Template table not
Gen. Journal Batch.
You need to also insert new records into the Gen. Journal Template table0 -
Why Gen. Journal Batch. ? There is no batch name field?You need to set the security on the Gen. Journal Template table not
Gen. Journal Batch.
Which new records?You need to also insert new records into the Gen. Journal Template table0 -
ara3n wrote:security filter doesn't work with dimensions. You have to add code to implement it.
Hi, ara3n..
So, do you mean that I cannot set security filter to filter dimension field? What code I must add to implement it? Could you give me some example?
Thank you
Best regards,
Johanna0 -
I suggest to try and put security filter and see if it works, and if it doesn't you'll know which form you'll need to add code to filter based on security filter.0
-
Thank you ara3n..

I'll try it... ^^Best regards,
Johanna0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
