Welcome, Guest
Username: Password: Remember me

TOPIC: copying a table

copying a table 21 Aug 2013 20:45 #10875

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
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
Last Edit: 21 Aug 2013 20:45 by BTB300.
The administrator has disabled public write access.

copying a table 21 Aug 2013 21:05 #10878

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
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
The administrator has disabled public write access.

copying a table 22 Aug 2013 11:04 #10885

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
The administrator has disabled public write access.
Time to create page: 0.066 seconds

Get Started