CALCFIELDS

Kc_Nirvana
Member Posts: 146
Hello
I have a table 50000 that had this fields
1 No.
2 User
3 Post Date
4 UserIDSession
5 ExistsUser
The field 4 and 5 are flowfields. If user = useridsession then existsuser=true
When I create a form and put put on source table view Where existsUser=Const(yes) the form doesn't show any records.
Anyone knows the problem?
I have a table 50000 that had this fields
1 No.
2 User
3 Post Date
4 UserIDSession
5 ExistsUser
The field 4 and 5 are flowfields. If user = useridsession then existsuser=true
When I create a form and put put on source table view Where existsUser=Const(yes) the form doesn't show any records.
Anyone knows the problem?
Junior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
0
Answers
-
Search the forum for how to do a flowfield based on another flowfield. It's a little tricky to do it, but I think I remember a post about it.0
-
Kc_Nirvana wrote:Where existsUser=Const(yes)
What about changing to : where UserIDSession <> 0 or
using flowfield that counts the entries in the session for the user and filtering that to <> 0?
Do you really need a flowfield based on another flowfield?0 -
Imagine that i need a form to show only the documents that the user created.
I don't want to the user see another document that is not them.
So i create a flowfield that calculates the user that entered and a flowfield that returns true if the document belonged to the user enteredJunior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit0 -
Why not just store the user that created it on the record itself and filter on that field? Seems a lot easier.0
-
matttrax wrote:Why not just store the user that created it on the record itself and filter on that field? Seems a lot easier.
The document has a field that is the user that created the document.
But i want that only that user can see that documentJunior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit0 -
So simple......
That worked...... =D>
ThanksJunior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit0 -
You'll probably want to add some sort of permissions to it. I'd imagine that some people should be allowed to see every document.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