Results 1 to 4 of 4

Thread: Why is the Quick Create form is out of tune with the Create record/Edit form??

  1. #1
    gverma is offline Member
    Join Date
    Jul 2008
    Posts
    18

    Question Why is the Quick Create form is out of tune with the Create record/Edit form??

    Dear All,

    I would appreciate any pointers and help on this issue:

    I created a custom module and defined the edit form to look like this :



    But the corresponding Quick create form on the left hand side panel looks like this:



    why is this so? As you can see, the fields that are appearing on the Quick create Grants form are not even the fields that are seen on the edit form for Grants. Is this a known issue?

    Grants is a custom module which has a many-to-one relationship with Projects. ie. One project can have multiple grants.

    Thanks
    Gaurav
    Attached Images Attached Images   

  2. #2
    eNick is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    282

    Default Re: Why is the Quick Create form is out of tune with the Create record/Edit form??

    There are some fields that are always created when you create a module. These are inherited from the base template you base your module on "Basic", "Customer" etc.

    Fields include name, description, date modified, deleted etc. You can see them at the bottom if you go to view the fields for your module.

    By default, the module builder lets you build the edit, detail and list views. But creating your module creates many more views automatically including the search, quick create and popup.

    To amend the fields in the quick create, edit the sidecreateviewdefs.php in your module's directory.

    Nick
    T H E S U G A R R E F I N E R Y
    : : : SugarCrm Customisation and Integration Services : : :

    SugarCRM Systems Integration Partner
    Trusted with SugarCRM
    http://www.theSugarRefinery.com ::: sales@{removethis}theSugarRefinery.com

  3. #3
    gverma is offline Member
    Join Date
    Jul 2008
    Posts
    18

    Default Re: Why is the Quick Create form is out of tune with the Create record/Edit form??

    Thank you for your response, Nick. I checked out the fle and it makes sense to me. Let me experiment with it and will get back toyou with the results.

  4. #4
    gverma is offline Member
    Join Date
    Jul 2008
    Posts
    18

    Default Re: Why is the Quick Create form is out of tune with the Create record/Edit form??

    Nick, this worked out fine. I had to modify the file $SUGAR_HOME/modules/cuspk_Grants/metadata/sidecreateviewdefs.php like this:

    PHP Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

    global 
    $mod_strings;
    $viewdefs['cuspk_Grants']['SideQuickCreate'] = array(
        
    'templateMeta' => array('form'=>array('buttons'=>array('SAVE'),
                                                                          
    'button_location'=>'bottom',
                                              
    'headerTpl'=>'include/EditView/header.tpl',
                                              
    'footerTpl'=>'include/EditView/footer.tpl',
                                              ),
                                                            
    'maxColumns' => '1',
                                                            
    'panelClass'=>'none',
                                                            
    'labelsOnTop'=>true,
                                
    'widths' => array(
                                                array(
    'label' => '10''field' => '30'),
                                             ),
                            ),
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // this portion after this marker was changed. After changing the fields, the sidepanel also changed accordingly
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     
    'panels' =>array (
      
    'DEFAULT' =>
      array (
        array(^
          array(
    'name'=>'project_name''displayParams'=>array('required'=>true,'size'=>20), 'selectOnly'=>true),
        ),
        array (
          array(
    'name'=>'grant_amount','displayParams'=>array('required'=>true'size'=>20)),
        ),
        array (
          array(
    'name'=>'grant_date''displayParams'=>array('required'=>true'size'=>11'selectOnly'=>true)),
        ),
      ),

     )


    );
    ?>
    Now, the sidepanel looks like this: http://www.sugarcrm.com/forums/attac...tid=3522&stc=1
    Attached Images Attached Images  

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Customising Quick Create Form
    By jmugauri in forum Help
    Replies: 2
    Last Post: 2008-07-29, 02:33 PM
  2. Replies: 1
    Last Post: 2007-09-03, 09:44 AM
  3. Adding contact to quick create form
    By Shane0 in forum Help
    Replies: 5
    Last Post: 2007-07-12, 02:13 PM
  4. Replies: 3
    Last Post: 2007-06-13, 12:28 AM
  5. Replies: 0
    Last Post: 2007-06-08, 12:10 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
  •