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

TOPIC:

Auto generated ID component 11 Nov 2012 05:37 #5251

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 2
How to generate auto generated Id file in j-cook.pro?

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

Last edit: by vivek.

Re: Auto generated ID component 11 Nov 2012 09:23 #5256

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Do you mean an ID field in tables and layouts?

If so, the id field is auto-created on all tables. If you need it in a layout (grid or fly), you can add it to the layout by dragging the table element itself to your layout, just as you do with a field.

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

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

Re: Auto generated ID component 11 Nov 2012 11:33 #5265

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 2
Thank you for your reply, and i asked about, how to set the id field as auto generated in all layouts?
i.e various id number(1,2,3,....) for various customers(a,b,c,....)

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

Re: Auto generated ID component 11 Nov 2012 13:35 #5273

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Sorry @vivek,

I don't quite understand what you mean...

The id field is auto created for every table you create. The id field of every record you create in a table will auto-increment and be set to be the table's primary key.

Does that answer your question?

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

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

Re: Auto generated ID component 22 Nov 2012 04:26 #5602

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 2
Thanks Gez, That answers my question but how do I display the ID column in the page.


Regards
Vivek

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

Re: Auto generated ID component 22 Nov 2012 10:07 #5609

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
You can just drag the table node to whatever layout you want, a fly, grid or form and it will display the ID of the record(s) in question.

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The following user(s) said Thank You: admin

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

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

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started