Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

copying a table 21 Aug 2013 20:45 #10875

  • BTB300
  • BTB300's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
sorry to be the bearer of bad news - long story short no

each table and "similar" project for that matter must be created field by field

does not take long once you have the swing of it

And welcome aboard

Please Log in or Create an account to join the conversation.

Last edit: by BTB300.

copying a table 21 Aug 2013 21:05 #10878

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
BTB300 is right.
And although it could take much time to create all this, it will always be SO MUCH FASTER than to create the whole component by yourself without the help of COOK

Please Log in or Create an account to join the conversation.

copying a table 22 Aug 2013 11:04 #10885

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
If you have similar stuctures tables, it means that you can use the same table and simply put an option it to know what type of object it is. Kind of abstraction.

You table respresent an object that is common for all your related objects.

Example:

Assets :
- House
- Building
- Garden

Instead of creating 3 tables (house, building, garden), create only one : Asset
And then put enumeration or id or FK, ... to identify it (house, builing, garden...)

If your similar tables are used in different components, then you have no choice recreating them.

Many people ask for automatisations (such as : auto create layouts, instance the whole form at once, or creating the grid with all fields)
I say no because it is important you check well your datas and what you are creating. Do not create too fast... check everything correctly, and as said VeCrea, it is anyway a gain of time using cook.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.096 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started