cancel
Showing results for 
Search instead for 
Did you mean: 

Build sapui5 app with MaxDB data

priya_powar
Explorer
0 Kudos

Hi Experts,

I have a usecase wherein I need to build and deploy a UI5 App. The data showcased in the App is to be fetched from MaxDB. I am not quite sure whether this usecase is possible to develop. I have followed few blogs and have Eclipse and tomcat in place. However, I am not sure how to proceed further.

Kindly guide me.

Thanks and Regards,

Priya

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member560141
Participant
0 Kudos

Yes you can.

If there is built a API that delivers xml or json on top of anny DB you can fetch it with Ajax for example
http://api.jquery.com/jquery.ajax/

var request = $.ajax({
  url: "some://URL",
  method: "POST",
  data: { id : menuId }
});
request.done(function( data ) {
  console.log(data)
});

SAPUI5 is just javascript / HTML / CSS.
junwu
Active Contributor
0 Kudos

ui5 is just front end part,

you have to tell us what environment you are going to deploy your app

how you want to develop the server side of your app

priya_powar
Explorer
0 Kudos

Hi Jun,

I have to deploy it on tomcat server. Basically the App would be based on JDBC MVC model (using JS controller and XML views). I have certain tables present in MaxDB whose data is to be fetched using READ calls(select query) from the frontend and filled into XML views.

junwu
Active Contributor
0 Kudos

then you do your java programming to provide the service for ui5.....

priya_powar
Explorer
0 Kudos

Hi Jun,

I am not using odata service here. I need to fetch the data through Select queries. Could you please show a snippet where the data from java class is being filled up in ui5 views?

junwu
Active Contributor
0 Kudos

do you have any idea about ui5 and java?

priya_powar
Explorer
0 Kudos

Yes.. I have worked on both but have never used them together. Currently, I am able to fetch the data from db and display in console through java. I need to bind this data to an xml view. The view being made up of fiori elements like sap.m.table. etc .I am not sure how to go forward

junwu
Active Contributor
0 Kudos

if you know ui5, then you should understand how ui5 call backend and what backend service is expected from ui5....

do you know how to develop a servlet? then call a servlet from frontend?

usually you will use some framework at backend to create rest/odata service.....