when I storing the field in database, it stop show to me on node
igorik - January 14, 2009 - 12:42
| Project: | Computed Field |
| Version: | 6.x-1.0-beta3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi
I am not sure if it is a feature or the bug, but when I check "storing in database" for any computed field, then it stop to show to me on node.
It is neccessary to have 2 same fields, one for showing on node and the second for storing in database (for using in views e.g.) ?
I tried to store really simple computed field, to found if it will be shown or not,: $node_field[0]['value'] = 'test'; db options were text, and length 100, default value was: test2
this field after checking "store in db" was never shown.
Thanks for the answer
Igorik
http://www.somvprahe.sk

#1
What you are describing is not normal. The point of the computed field is that it shows on the node view.
Make sure the "Display Format:" box has:
$display = $node_field_item['value'];#2
Hi
I have exactly that format in display:
$display = $node_field_item['value'];
Normally I see all my computed fields on node. But when I chceck "store using database...", it disappears.
Thanks for the help
Igorik
#3
Another possibility is the Default Value in the database storage settings. Try to delete the 'test2' and see if that helps.
There can be problems using the default value with the text datatype.
#4
I know it's been a while, but are you still having an issue with this? Database storage for Computed Fields shouldn't affect their display, and I haven't seen this happen personally. If you have any further information, I can try testing it out here though.
#5
I have this exact same issue. Everything works fine when I don't tell it to save to the database. But when I do, it does not display and it does not get stored, no matter what I'm trying to store, and I've tried leaving it as null or not, and typically tested with default set empty.
#6
Hi stickybenson, I didn't try it for a while, but there was a changed concept aabout month ago with latest version and data are not storing into db but into files or something else I think. Read latest issues and try the latest module version.
#7
Version: 6.x-1.0-beta2
I am getting the same thing. It completely tricked me, I spent about 1/2 hour staring at each character in the example to make sure I had everything right, but nothing would show in the computed field, until I turned off the database storage option.
This is surely a bug.
#8
I upgraded to 6.x-1.0-beta3 and it is still broken.
As soon as I select 'Store using the database settings below' the computed field vanishes.
I need to be able to access the computed field from Views, so I need the database storage option.
Very grateful for attention to this soonest,
Webel
#9
#10
My trouble occurs with 6.x-1.0-beta3 vs. Drupal 6.8.
#11
If anybody has managed to get 6.x-1.0-beta3 working could you please confirm that and post a minimal example here, along with the Drupal version. As far as I can tell 6.x-1.0-beta3 is broken, one can't store to database, and so one can't use views of computed fields, which compromises this promising module.
Q: When was the last version known to work together with Views ?
#12
I am using a few Computed Fields with 6.x-1.0-beta2 and I am storing the fields in the database. I am using the varchar data type and setting a data length.
Several months ago I did see a problem using the text data type. Please try varchar.
#13
Moonshine has kindly assisted me with this clarification (extracts from email):
That was exactly my problem.
And that was what I overlooked.
Thanks for clarification, it works now, however I have to edit and resave a couple of hundred nodes,
Webel
#14
Same bug but I discovered a work around by simply resaving the node. See this post on issue que.
http://drupal.org/node/627010