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

Thread: Studio Layout editor error

  1. #1
    sho
    sho is offline Junior Member
    Join Date
    Oct 2011
    Posts
    2

    Exclamation Studio Layout editor error

    Dear All,

    I am a total newbie to sugarcrm CE and I have an error in the studio layout editor for the contacts module. The rror only appears in the layout editor for the editview and detailview of the contacts module, as well as the as well as labels.

    I am using Sugar v 6.2.1(Build 6405)

    Any help or guidance is greatly appreciated.


  2. #2
    sho
    sho is offline Junior Member
    Join Date
    Oct 2011
    Posts
    2

    Default Re: Studio Layout editor error

    Anyone have any idea? Totally stuck

  3. #3
    Gilneas is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    53

    Question Re: Studio Layout editor error

    I have the same issue here. For me it seems to appear since I have added a javascript to validate telephon numbers on input.

    To add the script I used the 'customCode' attribute.

    If I remove the custom code entries I'm able to edit the layouts again.

    Maybe you also used the customCode attribute?



    Can anyone tell me why I cannot use customCode and studio together? - Did I do s.th. wrong?
    I use sugarCE version 6.2.4

  4. #4
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Studio Layout editor error

    Maybe a small syntax error so Studio can't find the end of the customCode correctly.
    What does your custom code look like?
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  5. #5
    Gilneas is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    53

    Post Re: Studio Layout editor error

    The part with my custom code looks like this:

    PHP Code:
    [..]
            array (
              
    => 
              array (
                
    'name'=> 'phone_work',
                
    'comment' => '',
                
    'lablel'=> 'LBL_PHONE_WORK',
                
    'customCode' => '<input id="phone_work" onBlur="isNumeric(document.getElementById(\'phone_work\'),\'Invalid phone number entered!\nPlease use format\ne.g. +49 (123) 456789-10\nor +49 (123) 456789 \')" name="phone_work" size="25" minlength="10" maxlength="40" type="text" title="{$fields.phone_work.value}" value="{$fields.phone_work.value}">',
              
    => 
              array (
                
    'name' => 'phone_other',
                
    'comment' => 'Other phone number for the contact',
                
    'label' => 'LBL_OTHER_PHONE',
                
    'customCode' => '<input id="phone_other" onBlur="isNumeric(document.getElementById(\'phone_work\'),\'Invalid phone number entered!\nPlease use format\ne.g. +49 (123) 456789-10\nor +49 (123) 456789 \')" name="phone_work" size="25" minlength="10" maxlength="40" type="text" title="{$fields.phone_other.value}" value="{$fields.phone_other.value}">',
              ),
            ),
    [..] 
    And it seems it is not a 100 percent the same error. The studio's displayed windows looks similar, but i get an js error:

    Code:
    Details zum Fehler auf der Webseite
    
    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
    Zeitstempel: Wed, 23 Nov 2011 14:58:07 UTC
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 26
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 20
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 20
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 26
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 26
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 28
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 28
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 30
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 30
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Zeichen
    Zeile: 16
    Zeichen: 16
    Code: 0
    URI: http://sugar/sugar/index.php?module=ModuleBuilder&action=index&type=studio
    
    
    Meldung: Ungültiges Argument.
    Zeile: 26
    Zeichen: 2484
    Code: 0
    URI: http://sugar/sugar/include/javascript/sugar_grp1_yui.js?c=1
    
    
    Meldung: Ungültiges Argument.
    Zeile: 26
    Zeichen: 2484
    Code: 0
    URI: http://sugar/sugar/include/javascript/sugar_grp1_yui.js?c=1
    Btw. code works as expected while editing a lead's phone number.

  6. #6
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Studio Layout editor error

    In your second customCode row there is a mix of 'phone_other' and 'phone_work'. All 'phone_work' ocurrences should be replaced.
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  7. #7
    Gilneas is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    53

    Default Re: Studio Layout editor error

    Okay, was a typo.
    Bute that's a functional thing, even if I correct it studio does not load labels and the layouts.

  8. #8
    Gilneas is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    53

    Default Re: Studio Layout editor error

    Think I found the solution.
    I implemented the javascript code at the top of the editviewsdef.php file. After removin it studio does not display any errors. How do I correctly implement javascript for custom code to editviewdefs.php?

    Somewhere I read somethnig about a file attribut?!?!

  9. #9
    Gilneas is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    53

    Default Re: Studio Layout editor error


  10. #10
    Gilneas is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    53

    Default Re: Studio Layout editor error


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. Error pop up in studio while editing relationship or layout
    By jagdishshirsat in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2011-02-18, 11:28 AM
  2. Replies: 6
    Last Post: 2009-10-22, 04:18 PM
  3. Replies: 4
    Last Post: 2008-06-19, 04:20 PM
  4. Studio Layout editor problem
    By cliffi in forum Developer Help
    Replies: 6
    Last Post: 2005-11-07, 10:33 PM
  5. Layout Editor
    By akyanyme in forum Help
    Replies: 3
    Last Post: 2005-02-16, 05:08 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
  •