Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create a View with Aggregation Function (COUNT)

Former Member
0 Likes
416

I've been looking up and down for a way to create a view with a few basic fields and some other fields containing aggregation function.

For instance:

To display a view that contain all the Contract Agreement and the corresponding count of the PO releases.

Agreement Nbr, Total PO releases

I need this view so that I can create a search help with this view.

I found something about the "CREATE VIEW" statement, but I don't have any idea how to use it.

Any helps toward this matter is very much appreciated, thanks.

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
350

Hello Aldern

I guess you have read about the SQL statement "CREATE VIEW". When we create a view in the dictionary this SQL statement is finally called to create the view on the DB. Thus, since we do not have any aggregation options in views you cannot achieve what you want using views.

The solution for your problem is to create a <b>search help</b> having a <b>search help exit</b>. Within the exit you can do your aggregation functions and add these values to the displayed search help data.

Regards

Uwe