Results 1 to 2 of 2

Thread: Flex Relate in Custom Module Doesn't Work When Searching Other Custom Modules

  1. #1
    gisse is offline Junior Member
    Join Date
    Nov 2011
    Posts
    4

    Default Flex Relate in Custom Module Doesn't Work When Searching Other Custom Modules

    Hi,

    I'm a newbie here and am having trouble with Flex Relate.

    I recently added a flex relate field in a custom module search page but it doesn't work when I try to use it to search other custom modules that are related to it. The relationships are there and the field works fine with standard modules; such as contacts and accounts, but not the custom modules.

    To get the custom modules to appear in the flex relate list I added their names to the following dropdown lists:
    - parent_type_display
    - record_type_display
    - record_type_display_notes

    This is the error that appears in the display results when i try to search:

    Warning: require_once(/usr/local/apache2/htdocs) [function.require-once]: failed to open stream: No such file or directory in /usr/local/apache2/htdocs/data/SugarBean.php on line 3210

    Fatal error: require_once() [function.require]: Failed opening required '' (include_path='/usr/local/apache2/htdocs:/usr/local/apache2/htdocs/include/..:.:../PEAR-1.1') in /usr/local/apache2/htdocs/data/SugarBean.php on line 3210

    here is the code at line 3210 of SugarBean.php:

    global $beanFiles, $beanList, $module;
    require_once($beanFiles[$beanList[$joinModule]]);
    $rel_mod = new $beanList[$joinModule]();
    $nameField = "$joinTableAlias.name";
    if (isset($rel_mod->field_defs['name']))


    Does anyone have any idea what I'm missing?

    Thanks in advance for your help.

  2. #2
    imasd is offline Junior Member
    Join Date
    Jul 2011
    Posts
    1

    Default Re: Flex Relate in Custom Module Doesn't Work When Searching Other Custom Modules

    Quote Originally Posted by gisse View Post
    Hi,

    I'm a newbie here and am having trouble with Flex Relate.

    I recently added a flex relate field in a custom module search page but it doesn't work when I try to use it to search other custom modules that are related to it. The relationships are there and the field works fine with standard modules; such as contacts and accounts, but not the custom modules.

    To get the custom modules to appear in the flex relate list I added their names to the following dropdown lists:
    - parent_type_display
    - record_type_display
    - record_type_display_notes

    This is the error that appears in the display results when i try to search:

    Warning: require_once(/usr/local/apache2/htdocs) [function.require-once]: failed to open stream: No such file or directory in /usr/local/apache2/htdocs/data/SugarBean.php on line 3210

    Fatal error: require_once() [function.require]: Failed opening required '' (include_path='/usr/local/apache2/htdocs:/usr/local/apache2/htdocs/include/..:.:../PEAR-1.1') in /usr/local/apache2/htdocs/data/SugarBean.php on line 3210

    here is the code at line 3210 of SugarBean.php:

    global $beanFiles, $beanList, $module;
    require_once($beanFiles[$beanList[$joinModule]]);
    $rel_mod = new $beanList[$joinModule]();
    $nameField = "$joinTableAlias.name";
    if (isset($rel_mod->field_defs['name']))


    Does anyone have any idea what I'm missing?

    Thanks in advance for your help.
    I have got the same problem and so solution found

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Flex Relate - Custom Modules
    By Milind811 in forum Developer Help
    Replies: 1
    Last Post: 2009-10-13, 05:06 PM
  2. Custom Module with Flex Relate field
    By rajthayi in forum Developer Help
    Replies: 3
    Last Post: 2009-06-15, 12:00 AM
  3. Replies: 3
    Last Post: 2008-08-25, 07:29 PM
  4. Relate field doesn't work in Custom module
    By Mubi in forum Downloads
    Replies: 1
    Last Post: 2008-07-08, 11:59 AM
  5. How to custom flex relate
    By arffup in forum Help
    Replies: 0
    Last Post: 2008-05-21, 10:00 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
  •