"nav 2013" use default function in layout code
lornisse
Member Posts: 10
Hello
please i want to know if it is possible to use the defaut system function in a report layout code section (customize code)
for example how in the report layout code section (customize code) how to use the default function CountDistinct
who can be use in a textbox expression
Thanks
please i want to know if it is possible to use the defaut system function in a report layout code section (customize code)
for example how in the report layout code section (customize code) how to use the default function CountDistinct
who can be use in a textbox expression
Thanks
0
Best Answer
-
Hey Lornisse,
Custom Code of the Report Property is used to built your own logic and get it used in the Report, you cant used the Standard Keywords there which you find when you are writing any expressions. If you want to build some custom logic you are free to write there and get it used with Code.YourFunctionName but you cant use the standard keywords while building your own Custom Code in the Report Property Code area.
Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/5
Answers
-
Hey Lornisse,
You just nee to write CountDistinct(Fields!X.Value), it will return the count of Distinct Values.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Thank you
but if i want to use the CountDistinct function in the code section (custom code section = report properties code section ) and not in the body
it is possible ?
Right click → properties → code (in the report layout)
0 -
Hey Lornisse,
Custom Code of the Report Property is used to built your own logic and get it used in the Report, you cant used the Standard Keywords there which you find when you are writing any expressions. If you want to build some custom logic you are free to write there and get it used with Code.YourFunctionName but you cant use the standard keywords while building your own Custom Code in the Report Property Code area.
Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/5 -
[Topic moved from 'NAV Tips & Tricks' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
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
