Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding Syntax #3

Closed
JarkkoPeltonen opened this issue Aug 21, 2017 · 4 comments
Closed

Binding Syntax #3

JarkkoPeltonen opened this issue Aug 21, 2017 · 4 comments

Comments

@JarkkoPeltonen
Copy link

All attributes with expression binding and input validation get "Wrong attribute value":
image

Can expression binding be valid input for all attributes?

@cschuff cschuff changed the title Expression binding Binding Syntax Aug 21, 2017
@cschuff
Copy link
Member

cschuff commented Aug 21, 2017

Hi,

this is a known limitation of the xml schemas provided by SAP. So this could be a feature request for OpenUI5 itself.

Anyways, I was already looking into these kinds of issues and have some ideas for future versions.

Btw: You are not using Expression Binding in your example. I changed title due to that respect.

BR
Chris

@JarkkoPeltonen
Copy link
Author

Hello,

Can you share your ideas?

I'm thinking of creating custom type that validates the binding. Then assign this type and current type of attribute as union to all attributes.

Br,
Jarkko

@cschuff
Copy link
Member

cschuff commented Aug 21, 2017

That's exactly what I thought of :) The custom type could use a regex to validate the binding syntax (which could get quite complex: Think of Complex Binding and Expression Binding). The simplest implementation would just additionally allow xsd:string everywhere.

You are most welcome to contribute on this.

@cschuff
Copy link
Member

cschuff commented Jul 2, 2019

Closing this for now since it is mentioned in known limitations and I won't have time to fix this anytime soon.

@cschuff cschuff closed this as completed Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants