Forums
Applications
Community
Development
Getting Started
Integrations
Aras Labs
Community Projects
Submit a Community Project
More
Cancel
Replies
3 replies
Subscribers
13 subscribers
Views
5437 views
Users
0 members are here
Options
Share
More
Cancel
Related
How to Implement "GroupBy" and "Max()" in AML?
オフライン
Sathish
8 年以上前
Ho do we implement the "GroupBy" and "Max" in AML?
オフライン
Yoann Maingon
8 年以上前
Hi, You would have different options:
either you write your query in SQL and use the ApplySQL SOAP action
or
you define a specific method "aggregation" which will look for an "aggregate_mode" attribute
In this method you will run a get query based on the provided information
And you will aggregate the result in c# based on the aggregate_mode you selected.
Then you just have to call your method in AML:
<Item action="aggregate" type="part" aggregate_mode="max" aggregate_criteria="cost"> <make_buy>1</make_buy> </Item> It's just an idea
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
オフライン
Sathish
8 年以上前
Thanks for the tip. I think it makes more sense to use the "aggregate" action. Can you point me to the right documentation that provides more details on the functionality of "aggregate" action. I dont find details of it in the programmer guide.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Former Member
8 年以上前
Speedriser, You would have to create it yourself, it is not available out of the box.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel