Results 1 to 5 of 5

Thread: custom code field in subpanel view

  1. #1
    akkimca's Avatar
    akkimca is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    270

    Question custom code field in subpanel view

    Hi every one..

    i dont know anyone ask this que before or not....

    i have a problem in the subpanel view...

    I have one module Product. In that i have Vendor subpanel..
    i create the one custom code named as Total Order.. so every time i add this field in subpanel is show me blank data so any one help me

    i m using sugarcrm 5.0 orc..


    thank in advance..
    Regards
    ==========================
    akkimca
    Work as Sugarcrm Freelancer
    Feel free to Find me in skype. Its my pleasure to talk with you.
    ID: akshay.biztech

  2. #2
    ros.vol is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Eastern Europe / Ukraine / Chernivtsi
    Posts
    114

    Smile Re: custom code field in subpanel view

    Hi,

    Did u just add field defiition?

    Does it exist on db?

    If not exist - how did you calculete it?
    Rostyslav Volonchuk

    SugarCRM development and customizations

  3. #3
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: custom code field in subpanel view

    This can be tiresome because custom code is not available in subpanels afaik. You should set the field with a logic hook. Make sure that the field is known by SugarCRM (extend vardefs with a non-db field). Then you can just add it to listviewdefs.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  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,335

    Default Re: custom code field in subpanel view

    Quote Originally Posted by SugarDev.net View Post
    This can be tiresome because custom code is not available in subpanels afaik. You should set the field with a logic hook. Make sure that the field is known by SugarCRM (extend vardefs with a non-db field). Then you can just add it to listviewdefs.
    SugarDev is right, and just to revamp his suggestion, the logic_hook can be the process_record.

    Kind 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
    akkimca's Avatar
    akkimca is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    270

    Question Re: custom code field in subpanel view

    Thanks for ur reply..

    Can u pls explain me how to add field with the help of logic hook ????

    I tried it but i m not getting access of subpanel.. I dont know how to add new custom field with the help of " process_record".

    Right nw i m only able to add/delete my parent module data not subpanel data

    pls help me more

    thanks in advanced
    Last edited by akkimca; 2009-07-20 at 08:53 AM.
    Regards
    ==========================
    akkimca
    Work as Sugarcrm Freelancer
    Feel free to Find me in skype. Its my pleasure to talk with you.
    ID: akshay.biztech

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. custom function call from custom code field in metadata
    By josh.sweeney in forum Developer Help
    Replies: 9
    Last Post: 2010-02-09, 09:23 PM
  2. Replies: 2
    Last Post: 2009-03-12, 12:09 PM
  3. Custom code for a custom field in default module
    By kodikarthi in forum Developer Help
    Replies: 7
    Last Post: 2009-02-19, 04:25 PM
  4. Add custom code field in subpanel view
    By akkimca in forum Help
    Replies: 1
    Last Post: 2009-02-13, 05:45 AM
  5. SubPanel Custom Code
    By mppatterson15 in forum Developer Help
    Replies: 5
    Last Post: 2008-08-05, 10: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
  •