AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Report De...
Report Designer and...
 
Notifications
Clear all

Questions Report Designer and Custom Database Views

 
Acumatica Report Designer
Last Post by John Doe Updated 7 years ago
5 Posts
2 Users
0 Reactions
2,349 Views
RSS
SQLRunner
Posts: 45
 SQLRunner
Topic starter
August 11, 2018 9:55 pm
(@sqlrunner)
Trusted Member
Joined: 8 years ago

Good Afternoon,

I'm having an issue that seems to affect any custom database view when attempting to access the data in the report designer.  When tied to the report designer, only the first row displays, for the number of times that results exist.  For example, I have a view that is the current months birthdays.  It has 12 results this month, in the report designer I get 12 rows of the first result when placed in the detail section.  I'm currently on version 5.30.  The use of views and custom SQL code has been critical to writing "maintainable code".  For example, after converting a code file written completely in the report designer to SQL, we went from 5500 lines of code (report designer pseudo language) to 380 lines of SQL code.  Insane reduction, has anyone seen this issue before?  Also is there a known fix?


4 Replies
SQLRunner
Posts: 45
 SQLRunner
Topic starter
August 11, 2018 9:59 pm
(@sqlrunner)
Trusted Member
Joined: 8 years ago

Also, wanted to add.  In the general inquiry, the data behaves as expected.


Reply
John Doe Updated
Posts: 3193
 John Doe Updated
Admin
August 15, 2018 5:16 am
(@timrodman)
Famed Member
Joined: 10 years ago

Wow, that's weird. I have not seen this before, but I'd be interested to know if you get the same behavior on a recent version of Acumatica.


Reply
SQLRunner
 SQLRunner
(@sqlrunner)
Joined: 8 years ago

Trusted Member
Posts: 45
August 15, 2018 7:58 am
Reply toJohn Doe UpdatedJohn Doe Updated

Hi Tim,

I was able to figure this out.  Apparently if you do not use the IsKey = true in the dac defintion.  The report designer gets confused and can not tell when a new row occurs.  When setting the key you want to ensure that it is unique to every row.  The easiest way to do this in SQL is to make a row defined as a running row count and then make that column the key indicator.  This is at least true in the 5.3 versions.


Reply
John Doe Updated
Posts: 3193
 John Doe Updated
Admin
August 17, 2018 6:49 am
(@timrodman)
Famed Member
Joined: 10 years ago

Thanks for sharing your solution @sqlrunner. And I'm glad that you were able to get it working.


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 18 Online
  • 2,410 Members
Our newest member: thollings
Latest Post: Attribute Input Mask
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×