Welcome, Guest
Username: Password: Remember me

TOPIC: Auto generated ID component

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

  • vivek
  • vivek's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 2
  • Karma: 2
How to generate auto generated Id file in j-cook.pro?
Last Edit: 11 Nov 2012 05:38 by vivek.
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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!!!
The administrator has disabled public write access.

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

  • vivek
  • vivek's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 2
  • Karma: 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,....)
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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!!!
The administrator has disabled public write access.

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

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


Regards
Vivek
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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 administrator has disabled public write access.
The following user(s) said Thank You: admin
Time to create page: 0.125 seconds

Get Started