Active
Project:
Webform MySQL Views
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
18 Mar 2011 at 20:50 UTC
Updated:
15 Feb 2023 at 02:19 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedUpon looking at this further I'm not sure this is possible since this module uses a real database view. To unserialize the select label from the webform component table you need an intermediary step, but a view pulls everything from a query immediately.
I've searched and there is no way to unserialize data from SQL statements directly so I don't think this is going to happen (unless someone smarter than me figures it out somehow).
Comment #2
investigacoes commentedSame issue here!
Comment #3
johnnydigit commentedI was poking around, looking at the various hooks, and I thought of a way this could be done, but it might be a lot of work.
Webform MySQL Views could maintain a database table called, for example, webform_views_submitted_data_cache, using hooks hook_webform_submission_insert, hook_webform_submission_update, hook_webform_submission_delete to mirror webform_submitted_data with the display data for submitted webforms.
Then, because sometimes I like having the keys, two views could be created:
- webform_views_{my_table} would reference webform_submitted_data as it does now.
- webform_views_cached_{my_table} would reference webform_views_submitted_data_cache
I was looking at the possibility of creating this code myself, but I'm new to Drupal and still getting comfortable with PHP
Comment #4
taggartj commentedok love this module! I Had the same issue with mult-select items - and needed to filter the results
as you only get the key values.
such as if the people select
a|red
b|green
1a|blue
mysql webfom views outputs . .the key values in this case (a, b, 1a ... if the dude select's thease values)
I needed to have thease options also
in my webform I had a file (image ) upload - and the out put is the file # ( I got access to this by adding a relationship in the data module to joins files.fid which then gave me access to the file..sory that is another story )
I dont know if I am right - but the following worked for me so I guess I am right.
I did the normal views things but I excluded the feilds from display with the multy select (as to still have access to them )
then I Used http://drupal.org/project/views_customfield (custom php feild)
and made a php feild using good old fastion php and used
Then made some thing like this
so this did display the "data" - i guess i could have got the data dynamicly but i did not sorry ..
then i needed to expose the filter and views gave me a text box so i needed to change that to a list select box done in a new module like so ...
Comment #5
cafuego commentedPlease have a look at the 6.x-2.x-dev release, I've started work on using the field labels as descriptions in the Views UI.
Comment #6
cafuego commented