View Poll Results: How many would consider this a useful addition to Sugar Studio?

Voters
8. You may not vote on this poll
  • Very Usefull

    6 75.00%
  • Usefull

    2 25.00%
  • Not bother

    0 0%
  • Dont know

    0 0%
Results 1 to 6 of 6

Thread: SideQuickCreate support added in Studio

  1. #1
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default SideQuickCreate support added in Studio

    The left side collapsible div that is defined by the sidecreateviewdefs.php in modules/MYMODULE/metadata/sidecreatviewdefs.php which is a copy of the file in include/SugarObjects/templates/.../metadata/sidecreateviewdefs.php always contains the same fields.
    Namely: name, description, assigned to.

    I wanted to add support for modifying this in Studio like QucikCreate, ListView ...

    I have slightly modified several files under modules/ModuleBuilder and it works display wise.
    But there is a javascript error in studio2.js

    (please see attached file)

    I have attached the SVN patch file to the 510b release code. I have been unable to track what it is I am missing to get the last part working, any sugar gurus out there?

    I guess this also should be of interest for the Sugar devs?

    UPDATE: This works now
    Here are both the SVN patch file created against the 510b release source code as well as a zip file of the entire ModuleBuilder directory under modules for those that does not have SVN. Both files are zipped in the attached file ModuleBuilder.zip

    Installation:
    1. Unzip
    2. Copy the unzipped ModuleBuilder to SUGARINSTALLATION/moduels/ overwriting the existing directory.
    3. Admin repair, both quick repair and clear template cache files (otherwise it does not seem to rebuild the ModeulBuilder language file with the new label.
    Attached Files Attached Files
    Last edited by kenneth.thorman; 2008-11-27 at 01:41 PM.

  2. #2
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: SideQuickCreate support added in Studio

    This seems to be an error in the implementation in module/ModuleBuilder/javascript/studio2.js

    line 177,178

    _write_("received for unregister: "+field.id);
    if(field==null || typeof(field) == 'undeifned'){ return; }

    I have changed this to

    if(field==null || typeof(field) == 'undefined'){
    _write_("received for unregister: field is null");
    return;
    }
    _write_("received for unregister: "+field.id);
    // if(field==null || typeof(field) == 'undeifned'){ return; }


    And it seems to work now

  3. #3
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: SideQuickCreate support added in Studio

    THIS IS FIXED AND WORKING NOW

    Here are both the SVN patch file created against the 510b release source code as well as a zip file of the entire ModuleBuilder directory under modules for those that does not have SVN.

    Installation:
    1. Unzip
    2. Copy the unzipped ModuleBuilder to SUGARINSTALLATION/moduels/ overwriting the existing directory.
    Attached Files Attached Files
    Last edited by kenneth.thorman; 2008-11-27 at 01:42 PM.

  4. #4
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: SideQuickCreate support added in Studio

    Does anyone have any input on how to allow editing of the additional settings that can be set on a field level in the sidecreateviewdefs.php, using studio when clicking on the pencil for the individual fields?

    This might be useful for studio and modulebuilder in general as well.

    Regards
    Ken

  5. #5
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: SideQuickCreate support added in Studio

    I am working on bringing the rest of the relevant named array entires in to both ModuleBuilder and Studio so you can completely avoid editing those pesky *defs files. We will use this internally for quick dev of apps on top of Sugar. If there is any interest here on the forum maybe we could join forces, or clean up the code a bit more and release it either on Sugarforge or request that this was included in core. For this to happen we need an indication first if anyone is interested?

    Regards
    Kenneth Thorman

  6. #6
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: SideQuickCreate support added in Studio

    I am definitely interested in using this and helping.
    Ultimately looking for a way to have multiple EditViews with different metadata files in Studio.

    M
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Enhanced Studio Support
    By kenshiro in forum Developer Help
    Replies: 85
    Last Post: 2011-09-13, 05:33 PM
  2. Manual merge reported for unmodified files in patches 4.5.0E/F
    By nolan_cafferky in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2006-11-08, 05:06 PM
  3. IMAP and CURL not found
    By khinester in forum Help
    Replies: 10
    Last Post: 2006-10-31, 06:24 AM
  4. Blank page after rolling back to 4.2.1
    By dave.mcl in forum Help
    Replies: 5
    Last Post: 2006-09-12, 04:16 AM
  5. Custom fields disappearing
    By wmike in forum Help
    Replies: 1
    Last Post: 2006-07-17, 06:02 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
  •