0

inline editing Listbox

asked 2012-10-23 10:50:03 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2621 3 8
http://emrpms.blogspot.in...

Hi

The following are my requirement

1. List box with two columns. First column will contain a textbox and button. On click of button, look up window will open to select the values.
2. Second column contains description where the user can type in.

And also, in the top of the list box, i should have a add button. On clicking of add button, a new row should be inserted in the listbox.

Can some one give me the example for this

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2012-10-23 11:34:51 +0800

Steva77 gravatar image Steva77 flag of Italy
1014 3
http://www.research.softe...

Hi,
instead of having a button + a look up window, can't u use a combobox?
And as for adding a new listitem, why don't u update the model?
See e.g. http://books.zkoss.org/wiki/ZK_Essentials/Displaying_information_using_the_Listbox/Using_a_ListModel_and_ListitemRenderer

link publish delete flag offensive edit

answered 2012-10-26 14:15:12 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2621 3 8
http://emrpms.blogspot.in...

I cannot keep combo box because, there is huge data in the master.

link publish delete flag offensive edit

answered 2012-10-30 13:36:25 +0800

Steva77 gravatar image Steva77 flag of Italy
1014 3
http://www.research.softe...

Huge data?
do you mean the list is too long to manage?
but then which component do you use in the look up window for selection?

link publish delete flag offensive edit

answered 2012-10-30 14:18:49 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

If you are using hibernate as backend you can modify the extended Searchbox with paging and searching (BranchExtendedSearchListBox.java)
It's less than 30 minutes to modify the code and write the DAO method.

best
Stephan

link publish delete flag offensive edit

answered 2012-10-30 17:50:12 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2621 3 8
http://emrpms.blogspot.in...

Yes As Stephan shows, i will be showing the same kind of modal window to select the value from the visit

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2012-10-23 10:50:03 +0800

Seen: 85 times

Last updated: Oct 30 '12

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