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

Thread: Custom Link or Button help

  1. #1
    Join Date
    Aug 2008
    Posts
    17

    Default Custom Link or Button help

    Is there a way to have a link or a button on the list view or the details view/?

    What i want the button to do is when the user clicks on the button it will put a "Call" into that accounts history with the date stamp.

    Is this possible.?

  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: Custom Link or Button help

    Hi phoenixfire425

    It is possible to do.
    Take a look at the file modules/Leads/metadata/detailviewdefs.php
    Look at the Convert Lead button.
    You have to create a customCode for the button you want to display and point it to an action which will put a Call into Account history.

    Let me know if you have any issue.

    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.

  3. #3
    Join Date
    Aug 2008
    Posts
    17

    Default Re: Custom Link or Button help

    Quote Originally Posted by andopes
    Hi phoenixfire425

    It is possible to do.
    Take a look at the file modules/Leads/metadata/detailviewdefs.php
    Look at the Convert Lead button.
    You have to create a customCode for the button you want to display and point it to an action which will put a Call into Account history.

    Let me know if you have any issue.

    Cheers
    ok well i found the file but i am not really sure how to make it enter the info into the account history?
    i dont know the scripting for it..

    any pointers?

  4. #4
    Join Date
    Aug 2008
    Posts
    17

    Default Re: Custom Link or Button help

    Can anyone help me on this? please.

  5. #5
    Join Date
    Aug 2008
    Posts
    17

    Default Re: Custom Link or Button help

    bump....

    this is just to keep the post alive i still need dire help on this.

    Thank You

  6. #6
    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: Custom Link or Button help

    Hi phoenixfire425

    If you want to create a new Call inside the current Account History in the background so you should create a script which create a new call, set the parent_type as 'Accounts', parent_id as id of the current account and the other fields you want to set.
    After saving the call you can redirect to the DetailView of the current account.
    This scrip should be the target of the button to be created.

    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.

  7. #7
    Join Date
    Aug 2008
    Posts
    17

    Default Re: Custom Link or Button help

    Quote Originally Posted by andopes
    Hi phoenixfire425

    If you want to create a new Call inside the current Account History in the background so you should create a script which create a new call, set the parent_type as 'Accounts', parent_id as id of the current account and the other fields you want to set.
    After saving the call you can redirect to the DetailView of the current account.
    This scrip should be the target of the button to be created.

    Cheers

    Im still clueless on how to do this...

    Ok i will tell you what i have done now..
    I have made a clickable button at the top of the page inside of the account detail.

    The button is just a copy of the Edit button but i just changed the name to "Call Report"

    When the user clicks on the "Call Report" button i want it to automatically create and entry in the account history with the time the button was clicked.

    I am very new to this so if you could give detailed instruction that would be greatly greatly greatly appreciated.

    For instance where do i put the query what files do i change ect ect ect.

    Thank You Very Very Much



    this is what i have for my "Call Report" Button

    <input title="{APP.LBL_EDIT_BUTTON_TITLE}" accesskey="{APP.LBL_EDIT_BUTTON_KEY}" class="style2" onclick="this.form.return_module.value='Accounts'; this.form.return_action.value='DetailView'; this.form.return_id.value='{ID}'; this.form.action.value='EditView'" type="submit" name="Edit2" value="Call Report" />
    Last edited by phoenixfire425; 2008-09-05 at 06:19 PM.

  8. #8
    Join Date
    Aug 2008
    Posts
    17

    Default Re: Custom Link or Button help

    bump.............

  9. #9
    Join Date
    Aug 2008
    Posts
    17

    Default Re: Custom Link or Button help

    bump....................

  10. #10
    Join Date
    Aug 2008
    Posts
    17

    Default Re: Custom Link or Button help

    can anyone help me out please.

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. Replies: 2
    Last Post: 2008-03-28, 08:25 PM
  2. Want custom link fields to create relationships
    By evilolive in forum Developer Help
    Replies: 2
    Last Post: 2008-03-27, 01:42 PM
  3. upgraded to 4.5.1e, received "Metadata for table tracker does not exist"
    By sfgeorge in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-09-03, 02:24 PM
  4. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  5. Replies: 7
    Last Post: 2006-06-06, 07:56 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
  •