cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 Checkbox

former_member187272
Participant
0 Kudos

hi experts

how we can create  ui5 checkbox using java script with data from hana database

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

karthikarjun
Active Contributor
0 Kudos

Hi Shahid,

SAP introduced sap.m.checkbox classes in SAP UI5 library, you can refer this library to create check box.

Check Box Example:

SAPUI5 Explored

Server Side Communication:

To get data from HANA database, you should refer, sap.ui.model.odata.ODATAModel() classes.

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.model.odata.ODataModel

Thanks,

Karthik A

former_member187272
Participant
0 Kudos

thanks karthik..

can u give an example,,

karthikarjun
Active Contributor
0 Kudos

Hi Shahid,

Will this help? JS Bin - Collaborative JavaScript Debugging

Instead of HANA, I created client side model.

In your system you should call odata model to fetch information from database.

Thanks,

Karthik A

former_member187272
Participant
0 Kudos

thank you so much karthik

karthikarjun
Active Contributor
0 Kudos

Hi Shahid,

If you got your answer. Mark this question as Answered.

It will be helpful to others, who has facing the same problem.

Thanks,

Karthik A

former_member187272
Participant
0 Kudos

sure..

former_member187272
Participant
0 Kudos

can u help me one more ,i am new to ui5,how we can get selected checkbox data on a button click

saivellanki
Active Contributor
0 Kudos

Hi Shahid,

Will this help? JS Bin - Collaborative JavaScript Debugging

Regards,

Sai Vellanki.

karthikarjun
Active Contributor
0 Kudos

Hi Shahid,

Will this help? JS Bin - Collaborative JavaScript Debugging

Thanks,

Karthik A

former_member187272
Participant
0 Kudos

thank you

former_member187272
Participant
0 Kudos

thank you karthik

Answers (0)