Results 1 to 4 of 4

Thread: +/- Button for Data Entry

  1. #1
    sangwell is offline Junior Member
    Join Date
    Nov 2010
    Posts
    2

    Default +/- Button for Data Entry

    I am new to SguarCRM, would appreciate some help here for adding +/- button for data entry, example would be the default Email input under Account module which have this + button allowing to enter multiple entries.
    Please refer the screen shot I have shown.



    Thanks in advance.

  2. #2
    cbglobal's Avatar
    cbglobal is offline Senior Member
    Join Date
    Oct 2010
    Location
    Darmstadt
    Posts
    28

    Default Re: +/- Button for Data Entry

    Hi,
    I realized for test purposes a similar module.
    With the + button you can add new fields in a separate menu and with the - button you deleted it.
    The design in the screenshot is not very nice (it was only a test)
    Is such a solution suitable for your purposes?
    Attached Images Attached Images  
    Christiane Bender
    System Analyst
    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email:christiane.bender@devoteam.com
    http://www.devoteam.de

  3. #3
    sangwell is offline Junior Member
    Join Date
    Nov 2010
    Posts
    2

    Default Re: +/- Button for Data Entry

    That is the exact solution I am looking for. Sorry for the bad screenshot.

    Thanks.

  4. #4
    cbglobal's Avatar
    cbglobal is offline Senior Member
    Join Date
    Oct 2010
    Location
    Darmstadt
    Posts
    28

    Default Re: +/- Button for Data Entry

    Hi,
    I will explain the solution with the help of my homepage example.
    Let's assume that you want to add such a homepage on the contacts screen.
    The following things you have to do
    - Studio: add a new Textfield, e.g. 'field_homepage': Also place it under Layouts\EditView + DetailView
    - Module Builder: Generate a simple module (Type basic) and add a new field with the name 'relate_id' (This is important because this name is already used in the sugar code and will automatically store the needed contact_id).
    - Deploy the new module
    - Changes to custom\modules\Contacts\metadata\editviewdefs.php
    array (
    0 =>
    array (
    'name' => 'email1',
    'studio' => 'false',
    'label' => 'LBL_EMAIL_ADDRESS',
    ),
    /* TESTCB Homepage */
    1 =>
    array (
    'name' => 'cb_homepageurl_c',
    'customCode' => '<p><a href="index.php?module=CB_CB_Homepage&action=EditV iew&return_module=Contacts&return_action=EditView& return_id='.$_REQUEST[record].'">
    <img src="custom/modules/Contacts/Add_Button.JPG" style = "border:none;"></a><br><br>{$fields.cb_homepageurl_c.value}',
    'label' => 'LBL_CB_HOMEPAGEURL',
    ),
    /* TESTCB ENDE */
    ),
    - Logic Hook Example: custom\modules\Contacts\logic_hooks.php
    $hook_array['after_retrieve'][] = Array(1, 'getURL', 'custom/modules/Contacts/CBHomepageHandling.php','CBHomepageHandling', 'CB_getURLs');
    - Generate new file custom/modules/Contacts/CBHomepageHandling.php and implement the needed get function.

    I hope this helps you and I didn't forget something.
    Christiane Bender
    System Analyst
    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email:christiane.bender@devoteam.com
    http://www.devoteam.de

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Data entry performance issues
    By jabhawk in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2009-10-05, 07:16 PM
  2. Data Entry Job
    By gyu1456bsk in forum Feature Requests
    Replies: 0
    Last Post: 2008-09-24, 07:37 AM
  3. Data Entry Job
    By gyu1454bsk in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-09-22, 07:30 AM
  4. Data Entry - One form to create Account/Contact/Opportunity
    By grantadam in forum General Discussion
    Replies: 0
    Last Post: 2008-09-17, 02:20 PM
  5. Adding Data Entry Method when adding custom fields
    By pablo1999 in forum General Discussion
    Replies: 0
    Last Post: 2008-02-07, 05: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
  •