Hi druplers,
I don't know this question is asked already or not. If, then sorry for the duplicate post.
I create a module (for advance search) with search form. this form contain some checkboxes group
like "Age Group". And values under this group are "Kids, Teens, Adulsts ...."
These fields are created using form api
$options = array('Kids' => t('Kids'), 'Teens' => t('Teens'), 'Adults' => t('Adults'), 'Seniors' => t('Seniors'), 'Groups' => t('Groups'));
$form['advsrch_age'] = daladvsearch_createsel('Age Groups', 'checkboxes', $options);
"daladvsearch_createsel" is my own function that create selection list of check box. for
reference
function daladvsearch_createsel($title, $type, $options, $multiple=FALSE, $desc='') {
$sel = array(
'#title' => t($title),
'#type' => $type,
'#description' => t($desc),
'#options' => $options,
'#multiple' => $multiple,
);
return $sel;
}
I already create a content type "Project" and this age group is a cck field under Project.
Now i want to search "Projects" with all age groups.
For this, I am using views to get all form arguments and show the results. I can handle the
single fields values like textfields and select list. But I can't handle the multiple values
under one field like age group.
I can explaing more if anyone requires.
Thanks in advance.
Cheers,
Haroon
Comments
Comment #1
haroon373 commentedHey,
There is no one to answer my question.
OK,
let me describe more.
Look at the screen shot i have attached. That is the method i getting single field value. But this returns me online on single value, not multiple.
Like if i check 2-3 checkboxes, then i have to get then one by one.
but the limitation is to return only one single value, neither array, nor object.
This is what i m asking that how to handle array that views query consider is with IN() function or multiple OR condition with all values in array
Comment #2
Anonymous (not verified) commentedI don't quite understand what you're asking. Could you try explaining exactly what you're wanting, or maybe try posting in the forums instead; I'm not sure this is a Views issue...
Comment #3
esmerel commentedno response to request for more info.