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

TOPIC:

[ANSWERED] WHERE ARE ENUMERATION LIST VALUES STORED? 15 Nov 2013 13:59 #11616

Hello All,
I have noticed a strange behaviour today, which could simply be something I am not doing correctly.

I have a Joomla 3 Component build, with many Tables, and some Tables have a Field Type : enumeration

If I add more than one element to the enumeration List the values after the first are not generated in the SQL file (install.mysql.utf8.sql).

For the Admin :)
My Project SimpleCRM. Table: People , Field: Type

The List elements are clearly visible in my project however they are not, apparently generated in the SQL file.

Your kind assistance is much appreciated.

Edward.
I'mmm Back!

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

Last edit: by jcombuilder. Reason: Solved

[ANSWERED] WHERE ARE ENUMERATION LIST VALUES STORED? 15 Nov 2013 17:36 #11617

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
I can't be sure because it's been a long time since I used an enumeration field and it would have been pre Cook V2 but, I seem to recall the enumeration field options being stored in a var (maybe static) in some helper??? Unsure, but hope it helps nonetheless!

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: jcombuilder

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

[ANSWERED] WHERE ARE ENUMERATION LIST VALUES STORED? 15 Nov 2013 21:31 #11633

Thank you Gez,

Yes, there they are in helper.php nicely located under the comment .. "Prepare the enumerated static lists".
/component/admin/helpers/helper.php
- for future reference.

Ah, we live and learn (hopefully).

Edward.
I'mmm Back!

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

[ANSWERED] WHERE ARE ENUMERATION LIST VALUES STORED? 15 Nov 2013 21:41 #11634

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

Can't really believe that I remembered that seriously!!! :woohoo: It's been at least a year since I would have got in there to edit any options manually.

Well, glad it helped.

Gez

**N.B. Changed topic title to: WHERE ARE ENUMERATION LIST VALUES STORED?
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, jcombuilder

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

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

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started