Question

3
Replies
465
Views
RaviK518 Member since 2016 40 posts
MSoft
Posted: 3 years ago
Last activity: 3 years ago
Closed

How to Show API Response under a Drop Down

I have configured REST - Connect Using Designer Studio == > Integration ==> Connectors ==> Create REST Integration .

The Response from API Call is

{"status":"SUCCESS","envm":["DEV1","QA","UAT"]}

Under the Integration Layer , it has generated Service , all corresponding Request and Response classses and a Data Page by name D_SearchCatalog .

When i ran the DataPage , it runs fine and returns me data as shown in the attached picture .

2. I also created a Activicty , and was calling the above created using Connect-REST Method

This was the response from the Activicty (show -page with response_GET )

<pagedata>
<status>SUCCESS</status>
<pxObjClass>Mine-Int-SearchCata-SearchCatalog_Response_GET</pxObjClass>
<envm REPEATINGTYPE="PageList">
<rowdata REPEATINGINDEX="1">
<pyValue>DEV1</pyValue>
<pxObjClass>SingleValue-Text</pxObjClass>
</rowdata>
<rowdata REPEATINGINDEX="2">
<pyValue>QA</pyValue>
<pxObjClass>SingleValue-Text</pxObjClass>
</rowdata>
<rowdata REPEATINGINDEX="3">
<pyValue>UAT</pyValue>
<pxObjClass>SingleValue-Text</pxObjClass>
</rowdata>
</envm>
</pagedata>

My question is , from the API response , i need to extract the envm array and show the values in a drop down

For now , i just created a dropDown under UI Section .

I am comfortable with java , if java can help under Activicty , please let me know after getting the JSON under java , how to show it in UI

Could you please tell me how should i procceed ??

Low-Code App Development
Moderation Team has archived post
Share this page LinkedIn