Results 1 to 3 of 3

Thread: List View Delete Button

  1. #1
    marketadvantage is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Orlando, FL
    Posts
    140

    Default List View Delete Button

    I am using the following:
    Sugar 5.0.0.d
    SQL 2005
    IIS
    PHP 5.2.5
    Windows 2003

    I am attempting to remove the delete button from some of my listview pages. I have tried to create a view.list.php file and put it in the custom\modules\<mod name>\views directory. My view.liist.php contains the following code:

    <?php
    require_once('include/MVC/View/views/view.list.php');

    class cust1_IndividualsViewList extends ViewList {

    function cust1_IndividualsViewList(){
    parent::ViewList();
    }
    function display(){
    $lv = new ListViewSmarty();
    $lv->delete = false;
    }
    }
    ?>

    This displays the header info, but a blank page. I do know that if I go into the include\listview folder and modify the ListViewSmarty.php, I can change the var $delete from true to false. When I do this, of course, all of my list view pages do not contain a delete button. I would prefer to remove the delete button on a one by one basis. Any help on this would be much appreciated.

    Thanks!
    Keith Heald
    Market Advantage

  2. #2
    zecc is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    12

    Default Re: List View Delete Button

    Try this:

    PHP Code:
    <?php
    require_once('include/MVC/View/views/view.list.php');

    class 
    cust1_IndividualsViewList extends ViewList {

        function 
    cust1_IndividualsViewList(){
            
    parent::ViewList();
        }

        function 
    Display(){
            
    $this->lv->delete false;
            
    parent::Display();
        }
    }
    ?>
    See also this thread

    This isn't working for me, though.
    But maybe it will work for you.

  3. #3
    genco is offline Junior Member
    Join Date
    Aug 2008
    Posts
    1

    Default Re: List View Delete Button

    Hi to all,

    I've problem when I try to delete data from liste view, please can you help me to find the solution

    Tanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2009-10-28, 10:21 AM
  2. Unable to Delete Leads from List View after upgrade to v5.0
    By matthewfong in forum General Discussion
    Replies: 1
    Last Post: 2008-02-07, 07:28 PM
  3. New module list view delete problem
    By mcatling in forum Help
    Replies: 0
    Last Post: 2008-01-10, 03:39 PM
  4. Prospect list delete button missing
    By ldebernardini in forum Help
    Replies: 2
    Last Post: 2005-11-17, 01:45 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
  •