Results 1 to 3 of 3

Thread: Programmatically change the content of dropdown

  1. #1
    Benjamin C. B. is offline Sugar Community Member
    Join Date
    Jul 2011
    Posts
    39

    Default Programmatically change the content of dropdown

    Hello !

    My SugarCRM shares data from another system (homemade). When the content of a dropdwon in this other system changes, I have to change manually the content of the corresponding dropdown in SugarCRM. Is there a way to change the content of any dropdown in SugarCRM with some kind of PHP code ? Just to clarify, I'm not only talking about labels of the dropdowns, but the hole content.

    thanks !

  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: Programmatically change the content of dropdown

    One interesting option is to turn such dropdown into a real module, and make your homemade application to update records of this module by soap.

    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
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: Programmatically change the content of dropdown

    Quote Originally Posted by andopes View Post
    One interesting option is to turn such dropdown into a real module, and make your homemade application to update records of this module by soap.

    Cheers
    Here's a dev blog post that describes the Sugar part of this, just need to have the function make the SOAP call.

    SugarCRM Developer Blog » Blog Archive » HOWTO: Have a dropdown field that get’s it’s options from a function.

    Would recommend doing some caching on the Sugar side to help the performance issues that could arise.
    John Mertic
    Sugar Community Manager

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. change a dropdown value using the bean
    By chrislynch8 in forum Developer Help
    Replies: 2
    Last Post: 2010-09-24, 11:13 AM
  2. Change Dropdown Name?
    By locchiello in forum General Discussion
    Replies: 4
    Last Post: 2009-11-23, 10:07 PM
  3. how to change dropdown to text?
    By jtan in forum Developer Help
    Replies: 1
    Last Post: 2008-08-18, 11:32 AM
  4. How to change the default dropdown value
    By rustinp77 in forum Help
    Replies: 5
    Last Post: 2007-07-02, 06:13 PM
  5. how to change the content of a dropdown dynamically
    By devasis in forum Developer Help
    Replies: 6
    Last Post: 2006-06-12, 05:01 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
  •