Needs review
Project:
Exhibit
Version:
6.x-1.0-beta1
Component:
Data sources
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2009 at 23:21 UTC
Updated:
20 Jul 2009 at 20:49 UTC
I have several fields that I want to pass to JSON that need to be calculated. I am not having any luck passing these values into the feed. Can anyone supply any support or guidance?
Comments
Comment #1
diodata commentedHave you tried using CCK Computed field? I've done that a few times and it works fine for me. The negative is that the computed field only gets generated (computed) when the node is edited. If you have to go back and retroactively compute something, this could be a pain and probably needs to be done programmatically.
I don't think you can compute values on the fly through views. I've never been able to get that to work and likely an issue on how the view data (sql result set) gets transformed into Exhibit JSON format. Maybe someone knows of a way to fix this?
Comment #2
grdmunoz commentedI appreciate your response, I am sorry I am just getting back to this issue. I need it to calculate the value on the fly. It appears that I will have to customize the code myself to get the required functionality.