Question

3
Replies
504
Views
Ravi Kiran (RaviK518)
MSoft

MSoft
IN
RaviK518 Member since 2016 40 posts
MSoft
Posted: September 22, 2017
Last activity: September 22, 2017
Posted: 22 Sep 2017 8:05 EDT
Last activity: 22 Sep 2017 10:10 EDT
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>


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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.