Results 1 to 8 of 8

Thread: Change a field to be Reportable

  1. #1
    BMGOffice is offline Member
    Join Date
    Feb 2009
    Posts
    6

    Default Change a field to be Reportable

    I have created a custom module and forgot to make the field Reportable.
    How can i change it to show up in available fields when creating reports?

    Is there any way to change created fields for Required, Reportable, Importable or Audit after creating them?
    Is this possible somewhere in the database?

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Change a field to be Reportable

    goto admin>studio>custom module>fields>field name and check the audit box ... save and deploy and you're in business

  3. #3
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Change a field to be Reportable

    Since fields in modules created by the module builder are treated as if they were system generated fields this won't work.
    Go to custom/Extension/modules/yourmodule/Ext/Vardefs and create a file (e.g. reportable.php) with the following content:
    <?php
    $dictionary["Yourmodule"]["fields"]["thefield"]["reportable"] = "true";
    ?>

    Rebuild extensions. Hope it works then.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  4. #4
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Change a field to be Reportable

    Rob ... you're correct ... perhaps if I had read the bit that said "custom module" I'd have given a more accurate response

  5. #5
    BMGOffice is offline Member
    Join Date
    Feb 2009
    Posts
    6

    Default Re: Change a field to be Reportable

    Thank you. Is there any other way? Possibly to do it in the database?

  6. #6
    BMGOffice is offline Member
    Join Date
    Feb 2009
    Posts
    6

    Default Re: Change a field to be Reportable

    Would this be correct?
    I have never done this before. Does " " always mean replace with something and delete the " "? Or is sometimes is it a general/all include term?

    <?php
    $dictionary[Dist_Distribution]["fields"][distribution_zone]["reportable"] = "true";
    ?>

  7. #7
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Change a field to be Reportable

    No, it means that you should be using double quotes also for Dist_Distribution and for distribution_zone
    <?php
    $dictionary["Dist_Distribution"]["fields"]["distribution_zone"]["reportable"] = "true";
    ?>
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  8. #8
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Change a field to be Reportable

    O)r you can try another reporting module ... this making some fields reportable and others not is also a concept I never understood ... ;-)

    http://www.sugarforge.org/projects/kinamureporter/

    christian.

    Quote Originally Posted by roblaus View Post
    No, it means that you should be using double quotes also for Dist_Distribution and for distribution_zone
    <?php
    $dictionary["Dist_Distribution"]["fields"]["distribution_zone"]["reportable"] = "true";
    ?>

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2010-01-14, 02:56 PM
  2. Replies: 4
    Last Post: 2009-02-23, 12:45 PM
  3. How do i make a filed reportable?
    By gerald29 in forum General Discussion
    Replies: 7
    Last Post: 2008-09-08, 02:17 PM
  4. Replies: 1
    Last Post: 2007-05-01, 05:34 PM
  5. reportable value ??
    By aksana in forum Developer Help
    Replies: 1
    Last Post: 2006-10-18, 07:18 AM

Tags for this Thread

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
  •