cancel
Showing results for 
Search instead for 
Did you mean: 

Web IDE: SAPUI5 Custom data name space in XML view

sergey_korolev
Active Contributor
0 Kudos

To be able to declare binding of Custom Data in your XML view you need to use a special name space, something like that:

xmlns:custom="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"

and then you can use it in a control declarations:

<Button text="My Button" custom:key="Very special key" />

Wonders begin when you omit name space declaration (for example, by copy-pasting a control declaration from one fragment to another).

In that case Web IDE would never report any problem, everything will be built, no errors will be shown in the browser console, however the control with declared custom data won't show up.

Is it a feature?

Accepted Solutions (0)

Answers (1)

Answers (1)

yuval_morad
Employee
Employee
0 Kudos

Web IDE still does not support custom controls code assist or validation, also not reuse library ones.
We will plan these topics for the future, but it will require the provider to deliver an agreed metadata, and locate it in an agreed location.

sergey_korolev
Active Contributor
0 Kudos

Hi Yuval,

Thanks for answering. As you might note the question was not about a Custom Control, it was about Custom Data (accessible via function data) of a control. To my understanding there can be some validation on missing namespace declaration and apparently there is none.