Forums
Applications
Community
Development
Getting Started
Integrations
Aras Labs
Community Projects
Submit a Community Project
More
Cancel
Replies
3 replies
Subscribers
13 subscribers
Views
5438 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?
Parents
オフライン
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
Reply
オフライン
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
Children
No Data