Calculated fields in Exhibit JSON
grdmunoz - July 5, 2009 - 23:21
| Project: | Exhibit |
| Version: | 6.x-1.0-beta1 |
| Component: | Data sources |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
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?

#1
Have 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?
#2
I 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.