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

Expand javascript bindings #73

Merged
merged 4 commits into from
Jan 17, 2024

Conversation

rvermeulen
Copy link

Include binding arbitrary JavaScript properties for JS views.

rvermeulen and others added 4 commits December 21, 2023 14:24
The binding contains the target being bound, so this allows use to
track the binding target for each binding path.
This helps in cases where we couldn't easily get this information
causing a cross product if multiple bindings or paths were the same.
@jeongsoolee09 jeongsoolee09 self-assigned this Jan 8, 2024
} or
// Json binding
TJsonPropertyBinding(JsonObject object, string key, StaticBindingValue binding) {
TJsonPropertyBinding(JsonObject object, string propertyName, StaticBindingValue binding) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TJsonPropertyBinding is not capturing "{/input}" (both in line 9 and 13) in app.view.json on my environment. Could you look into it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I run them on a database on the test files I find them. It would also mean that

would fail and it doesn't. Are you sure that it is not captured?

Copy link
Contributor

@jeongsoolee09 jeongsoolee09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upon quick-evaluating / debugging variants of TBinding and TBindingTarget, I found that:

  • TXmlContextBindingTarget together with TXmlContextBinding: Are the attributes named binding treated specially? Could you point me to a relevant portion of documentation?
  • TJsonPropertyBindingTarget together with TJsonPropertyBinding: As pointed out in a separate comment, there are bits of app.view.json that are not being captured.
  • TLateJavaScriptPropertyBinding: These yield an empty relation, too.

@rvermeulen
Copy link
Author

Upon quick-evaluating / debugging variants of TBinding and TBindingTarget, I found that:

  • TXmlContextBindingTarget together with TXmlContextBinding: Are the attributes named binding treated specially? Could you point me to a relevant portion of documentation?

Yes, these are called context bindings. See https://ui5.sap.com/#/topic/91f05e8b6f4d1014b6dd926db0e91070

  • TJsonPropertyBindingTarget together with TJsonPropertyBinding: As pointed out in a separate comment, there are bits of app.view.json that are not being captured.
  • TLateJavaScriptPropertyBinding: These yield an empty relation, too.

Empty releation on what? We have test cases that pass. See

oInput.bindProperty("value", "name");

@jeongsoolee09
Copy link
Contributor

@rvermeulen Sorry, now I get results from the three relations in question.

@jeongsoolee09 jeongsoolee09 merged commit 051c291 into main Jan 17, 2024
8 checks passed
@jeongsoolee09 jeongsoolee09 deleted the rvermeulen/expand-javascript-bindings branch January 17, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants