Boolean flowfield - Exist won't work?

Robert_Ellsworth
Member Posts: 19
I'm trying to use a boolean flag in a table, as both a means for representing whether or not comments exist for the record and to have an entry point to add to those comments.
The boolean is defined as a flowfield into a custom comments table using the Exist calcformula property. When I click on the boolean field, I get the following error:
The CalcFormula for the Comment flowfield in the <table name> table should start with 'Sum(...'.
I do not wish to display the # of comments. Is there something I am missing??
Thank you for your time,
Robert
The boolean is defined as a flowfield into a custom comments table using the Exist calcformula property. When I click on the boolean field, I get the following error:
The CalcFormula for the Comment flowfield in the <table name> table should start with 'Sum(...'.
I do not wish to display the # of comments. Is there something I am missing??
Thank you for your time,
Robert
0
Comments
-
Remember to set the fields property "Editable" to No.
Apart from that you're on the right track0 -
Check that Field in the Calculation Formula is empty when using Exists as method.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Thank you. The editable flag prevents the error from occuring, but then that disables the ability to click on the field and have to drill down to the comments table I am making reference to. I guess I'll have to make a function to open the comments table window.
Thank you for your help,
Robert0 -
Robert Ellsworth wrote:Thank you. The editable flag prevents the error from occuring, but then that disables the ability to click on the field and have to drill down to the comments table I am making reference to. I guess I'll have to make a function to open the comments table window.
Thank you for your help,
Robertit's not that difficult.
On a Header/Line form, we have a function on the subform that is called in the OnPush trigger of the control of your boolean field (which is a checkbox on the subform). I believe Navision automatically does this when you put a boolean field on a form. In this function, you set the filter of your comment variable in filtergroup 2 (so the user can't change it) and open your comment form with the filtered variable.
Just click the boolean field in the form designer, press F9 and look for the OnPush trigger. That's where you want to start.
HTH,
Daniel.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