Results 1 to 6 of 6

Thread: Drop down in editView using custom function

  1. #1
    hiko is offline Sugar Community Member
    Join Date
    Aug 2008
    Posts
    117

    Default Drop down in editView using custom function

    Hi,

    Can we create drop down by calling custom function like in searchdefs.php in editviewdefs.php
    Code:
    'advanced_search' => array(
    							array('name' => 'assigned_user_id', 'label' => 'LBL_ASSIGNED_TO', 'type' => 'enum', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
    						),

  2. #2
    jmertic's Avatar
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    3,996

    Default Re: Drop down in editView using custom function

    Yes, this should work fine.

  3. #3
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    795

    Default Re: Drop down in editView using custom function

    I know that this function can be programmed at include/utils.php.
    Someone knows if functions for this propose could be programmed in some other custom file?
    Rafael Queiroz Gonçalves, MSc.
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Master in Computer Science

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,491

    Default Re: Drop down in editView using custom function

    Quote Originally Posted by rafael.q.g@hotmail.com View Post
    I know that this function can be programmed at include/utils.php.
    Someone knows if functions for this propose could be programmed in some other custom file?
    You can add, inside array function, the key "include" and then specify the script to be included.

    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.

  5. #5
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    795

    Smile Re: Drop down in editView using custom function

    Thank you!
    Rafael Queiroz Gonçalves, MSc.
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Master in Computer Science

  6. #6
    ambitions Guest

    Default Re: Drop down in editView using custom function

    I tried creating users dropdown in a custom module's editview by using this function...but it is not working for editview... Any idea why it is not working? Please help!

    Thanks & regards
    Ambi

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. on loadining editview call javacript function
    By rakeshray in forum Developer Help
    Replies: 5
    Last Post: 2012-02-07, 11:48 AM
  2. add row function in editview
    By hoangbao in forum Developer Help
    Replies: 1
    Last Post: 2010-09-02, 12:52 PM
  3. onchange event and javascript function in country drop down
    By sriramm in forum General Discussion
    Replies: 0
    Last Post: 2009-09-04, 03:45 AM
  4. drop down in editview
    By adaskalo in forum Developer Help
    Replies: 3
    Last Post: 2008-05-22, 09:53 AM
  5. Implement Print Function on EditView
    By emillion in forum Developer Help
    Replies: 7
    Last Post: 2007-06-28, 05:28 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
  •