Results 1 to 8 of 8

Thread: about devtoolkit_0.5,there is blank

  1. #1
    thinktodo's Avatar
    thinktodo is offline Sugar Community Member
    Join Date
    Aug 2008
    Posts
    296

    Default about devtoolkit_0.5,there is blank

    I have installed devtoolkit_0.5,erverything is ok.

    \custom\include\utils
    there is a DevToolKit folder and DevToolKitManager.php ,DevToolKit.php files.

    \custom\modules\Opportunities\metadata\update_drop down_field_defs.php
    custom\modules\Opportunities\views\view.edit.php
    the update_dropdown_field_defs.php content as follows

    <?php
    $update_dropdown_field_defs = array(
    'opportunity_type' => array(
    '' => array(
    'lead_source' => 'Cold Call',
    ),
    'Existing Business' => array(
    'lead_source' => 'Cold Call',
    ),
    'New Business' => array(
    'lead_source' => 'Existing Customer',
    ),
    ),
    );
    ?>

    but ,when i select 'Existing Business' item,it is blank on lead_source field
    Attached Images Attached Images  
    I love sugar

  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: about devtoolkit_0.5,there is blank

    There is a miss understanding.
    The Update Dropdown extension updates a dropdown field list based on a previous selected options on another field.
    The first and second level array are right!
    But the third one no!
    It seems you want to update the content of the dropdown lead_source based on opportunity_type options selected, right?
    But you specified a single option rather than a dropdown name.
    Anyway, I have never faced this empty list before.
    Try to modify your $update_dropdown_field_defs according to this explanation and let us know.

    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.

  3. #3
    thinktodo's Avatar
    thinktodo is offline Sugar Community Member
    Join Date
    Aug 2008
    Posts
    296

    Default Re: about devtoolkit_0.5,there is blank

    yes,I want to implement that,when i select 'Existing Business' option from opportunity_type field ,then, lead_source field's option is 'Cold Call'.

    infact, the name of option the same as dropdown name.
    Attached Images Attached Images  
    I love sugar

  4. #4
    thinktodo's Avatar
    thinktodo is offline Sugar Community Member
    Join Date
    Aug 2008
    Posts
    296

    Default Re: about devtoolkit_0.5,there is blank

    could you give me a example about 'opportunity_type' and 'lead_source' ?thanks
    I love sugar

  5. #5
    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: about devtoolkit_0.5,there is blank

    The Dependent Dropdown extension does not works this way.
    It does not automatically select a specific option on secondary dropdown on selecting some specific option on mandatory dropdown.
    It only update the secondary dropdown list (without selecting anything).
    This feature you are looking for will be released soon.

    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.

  6. #6
    visaolive is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    32

    Default Re: about devtoolkit_0.5,there is blank

    I'm looking to do the same thing.

    I have a series of dropdowns that depend upon one another in the Cases Module

    Case Category
    Case Sub-Category 1
    Case Sub-Category 2
    Case Sub-Category 3

    When a user selects a value from the Case Category, it is to select a list of values from Case Sub-Category 1, and so-on.

    Here's my view.edit.php

    PHP Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');    
         
    require_once(
    'include/MVC/View/views/view.edit.php');
         
    class 
    CasesViewEdit extends ViewEdit {
                private 
    $manager;

                function 
    init($bean null$view_object_map = array()) {
                                 
    parent::init($bean$view_object_map);

                                 require_once(
    'custom/include/utils/DevToolKitManager.php');
                                 
                                 
    $this->manager = new DevToolKitManager($this);
                }

                function 
    display() {
                                 
    $this->manager->display();
                                 
    $this->ev->process();
                                 
                                 echo 
    $this->ev->display();
                }
                
                function 
    process() {
                                 
    parent::process();
                                 
    $this->manager->process();
                }
    }
    ?>
    Here's my update_dropdown_field_defs.php. Just testing out the Case Category, to Case Sub Category 1 for now.

    PHP Code:

    <?php

    $update_dropdown_field_defs 
    = array(
        
    'case_category_c' => array(
          
    '' => array(
                
    'case_subcategory1_c' => 'case_subcategory1_list',
            ),
            
    'Bus Stop' => array(
                
    'case_subcategory1_c' => 'subcategory1_BUSSTOP_list',
            ),
            
    'Routing' => array(
                
    'case_subcategory1_c' => 'subcategory1_ROUTING_list',
            ),
            
    'Safety' => array(
                
    'case_subcategory1_c' => 'subcategory1_SAFETY_list',
            ),
        ),
    );

    ?>
    But I don't see any changes on the front-end. The dropdowns don't change.

    Any ideas?

    Thanks in advance.

    Emilio

  7. #7
    visaolive is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    32

    Default Re: about devtoolkit_0.5,there is blank

    Got it working. All I needed to do was check my permissions.

    Thanks!

  8. #8
    vincx is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    12

    Default Re: about devtoolkit_0.5,there is blank

    Hi visaolive,

    I have a similiar issue, can you share with me which permissions did you changed ?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 2009-04-06, 06:01 AM
  2. Getting rid of blank tab
    By crazybeardedman in forum Help
    Replies: 12
    Last Post: 2009-02-03, 10:59 AM
  3. Blank Page
    By dventer in forum Help
    Replies: 3
    Last Post: 2008-05-16, 09:10 AM
  4. A blank (realy blank) module from module builder???
    By dogfuel in forum Developer Help
    Replies: 1
    Last Post: 2008-01-06, 01:15 PM
  5. Replies: 14
    Last Post: 2007-05-29, 11:09 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
  •