ZK中从表格到文本框的选定项目数据 [英] Selected Item data from a table to textbox in ZK

查看:14
本文介绍了ZK中从表格到文本框的选定项目数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个小型 Web 应用程序,用于存储医院患者的数据,以了解有关 zk 的更多信息及其惊人的功能.

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.

推荐答案

很高兴看到 ZK 正在传播,我希望你喜欢它,我知道我喜欢它.
您的目标实际上是 ZK 演示.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆