Results 1 to 3 of 3

Thread: please help - anual sales view

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

    Default please help - anual sales view

    Hi there

    i need a little help please.

    I have 2 fields in accounts.
    One a decimal and the other a dropdown

    Annual sales and active account

    I only want the field annual sales to show when active account = Active.

    How do i do that?

    Regards

    Paul

  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: please help - anual sales view

    Hi Paul

    Take a look at this thread

    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.

  3. #3
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: please help - anual sales view

    Do you mean show in the DetailView - as in annual sales should only show in the DetailView if active=active?

    If so you can simply add a CustomCode entry the the annual_sales field in custom/<module>/metadata/detalviewdefs.php - See examples in modules/Meetings/metadata/detailviewdefs.php

    The customCode will have to be something like this:
    {if $fields.active.value == "active"}$fields.annual_sales.value{/if}

    Studio will maintain the custom code so it will be perfectly safe to change the layouts with studio after doing this.

    M
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 13
    Last Post: 2007-10-04, 05:53 AM
  2. Replies: 1
    Last Post: 2007-03-02, 06:14 PM
  3. Replies: 0
    Last Post: 2006-09-14, 02:07 PM
  4. Replies: 1
    Last Post: 2006-08-17, 03:27 PM
  5. Replies: 0
    Last Post: 2006-05-04, 01:27 AM

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
  •