0

CRUD builder?

asked 2009-03-29 23:14:20 +0800

dserodio gravatar image dserodio
3 1

What's the status of the "CRUD builder" demo'ed here: http://docs.zkoss.org/wiki/Build_CRUD_Application_with_ZK_Studio_in_6_Steps ?

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2009-03-30 06:36:52 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

We are keep working on it.
CRUD Builder provides single table form builder for current version and the UI wizard tested on mysql, sqlserver.
we will improve it to supports more types of builder, more templates and more DB.

link publish delete flag offensive edit

answered 2009-03-30 08:18:57 +0800

iantsai gravatar image iantsai
2755 1

You can try ZK Studio 0.9.3 and give us some feed back,

link publish delete flag offensive edit

answered 2009-04-06 16:18:06 +0800

bdrhoa gravatar image bdrhoa
90 2

How do you start up the wizard?

link publish delete flag offensive edit

answered 2009-04-06 16:46:38 +0800

bdrhoa gravatar image bdrhoa
90 2

I have another question too. I downloaded the example application and it mostly works, but the data is never committed to the database.

link publish delete flag offensive edit

answered 2009-04-06 19:12:33 +0800

bdrhoa gravatar image bdrhoa
90 2

updated 2009-04-06 19:14:27 +0800

I found DB Form Builder Inside Out and Zeta DB Form Builder Step by Step. Those answered most of my questions. The app I generated even committed to the db.

I'd still like to know why the sample app didn't commit to the db.

link publish delete flag offensive edit

answered 2009-04-07 01:33:21 +0800

iantsai gravatar image iantsai
2755 1

Do you have any Log or error message?

There are tons of reasons to make your problem happen.

link publish delete flag offensive edit

answered 2009-12-08 13:27:58 +0800

designingwoman gravatar image designingwoman
30 1 1

The Form Builder for CRUD works very well. And it is easy enough to make the pages scrollable when there are a lot of data items...just put height="450px" or so in the grid, and it is then scrollable.

What I have not found easy to do is to change a textbox to a listbox. I need two types:
1) A listbox that will include a few values, so data entry is consistent
2) A listbox that lists values from another table, such as countries or similar

I tried changing the .zul file, the Controller for the table, and something is still wrong.
I'm not a zk expert. Is there a step by step guide on exactly which files to modify?

link publish delete flag offensive edit

answered 2009-12-08 19:02:12 +0800

designingwoman gravatar image designingwoman
30 1 1

updated 2009-12-08 21:54:31 +0800

I found the answer to 1)
It is buried in page DB Form Builder Inside and Out.

The answer is that you can make a field a Listbox even though the Value edit option is Gray'd out in step 6 of 7 when building the form.
Then add this code to the xxxController.java after this line: super.afterCompose();

Note: country is the fieldname/listbox item, and loc_tbl is the CRUD Table.
List countryModel = new ArrayList();
countryModel.add("Italy");
countryModel.add("Japan");
countryModel.add("South Korea");
countryModel.add("Spain");
loc_tblModel.setCountryModel(countryModel);

Anyone have an idea on how to do 2 below?
2) A listbox that lists values from another table, such as countries or similar

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: 2009-03-29 23:14:20 +0800

Seen: 1,275 times

Last updated: Dec 08 '09

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