Results 1 to 2 of 2

Thread: iReport Checkbox

  1. #1
    Pdor is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Treviso, IT
    Posts
    41

    Default iReport Checkbox

    Hi all

    I've create a report with iReport, that contain a field that diplay a "checkbox" field of SugarCRM.
    On report, if the checkbox is select, give me result of "true".
    My question is: there is a way to display on report another "custom text" instead of "true" text???

    Thanks in advance.

  2. #2
    Markku's Avatar
    Markku is offline Sugar Community Member
    Join Date
    Nov 2004
    Location
    Helsinki
    Posts
    910

    Default Re: iReport Checkbox

    You can probably use the following example to convert true/false values to something else.

    Name of the table is "test_table" and first row contains field names.

    Code:
    name		true_false_field
    Company A 	true
    Company B 	false
    Company C   NULL
    Query:
    Code:
    Select name, 
    (case 
    when (true_false_field = "true") then "Field value is true" 
    when (true_false_field = "false") then "Field value is false"
    else "Field value is something else" end) AS true_false_field 
    from test_table
    and the result should be:
    Code:
    name 		true_false_field
    Company A 	Field value is true
    Company B 	Field value is false
    Company C 	Field value is something else

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SugarCRM, ZuckerReports and IReport Installation
    By Frizza in forum Installation and Upgrade Help
    Replies: 26
    Last Post: 2011-05-02, 04:49 PM
  2. Problem running a Zuckerreport created in iReport
    By mrmmm in forum Developer Help
    Replies: 2
    Last Post: 2009-10-14, 10:42 AM
  3. Starting iReport with SugarCRM
    By jlabuelo in forum Installation and Upgrade Help
    Replies: 9
    Last Post: 2008-07-10, 06:20 PM
  4. Checkbox fields in subpanels?
    By wesblake in forum Help
    Replies: 0
    Last Post: 2006-09-07, 12:48 AM
  5. Checkbox Issue...
    By Thierry in forum Developer Help
    Replies: 3
    Last Post: 2005-05-09, 02:22 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
  •