Results 1 to 3 of 3

Thread: How to pass data from custom fields to perl script

  1. #1
    Rune Jensen is offline Junior Member
    Join Date
    Sep 2009
    Posts
    4

    Default How to pass data from custom fields to perl script

    Hello, I'm new to sugarcrm.

    SugarCRM version 5.2.0h

    I want to pass data from 3 custom fields in the contacts module editview, containing firstname, lastname and phonenumber, to a perl script when a custom search button is activated. The perl script will then take that information and search different social sites with it and return whatever information it finds to the appropiate fields.

    I used studio to add the 3 custom fields and created a button in custom/modules/ Contacts/metadata/editviewdefs.php.

    From here I'm pretty clueless on how to proceed, so my question is if that is possible?

    Any pointers would be most welcome!

  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: How to pass data from custom fields to perl script

    Hi Rune

    A perl script can be accessed just like any other php script, so you can add a javascript onclick event on button which will run an ajaxy perl request.

    Regards
    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
    Rune Jensen is offline Junior Member
    Join Date
    Sep 2009
    Posts
    4

    Default Re: How to pass data from custom fields to perl script

    Thank you for your reply!

    Could you give me a code example on how to call the perl script with the onclick event?

    In the examples I found about perl and ajax, the perl script generated the html. But I just want it to have access to the existing html in sugarcrm, is that possible?
    Last edited by Rune Jensen; 2009-09-04 at 11:18 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. pass data to popup
    By zaska in forum Help
    Replies: 1
    Last Post: 2009-06-07, 02:28 PM
  2. How to pass form data to new lead screen
    By amymicheals in forum Developer Help
    Replies: 0
    Last Post: 2007-12-28, 06:25 AM
  3. Custom fields data
    By major__tom in forum Help
    Replies: 3
    Last Post: 2006-01-23, 09:10 AM

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
  •