从表到ZK中文本框的选定项目数据 [英] Selected Item data from a table to textbox in ZK
问题描述
我正在开发一个小型Web应用程序,用于存储医院患者的数据,以便更多地了解zk及其令人惊叹的功能.
这次我的目标是当我选择一行(选中标记)时,我想将该行的数据(红色)带到其相应的文本框(蓝色),并且当我选择表的任何行时都可以使用:>
也许这是列表框的一种配置,或者我必须实现一种获取我想要的东西的方法,我不知道.
如果您能帮我这个忙,那就太好了.
很高兴看到ZK正在传播,我希望您喜欢它,我知道我喜欢它.
您的目标实际上是在ZK演示上.
https://www.zkoss.org/zkdemo/grid/data_binding
该演示站点的优点是您可以下载代码,因此也可以对其进行修改.
如果您不了解该演示,请发表一些注释,并充分说明您不了解的内容,我将尝试通过该解释来更新答案.
I'm developing a small web application for storing data of a hospital's patients in order to learn more about zk and it's amazing features.
My goal this time is when I select a row (checkmark) I want to take the data of the row (red color) to their corresponding textbox (blue) and this works when I choose any row of the table:
Maybe it's a kind of configuration of the listbox or maybe I have to implement a method to get what I want, I don't know.
It will be great if you give me a hand with this.
It's nice to see ZK is spreading and I hope you like it, I know I do like it.
Your goal is actually on the ZK demo.
https://www.zkoss.org/zkdemo/grid/data_binding
The advantage of the demo site is that you can download the code so you can modify it also.
If you don't understand the demo, post some comment with a good explication what you don't understand and I'll try to update the answer with the explication.
这篇关于从表到ZK中文本框的选定项目数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!