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.084 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