Calc element returns raw data from dropdown instead label

Raindog

New Member
Hi!

Then I use in calc element something like:

PHP:
return '{tablename__dropdownname}';

I get data from {tablename__dropdownname_raw}
 
Yes because dropdownname is only storing the value and not the actual label data.

You will need to do a subquery

Code:
$db =& JFactory::getDBO();
$db->setQuery("SELECT labelname FROM labeltable WHERE id = '{tablename__dropdownname_raw}'");
return $db->loadResult();
Something like that. Let us know how you get on.
 
All that talk of pigs and eggs!!!

ahh dropdowns.... I'm in dbjoin mode... not sure if that makes any difference though.

Never mind it's working for you and thats the main thing.... maybe I'll have some kip!
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top