Results 1 to 3 of 3

Thread: KINAMU Reporter - custom reporting fields?

  1. #1
    judgej is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    58

    Default KINAMU Reporter - custom reporting fields?

    Sorry if this is the wrong place to ask this, but I cannot find a better place to ask.

    I am running KINAMU Reporter on Sugar 6.2.0. I would like to concatenate two fields in a custom module for display in a report as a single field. I've followed the steps here:

    http://dl.sugarforge.org/kinamurepor...1.5_Part_2.pdf

    After rebuilding the Sugar install, I still cannot see my custom field for selection when creating a report.

    Is this a feature that should be available in the free version of this plugin, or is it just for the pro version? The documentation is pretty hard to navigate, and I just can't see the answer anywhere.

    -- Jason

    Edited:

    Just to add some detail, I've created the file:

    custom/Extension/module/Options/Ext/Vardefs/sugarfield_kreporter_option_label_concat.php

    The file name itself I have just made up to be unique (so maybe it is not working because it needs to follow some kind og pattern? The code is:

    <?php

    // 2011-10-14 JDJ Concatenate the option code and name into a reportable field.

    $dictionary['Options']['fields']['option_label'] = array(
    'name' => 'option_label',
    'vname' => 'LBL_OPTION_LABEL',
    'source' => 'non-db',
    'type' => 'kreporter',
    'report_data_type' => 'varchar',
    'eval' => 'CONCAT($.code, \': \', $.name)',
    );

    Where 'code' and 'name' are the two fields I would like to concatenate in my custom "options" module.
    Last edited by judgej; 2011-10-14 at 11:30 AM.

  2. #2
    judgej is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    58

    Default Re: KINAMU Reporter - custom reporting fields?

    When I do a repair, I notice that my custom code gets copied into:

    custom/modules/Options/Ext/Vardefs/vardefs.ext.php

    and the site continues to work as normal, so I guess I am putting the code into the right place.

  3. #3
    judgej is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    58

    Default Re: KINAMU Reporter - custom reporting fields?

    Silly me - I got the module name wrong. The module name had a few prefix characters to indicate it was custom and who developed it. Now with the module name corrected it works beautifully. So the code starts:

    $dictionary['XX_Options']['fields']['option_label'] = array(
    ...

    -- Jason

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Kinamu Reporter 2.6 Scheduler
    By slyzwa in forum Developer Help
    Replies: 3
    Last Post: 2012-04-30, 04:19 AM
  2. Bug in kinamu reporter
    By rakeshray in forum Developer Help
    Replies: 0
    Last Post: 2011-05-16, 02:07 PM
  3. KINAMU Reporter installation
    By rakeshray in forum Developer Help
    Replies: 2
    Last Post: 2011-03-11, 05:43 AM
  4. Kinamu Reporter Basic
    By yevrowl in forum Russian
    Replies: 2
    Last Post: 2011-01-21, 08:01 PM
  5. Trying to use Kinamu Reporter
    By anicolais in forum Help
    Replies: 3
    Last Post: 2010-04-25, 05:15 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
  •