-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How can I update a field on my window?
How do you access you database? Plain JDBC with or w/o beans, hibernate?
Note: You can create a standard-CRUD with Zeta-Forms (a part of ZK Studio). This creates the bean, DAO and a standard GUI using JPA, Hibernate and Spring.
For a simple plain JDBC-Demo check out the JDBC example from like demo >> here <<<
/Robert
>> How do you access you database? Plain JDBC with or w/o beans, JPA/hibernate?
Please answer, for better help.
>> case of multiple
How should your program work?
1.) List all records of of file the user select the edit-record?
2.) The user enter an unique key and gets the editform?
However for plain-JDBC (in a webapplication) you perform an SQL like this:
update file set fielda=?, fieldb=? where uniquekey=?key
/Robert
Thanks Robert for ur enthu....
It is not to add values in DB, I am displaying the definition from a field and want to update that using the UI, the updated value should get reflected in the DB.
I am using palin JDBC with beans.
For example I have 2 rows, in one i am showing name and in other surname.
I want to change the display name and surname on the run by providing the edit button.
If a user comes and edit the name then how the change takes place? How can I access the Ids of the button to recognize which field has been chage and now what changes I need to show?
Please Reply...
@din
have a look at this thread and study the code. In it are a DialogWindow too
that handles all CRUD for two textboxes.
this
What you can see is:
-------------------------------
1. Listbox with Itemrenderer and sorting columns(comparator)
2. Event Handling in java code.
2.1 doubleClick on row opens a dialogWindow (remarked SingleRowClick or IconClick opens Dialog)
3. overhanded parameters from ListPage to DialogPage.
4. CRUD operations in the dialogWindow with readonly/edit modus.
The data comes from a table by a ServiceDAO. You must fill it by your own.
I have updated the sources (zk 3.5.2).
whishes Stephan
PS: Help to prevent the global warming by writing cool software.
Asked: 2009-04-13 09:53:06 +0800
Seen: 330 times
Last updated: Apr 15 '09