cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a SAP UI5 application (master detail) to get the content from cloud API

former_member227184
Active Participant
0 Kudos

Hi Experts,

We are using portal service in a cloud platform. Now we want to build a SAP UI5 application (Master Detail page) to get the roles using oAuth authentication from below API URL.

https://api.us3.hana.ondemand.com/authorization/v1/accounts/xxxxxxxxxx/apps/nwc/roles?providerAccoun...

Roles should be displayed in master page and when we click on any role, assigned users should be displayed in Detail page.

Also we would like to assign/un-assign users to the roles from this UI5 application.

I am able to get the data from postman using oAuth(Client ID, Client Secrete) and above API.

Please guide me to develop an UI5 application.

Regards,

Vamshi Krishna.

Accepted Solutions (0)

Answers (6)

Answers (6)

0 Kudos

Hi,

we have similar requirement. we were able to pull the roles and users , but we also wanted the details of applications mapped against the roles. same like master-details

former_member227184
Active Participant
0 Kudos

Thank you so much karsten.voigt

It worked for me. I would like to display roles in SAP UI5 application. How can we get this done in controller.

Regards,

Vamshi krishna

former_member227184
Active Participant
0 Kudos

Hi karsten.voigt,

Still I am unable to resolve this error. If you find the solution please share.

Regards,

Vamshi Krishna.

karstenvoigt
Participant
0 Kudos

Hi vamshi.krishna624 ,

in my case I had to use the Client ID/ Client secret also as Token Service User / Token Service Password. Now I'm able to access the service.

Regards

Karsten

former_member227184
Active Participant
0 Kudos

Can I acheive it using Ajax calls in controller?

former_member227184
Active Participant
0 Kudos

Hi Lemaire,

I have created Destination and it showing below error. And I am unable to give this destination while creating application using templates in WEB IDE.

Failure reason: "Unexpected Token Service response code. No response body was returned by Token Service. Check the configuration or contact Token Service owner." Received status code: "401"

Regards,

Vamshi Krishna.

karstenvoigt
Participant
0 Kudos

Hi Vamshi,

could you solve this issue? Currently I have the same problem using OAuth2ClientCredentials in a destination.

Thanks.

Regards

Karsten

WouterLemaire
Active Contributor
0 Kudos

Start by creating a destination for this api like in this tutorial but with the oauth info: https://developers.sap.com/tutorials/hcp-create-destination.html

Use this destination to generate a master detail app in the SAP Web IDE:

https://developers.sap.com/group.cp-frontend-ui5-1.html