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.078 seconds

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started