Results 1 to 2 of 2

Thread: Customization of Industry layout

  1. #1
    jtan is offline Member
    Join Date
    Aug 2008
    Posts
    10

    Default Customization of Industry layout

    Hi all,

    I just want to customize the industry entry layout in 5.0, i develp this in 4.5, but upgrade to 5.0, it does not work.

    I created 2 tables in db, one is industry and other is sub_industry, so when creating a new account, in industry filed, i want to show the industry and sub_industry with | as seprator. eg. Hotel | 4 stars.

    in 4.5 there is a editview.php, and have some if .. else. but in 5.0, i donot know where i can put these in.

    1. this is some code in editview.php to show industry, but for 5.0, donot know where can put in.
    require_once('include/QuickSearchDefaults.php');
    $qsd = new QuickSearchDefaults();
    $sqs_objects = array('parent_name' => $qsd->getQSParent(),
    'assigned_user_name' => $qsd->getQSUser(),
    'indus_display' => $qsd->getQSindustry(),
    'billing_street_name_c' => $qsd->getQSstreet(),


    );
    $quicksearch_js = $qsd->getQSScripts();
    $quicksearch_js .= '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects) . '</script>';

    2. this is the code for Add Custom Fields
    //Add Custom Fields
    require_once('modules/DynamicFields/templates/Files/EditView.php');

    $display='';
    if ($focus->sub_industry_c == '') $display=$focus->industry;
    else $display=$focus->industry.' | '.$focus->sub_industry_c;
    $xtpl->assign("INDUSTRY_DISPLAY", $display );

    3. in custom\modules\Accounts\metadata\editviewdefs.php, what can i add in codecustome,

    array (
    0 =>
    array (
    'name' => 'industry',
    'label' => 'LBL_INDUSTRY',
    'codecustom' => ''
    ),


    thks for any assistance.!

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Customization of Industry layout

    Hi Jtan.

    I answered this in your other thread: http://www.sugarcrm.com/forums/showthread.php?t=37318

    Best regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Customization of Industry layout
    By jtan in forum Developer Help
    Replies: 2
    Last Post: 2008-08-27, 03:29 PM
  2. Replies: 0
    Last Post: 2008-05-13, 09:29 AM
  3. Replies: 1
    Last Post: 2007-05-10, 06:47 PM
  4. Custom Fields and layout for Mortgage industry
    By bks3 in forum Classifieds
    Replies: 9
    Last Post: 2007-02-27, 08:59 PM
  5. BUG In Search/Edit Layout???
    By tj@estreet.com in forum Help
    Replies: 13
    Last Post: 2006-06-10, 05:43 AM

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
  •