0

how is referenced in zscript (zul) an object by knowing its name?

asked 2018-09-17 18:16:35 +0800

StefanoDIsa gravatar image StefanoDIsa
1

in a ZUL, by means of a zscript, how is an object referenced by the attribute "name" not knowing its "id"? This can be done dynamically to focus the focus on a specific field of a row in a listbox.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-18 10:46:00 +0800

cor3000 gravatar image cor3000
6280 2 7

Since zscript is executed by a BeanShell interpreter at server side, you can use the whole Java API as usual.

For CSS like query syntax you can use the Component#query() API. Which offers the same syntax used/documented in SelectorComposer

Here a runnable example: http://zkfiddle.org/sample/369mgn2/1-focus-by-name

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2018-09-17 18:16:35 +0800

Seen: 6 times

Last updated: Sep 18 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More