This topic is locked

Enum Problem and Inline add (no fields show)

8/28/2011 10:36:12 PM
PHPRunner General questions
M
MikeB941 author

A couple of problems persist with ENUM types for inline adds (first reported this back PHPRUNNER 5.0 BUILD 766)
When the list page is initially set up for ENUM fields the Edit As value is set to Look Up wizard and the type is set to Lookup Table without any table info.
Problem 1) If you don't go into this ENUM field with the editor and either switch this to List of Value or complete the Lookup Table info the cryptic symptom is when you press the inline add button, a line will be added BUT NO FIELDS WILL BE SHOWN
Problem 2) If you set up the Edit As for ENUM fields as a List of Value BUT ENTER a DEFAULT VALUE (in my case the first value in the ENUM list) the same cryptic symptoms will happen, when you press the inline add button, a line will be added BUT NO FIELDS WILL BE SHOWN
Thanks so much for your help with this fix. Take Care... Mike.

M
MikeB941 author 8/28/2011

UPDATE to Problem 2) In my case, I had forgotten to enclose the default value in double quotes - once I did that, the default problem went away - but still something to be aware of because forgetting to enclosed the default ENUM value in quotes results in NO FIELDS appearing when you later press Inline Add - Take Care... Mike.

Sergey Kornilov admin 8/29/2011

Mike,
documentation clear says that string default values must enclosed in double quotes. That's how PHP knows this is a string value as opposed to number, constant or function name.