CALCFIELDS and permissions
Mauddib
Member Posts: 269
I have a form who's soure is set to the Item Table. The Form does not write to any tables, merely reads from them.
However any user with no write permissions to the Item table cannot use this form.
Any idea why? The form DOES have fields which when validated calls:
CALCFIELDS(inventory)
to calculate the inventory field. Does the CALCFIELDS function require write permission to the Item table? Obviously the solution then is to give the form the required permission, however Im curious why this would be so.
However any user with no write permissions to the Item table cannot use this form.
Any idea why? The form DOES have fields which when validated calls:
CALCFIELDS(inventory)
to calculate the inventory field. Does the CALCFIELDS function require write permission to the Item table? Obviously the solution then is to give the form the required permission, however Im curious why this would be so.
0
Comments
-
Forms generally don't need CALCFIELDS commands. This command is used in C/AL code to calculate the value of a flowfield. Flowfields are automatically calculated by the form object, so it appears this is a redundant command.0
-
Just make a simple form with only the item no. and description and see if this causes problems.0
-
So where else could I look on a form for why it might be attempting to update the item table? Ive used the developers toolkit to few all the C/AL on the form and nowhere is it updating, modifying or changing information in that table.0
-
-
Sorry all, solved this problem, it was a design flaw by the origional coder of the form. For the sake of anyone reading this thread in the future with a similar problem::::
When designing a form that is for reporting only the first thing you should do is set InsertAllowed, ModifyAllowed and DeleteAllowed to NO everytime. The designer of this form didnt.
What was happening was that my users were filtering the form and acheived a position where the form had no results left (no item matched their filters). So when they tried to change a filter the form tried to insert a new record and was not allowed as the user didnt have permission to the item table.
Thanks for your time Mark. You seem to reply to every question i ever post on here
0 -
Mauddib wrote:What was happening was that my users were filtering the form and acheived a position where the form had no results left (no item matched their filters). So when they tried to change a filter the form tried to insert a new record and was not allowed as the user didnt have permission to the item table.
This is solved in 4.0 in many forms by changing the findrecord trigger.0
Categories
- All Categories
- 73 General
- 73 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
- 117 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
- 333 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 991 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

