cancel
Showing results for 
Search instead for 
Did you mean: 

How do i use the UI5 SDK at the best manner?

AntonPierhagen
Active Participant
0 Kudos

I have troubles to find in the SDK, all the options which can be used for a particular UI element.

For example; If i look at the ObjectNumber in an example, i see;

If i would like to find which options i have more for a ObjectNumber, i go to the API Reference of the website;

ui5.sap.com;

https://ui5.sap.com/#/api/sap.m.ObjectNumber

and take a look over there, which other options i have, and also what for example other options i have for

the option formatOptions of the variable Number of the UI element ObjectNumber.

But if i look at the properties, i find Number;

but i can't find over there the direct link to the sub options whom are used in the example;

'Path', 'type' and 'formatOptions'. And also all the others;

So therefore, my question is, how do i use the SDK on a proper manner, so i can find all the options whom are available for a UI element?

In the example above the ObjectNumber is used, so i am not interested in the ObjectNumber it self, but how do i find what options i can use, and how do i find the used options?

Kindly hear from you!

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor
0 Kudos

Hi Anton Pierhagen

All the path related bindings are handled by managedobject class in UI5. I know it is difficult to find these things but it is very easy once you know the concepts. To be frank, just now i debugged the code to understand where the parts, type etc.., are being set.

But then I realized it is more simple because what you are doing is property binding, so just go to the respective ui5 control and check for bindProperty method, it is inherited from managedobject, which is inherited in element and again it is inherited in the control and the control is inherited in all the controls

https://ui5.sap.com/#/api/sap.ui.base.ManagedObject/methods/bindProperty

BR,

Mahesh

AntonPierhagen
Active Participant
0 Kudos

Thanks!

Now i have to find out how the connection is created between bindProperty and

the setting of those values of the UI element. But thanks for your information!

Answers (1)

Answers (1)

0 Kudos

Look under 'Documentation > Essentials > Data Binding'.

AntonPierhagen
Active Participant
0 Kudos

Hi Carsten

Thanks for your reply,

But how do you know which options/variables for the number of ObjectNumber there are?

In the documentation, i only read string?

0 Kudos

The 'number property has to be a string. Instead of a value, you can also use binding syntax, which is enclosed in curly brackets '{}'.