Results 1 to 7 of 7

Thread: help help custom fields not writing

  1. #1
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default help help custom fields not writing

    hi there

    only in my leads module is this happening.
    when i enter data just the norlmal leads info is written to the database and not the custom fields. have done all the repairs on the admin

  2. #2
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: help help custom fields not writing

    Hi,

    Did you create the fields in that instance of sugar of did you install them from a dev instance.
    Can you see the fields in the Database using phpmyadmin or some other program that will let you access the DB

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  3. #3
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: help help custom fields not writing

    hi. yes i can see the fields and if i put in information on the back end it shouws in sugar

    cheers

  4. #4
    RandyLee's Avatar
    RandyLee is offline Sugar Team Member
    Join Date
    Oct 2008
    Posts
    605

    Default Re: help help custom fields not writing

    I can't see your problem in latest release build 520f, any more information for this?

    Better Sugar, Better Life!

  5. #5
    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: help help custom fields not writing

    Quote Originally Posted by Meyer View Post
    hi there

    only in my leads module is this happening.
    when i enter data just the norlmal leads info is written to the database and not the custom fields. have done all the repairs on the admin
    Hi Meyer

    Edit the file modules/DynamicFields/DynamicField.php and add this piece of code
    PHP Code:
    $fh fopen('customfields.log.txt''w');
    fwrite($fh"query: $query\nqueryInsert: $queryInsert\n\n");
    fclose($fh); 
    just after the line
    PHP Code:
                $queryInsert .= " ) VALUES $values )"
    Try to save other records, the open the file customfields.log.txt at the root of your sugar installation.
    Try to execute the queries on phpMyAdmin. Let us know if you face any error message.

    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.

  6. #6
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: help help custom fields not writing

    hi there

    Does in need to be php admin or could it be done from sql yog as well
    because from sql yog the query went through without a problem adding the data to the tables and showing in sugar.

  7. #7
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: help help custom fields not writing

    new updated info

    One the is a relationship there is no problem updating the custom fields etc. i can change them and go crazy and it writes all changes to the database and shows in sugar.

    It is when you create a new lead that nothing happens. then you have to first at the back end enter data, after that the module works

    regards

    Paul

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. need help for writing custom script
    By subhajit in forum Developer Help
    Replies: 3
    Last Post: 2009-05-29, 12:07 PM
  2. Replies: 0
    Last Post: 2007-02-18, 07:24 PM
  3. Replies: 0
    Last Post: 2006-12-20, 11:39 PM
  4. Writing custom modules
    By wyred in forum Developer Help
    Replies: 10
    Last Post: 2006-07-03, 11:13 PM
  5. Writing into another DB from my custom module
    By ensiate in forum Developer Help
    Replies: 2
    Last Post: 2006-05-09, 03:49 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
  •