Results 1 to 6 of 6

Thread: Wierd?? Detail View & Address Fields

  1. #1
    strongilis is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    44

    Default Wierd?? Detail View & Address Fields

    Hi there.

    I can't figure out how to make the following fields combine on ONE LINE in detail view for leads.

    Created By & Created Date
    Modified By & MOdified Date
    Address, Address City, Address State, Address Country, Address Code

    Can anyone help? I have seen this before. At the moment my detail view is showing them on seperate lines, and as individual boxes. I would like them to be on one.

    Many thanks for your help!!

    P.S.
    I am using 5.1.c SugarCRM CE, Linux, Apache, --- if that at all helps...
    Last edited by strongilis; 2009-01-11 at 04:57 AM.

  2. #2
    strongilis is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    44

    Talking Re: Wierd?? Detail View & Address Fields

    Okay I have managed to SOLVE the above. Ill post instructions here in case anyone needs it. Ill do it as soon as I get a chance. Remind me if I havent byMonday.

  3. #3
    mcduff is offline Junior Member
    Join Date
    Jan 2009
    Location
    Beautiful B.C., Canada
    Posts
    2

    Default Re: Wierd?? Detail View & Address Fields

    Hi Strongilis,

    Just wondering if you still plan on posting the procedure to get all the address info to show in one box. It used to show like that in our custom "Customer" module, but recently changed to only showing the street address. I used the history for that module (in "Studio") to roll back to a previous date, but that only worked for less than a day before it switched back to showing just the street address. Subsequent attempts to roll-back the history brought the same short-lived results.

    We are using SugarCRM CE 5.2 w/ LAMP ( PHP ver. 5.1.6)

    Thank you for any replies,

    McDuff

  4. #4
    itsteveg is offline Member
    Join Date
    Jan 2009
    Posts
    6

    Default Re: Wierd?? Detail View & Address Fields

    Bump!
    I would love to know how to display the address as a single box similarly then what is already on the standard modules.

    steveg

  5. #5
    mcduff is offline Junior Member
    Join Date
    Jan 2009
    Location
    Beautiful B.C., Canada
    Posts
    2

    Default Re: Wierd?? Detail View & Address Fields

    I managed to fix this issue by editing the “custom/modules/Custom-Module/metadata/detailviewdefs.php” file. I added the following code to the line(s) immediately below the “label” tag for both the “'name'=>shipping_address_street” and the “'name'=>billing_address_street” headings. (*"Custom-Module" should be replaced with the module name that you're trying to fix)

    'type' => 'address',
    'displayParams' =>
    array (
    'key' => 'billing (or) shipping',


    eg. before edit:

    7 =>
    array (
    0 =>
    array (
    'name' => 'billing_address_street',
    'label' => 'LBL_BILLING_ADDRESS',
    ),
    1 =>
    array (
    'name' => 'shipping_address_street',
    'label' => 'LBL_SHIPPING_ADDRESS',
    ),
    ),


    after edit:

    7 =>
    array (
    0 =>
    array (
    'name' => 'billing_address_street',
    'label' => 'LBL_BILLING_ADDRESS',
    'type' => 'address',
    'displayParams' =>
    array (
    'key' => 'billing',
    ),
    ),
    1 =>
    array (
    'name' => 'shipping_address_street',
    'label' => 'LBL_SHIPPING_ADDRESS',
    'type' => 'address',
    'displayParams' =>
    array (
    'key' => 'shipping',
    ),
    ),
    ),



    Please note that I am still new to PHP and am by no means claiming to know what I'm doing, but this seems to have fixed the problem for me. You might want to check with one of the experts to make sure this is an acceptable way to fix this issue.

    Cheers,
    McDuff
    Last edited by mcduff; 2009-01-29 at 11:20 PM.

  6. #6
    itsteveg is offline Member
    Join Date
    Jan 2009
    Posts
    6

    Default Re: Wierd?? Detail View & Address Fields

    I am looking to copy exactly what the contact module does.
    both entry & detail views show the address as a block...

    is there really no way to do this via studio? you have to edit the code?!

    hoping someone will come along with the studio solution otherwise I'll keep what I did, it's not pretty but it works.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Account address to show up in Cases Detail View
    By mylo78 in forum Developer Help
    Replies: 5
    Last Post: 2012-03-12, 12:32 PM
  2. Replies: 3
    Last Post: 2008-12-03, 05:59 AM
  3. Replies: 7
    Last Post: 2008-05-22, 10:45 PM
  4. Replies: 13
    Last Post: 2007-10-04, 05:53 AM
  5. Replies: 0
    Last Post: 2007-08-09, 06:34 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
  •