Results 1 to 2 of 2

Thread: Zucker and multi-select result

  1. #1
    j.lagos is offline Senior Member
    Join Date
    Sep 2008
    Location
    Athens
    Posts
    40

    Default Zucker and multi-select result

    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

  2. #2
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: Zucker and multi-select result

    Hello John,

    In the SQL query SELECT statement, you use something like this for your multiselect field:

    Code:
    replace(d.multiselect_c,"^,^",CHAR(13))
    so that you SQL statement looks something like this:

    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
    The above will create a carriage return between the different values so that valuea^,^valueb will appear as:

    valuea
    valueb

    Or you could use something like this to separate the value by a semicolon:

    Code:
    replace(d.multiselect_c,"^,^", "; ")
    so that your values will appear as
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. again: relationships and multi-select
    By mike2009 in forum Help
    Replies: 0
    Last Post: 2009-04-13, 05:54 PM
  2. Multi select import
    By madhrishi in forum Help
    Replies: 10
    Last Post: 2009-03-21, 06:53 AM
  3. Different Results from Select and Multi Select
    By dtwing in forum Developer Help
    Replies: 1
    Last Post: 2008-09-26, 02:06 AM
  4. Limit result after clicking select
    By JVWay in forum Developer Help
    Replies: 5
    Last Post: 2008-06-13, 06:48 AM
  5. Multi-select Drop down
    By webnetin in forum General Discussion
    Replies: 0
    Last Post: 2005-12-23, 02:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •