Skip to Main Content

Visual Builder

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to group and sum the data based on fields getting from the rest external api which is stored in a table component

user-d57d8Apr 19 2023 — edited Apr 20 2023

Hi,

I have a requirement to group and sum the data based on fields and dispaly it in a table format in VBCS.

I have a requirement to fetch the data from an external rest API to retrieve Onhand balances and display it in a table on search of a button.

Table should contain fields OrgCode, itemNumber, SubinventoryCode, Locator and PrimaryQty.

I have done the above task.

I am getting the attached data:

I got stuck

Next steps-> I need to group all the fields and sum the primaryQuantity.

In the attached image their are two records with same organizationCode, itemnumber, subinventoryCode

I need only one record with sum of primaryquantity i.e; 2+3=5.

Comments
Post Details
Added on Apr 19 2023
1 comment
130 views