This topic is locked

If the Custome Views can not delete items?

7/19/2009 12:13:59 PM
PHPRunner General questions
L
ljmjava author

I make a "custome view" of a User table.

I choose the Delete operation's checkbox.

But when I generated the code and run it.there is no Delete button after I had add many users in that page.

So ,I want to ask if anybody meet the question as me?
I have change the situation just now.and share my way:

  1. the first,I add event in the BeforeShowList method .

    add the code : $xt->assign("delete_link",true);

    then I can saw the Delete Button in List page.

    But..... when i choose anyone and want to test the delete.

    {I set the debug is true}

    I got the SQL: delete from `user` where (id=14) and (1=0)

    Where is the (1=0) came from?

    I step into the php code.

    and finally, In the include/commonfunctions.phpfile at line number:1827.

    the function

    GetUserPermissions($table=""){
    ......
    if($table=="custome_view_user1")

    return "AES";
    }


    Haha,The permission is not set to Delete enable, maybe there is a bug? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=12356&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />

    I change it to return "AEDS";
    Everything is ok!
    I removed the $xt->assign("delete_link",true);
    now it is success to delete items in the custome view of user page.
    I use PHPRunner5.0.

J
Jane 7/20/2009

Hi,
please make sure you have set up Delete premissions for users on the User group permissionsdialog on the Securitytab.