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

TOPIC:

copying a table 21 Aug 2013 20:45 #10875

  • BTB300
  • BTB300's Avatar Topic Author
  • Away
  • 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.057 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started