Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
4 subscribers
Views
1681 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Reports
175766 - no subject - I am using a!query() function to retriev
jaishankarj
over 9 years ago
I am using a!query() function to retrieve data from DB for my report. Since I can't use 'aggregation' and 'selection' both in a!query() - is there any way I can achieve this without calling DB twice?
OriginalPostID-175766
Discussion posts and replies are publicly visible
0
Tim
Certified Lead Developer
over 9 years ago
You should be doing the aggregation and complex logic inside a database view and then you can just select the data with queryEntity.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jaishankarj
over 9 years ago
@tim.clarke: I am using same VIEW for different button widgets from dashboard which should have different aggregation. I have included the complex logic already in VIEW but will try to handle this as well. Seems I may need to pass some parameter to view. Any other though?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 9 years ago
Why do you need to do both selection and aggregation? If you need to do aggregation, you should be able to meet your requirements by using that.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jaishankarj
over 9 years ago
@Tom Ryan: I need to display certain fields in grid for a report. Also I need to display a pie chart with aggregated count based on certain conditions. I was looking to do both in one call to DB (external).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 9 years ago
If you need two data sets, you will most likely need to do two queries.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel