In the query result of a Zucker report, there are values from a multi-select field like M^,^S...
Is there a way to translate them to the coresponding labels?
Thanks
In the query result of a Zucker report, there are values from a multi-select field like M^,^S...
Is there a way to translate them to the coresponding labels?
Thanks
Lagos John
Web Developer
Linux RLH 2.6
Apache 2.0
php 5.0.2
Sugar 5.1.0
Hello John,
In the SQL query SELECT statement, you use something like this for your multiselect field:
so that you SQL statement looks something like this:Code:replace(d.multiselect_c,"^,^",CHAR(13))
The above will create a carriage return between the different values so that valuea^,^valueb will appear as:Code:SELECT c.first_name, replace(d.multiselect_c,"^,^",CHAR(13)) As New FROM contacts c left join contacts_cstm d on c.id=d.id_c
valuea
valueb
Or you could use something like this to separate the value by a semicolon:
so that your values will appear asCode:replace(d.multiselect_c,"^,^", "; ")
valuea; valueb
Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks