Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: little issue with devtoolkit

  1. #1
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Default little issue with devtoolkit

    hello everyone, I have one little problem at time of hide / display custom panels
    I have devtoolkit, and I have tested it with default panels, and it works fine, but now, I have created custom panels that I need hide / display, but look like that I am doing something wrong, because it doesn't work
    this is toggle_panel_fields.php

    <?php
    PHP Code:
    $toggle_panel_fields = array(
        
    'departamento_c' => array(
                
    'termica' => array(
                    
    'lbl_email_addresses' => 1,
                ),
                
    'fotovoltaica' => array(
                    
    'lbl_address_information' => 1,
                ),
                
    'biomasa' => array(
                    
    'lbl_biomasa' => 1//CUSTOM PANEL THAT DOESN'T WORK
                
    ),
                
    'ifa' => array(
                    
    'lbl_contact_information' => 1,
                ),
                
    'iluminacion' => array(
                    
    'lbl_portal_information' => 1,
                ),
                
    'auditoria' => array(
                    
    'lbl_portal_information' => 1,
                ),
        ),
    );
    ?> 
    I have tested language.php and lbl_biomasa is properly defined...
    can anyone help me?
    thanks
    Daniel

  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: little issue with devtoolkit

    Do a Quick Repair and Rebuild to clear cache.
    Make sure panel "lbl_biomasa" is lower case in editviewdefs.php and detailviewdefs.php
    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
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Default Re: little issue with devtoolkit

    Quote Originally Posted by andopes View Post
    Do a Quick Repair and Rebuild to clear cache.
    Make sure panel "lbl_biomasa" is lower case in editviewdefs.php and detailviewdefs.php
    Hello Andopes
    Thanks for your reply, I read the manual and as it says, I wrote lbl_biomasa in lower case, and I did Quick Repair and Rebuild in the module, but it doesn't worked for me.
    I hope find the solution and when I find it I will post it here.
    Thanks so much.
    Daniel

  4. #4
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Default Re: little issue with devtoolkit

    Hey andopes, I solved it! My mistake was that I didn't treat empty value of the dropdown, so I added this code to my file and now it works
    PHP Code:
    ''=>array(
    //here I put all panels to 0
    ), 
    But I have to solve other thing, and is in detail view, where I see all panels and I want to see the panel that I chose in edit view.
    Regards
    Daniel

  5. #5
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Default Re: little issue with devtoolkit

    I have thougth that I could use some logic hook that hides some panels in detail view on depending of the value of the dropdown. What do you think?
    Have Good weekend
    Daniel

  6. #6
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Default Re: little issue with devtoolkit

    anybody could say me why are displayed all panels in detail view?
    Daniel

  7. #7
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Exclamation Re: little issue with devtoolkit

    Hello, now it works ... but not at all,in edit view is working properly, but in detail view I have an issue.
    It's strange: when I create the first record, all work properly (in edit view and detail view too), but when I create more records, in edit view it works properly, but in detail view is displayed always the same panel, that is the panel which I created in the first record
    what can be happened?
    Daniel

  8. #8
    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: little issue with devtoolkit

    This is due cached layout.
    Do a Quick Repair and Rebuild.

    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.

  9. #9
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Red face Re: little issue with devtoolkit

    Quote Originally Posted by andopes View Post
    This is due cached layout.
    Do a Quick Repair and Rebuild.

    Cheers
    Thanks for your quick reply André, but it doesn't work for me...the issue continues happening

  10. #10
    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: little issue with devtoolkit

    Test under Developer Mode and let me know what happen.

    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.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. devtoolkit despliegue
    By alexander84 in forum Español
    Replies: 1
    Last Post: 2011-10-10, 02:23 PM
  2. DevToolKit 0.7 for QuickCreate
    By anatal52 in forum Developer Help
    Replies: 2
    Last Post: 2010-07-18, 11:38 PM
  3. issue on DevToolKit 0.5 with CE 5.5 ???
    By m3suriya in forum Developer Help
    Replies: 4
    Last Post: 2010-07-15, 01:22 PM
  4. Dependent Dropdowns report issue - DevToolkit 0.7
    By eaglequartz in forum Developer Help
    Replies: 2
    Last Post: 2010-05-24, 02:15 PM
  5. Help in DevToolKit dropdowns
    By Yasso in forum Developer Help
    Replies: 11
    Last Post: 2010-03-22, 11:56 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
  •