Results 1 to 2 of 2

Thread: Dev toolkit 0.5 - Dependant dropdowns

  1. #1
    Linnane is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    64

    Default Dev toolkit 0.5 - Dependant dropdowns

    Hi,
    Hi Trying to get a simple Dependant dropdowns to work.

    I have added new dropdowns via the DropDown editor
    e.g.

    Name: sales_stage_carIns_list
    Language:
    List Items:
    Item Name[Display Label]

    * AJL[AJL]
    * Sophie[Sophie]
    * Joe[Joe]

    I've modified the opportunity type drop down.

    Name: opportunity_type_dom
    Language:
    List Items:
    Item Name[Display Label]

    * -blank-[-blank-]
    * carInsurance[Car Insurance]
    * homeInsurance[Home Insurance]


    I've tried this and a couple variations of below: and up loaded it to "custom/modules/Opportunities/metadata/"
    I had to create the metadata folder.

    <?php
    $update_dropdown_field_defs = array(
    'opportunity_type_dom' => array(
    '' => array(
    'sales_stage_dom' => 'sales_stage_dom',
    ),
    'Car Insurance' => array(
    'sales_stage_dom' => 'sales_stage_carIns_list',
    ),
    'Home Insurance' => array(
    'sales_stage_dom' => 'sales_stage_homeIns_list',
    ),
    ),
    );
    ?>

    When I go into Create Opportunity and select either car insurance or home insurance
    There is no difference to the sales stage DD.

    I Then ftp'ed the sample "views" Directory to custom/modules/Opportunities/

    However when I connect to Create Opportunity the full page is not displayed
    and no part of the Create Opportunity form is visible.

    I've since removed this folder and its contents.

    Do I have to do something with the views files? view.edit.php, view.detail.php, etc.
    Can you give me any advice on how to resolve my issue?

    Regards
    A. Linnane

  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: Dev toolkit 0.5 - Dependant dropdowns

    Hi Linnane

    You need to set opportunity_type instead of opportunity_type_dom on metadata.
    The first array represents the mandatory fields, not their dropdowns.

    Cheers
    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. Dev toolkit not displaying dynamic panels on load
    By rjohns621 in forum Developer Help
    Replies: 3
    Last Post: 2009-10-12, 04:27 PM
  2. Dev toolkit 0.5 docs.
    By Linnane in forum Help
    Replies: 4
    Last Post: 2009-07-14, 02:12 PM
  3. VoIP SIP SDK Toolkit Home
    By pashtasuman in forum General Discussion
    Replies: 0
    Last Post: 2009-07-01, 10:43 AM
  4. How to get stages dependant fields in opportunities
    By kasperd in forum Developer Help
    Replies: 3
    Last Post: 2009-02-04, 06:10 PM

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
  •