I’m trying to do an CRUD but deleting does not work. I have tried many ways.
This is my datagrid.yml file:YAML1234567891011121314151617181920212223242526272829303132333435properties:id: ~view_link:type: urlroute: b2_b_customer_importer_b2_b_customer_importer_viewparams: [ id ]update_link:type: urlroute: b2_b_customer_importer_b2_b_customer_importer_updateparams: [ id ]delete_link:type: urlroute: b2bcustomer_api_delete_b2b_customerparams:- idactions:view:type: navigatelabel: oro.grid.action.viewicon: eye-openlink: view_linkrowAction: trueupdate:type: navigatelabel: oro.grid.action.updateicon: editlink: update_linkdelete:type: deletelabel: oro.grid.action.deleteicon: trashlink: delete_link#acl_resource: b2bcustomerimporter_b2bcustomerimporter_delete
With this file, I retrieved an error “You have no permission to perform this action”, when I uncomment this line:YAML1acl_resource: b2bcustomerimporter_b2bcustomerimporter_delete
and add acl.yml file:PHP1234b2bcustomerimporter_b2bcustomerimporter_delete:type: entityclass: B2BCustomerImporterB2BCustomerImporterBundle:Agencypermission: DELETE
The delete button disapeared.
Another problem, when I try to use sapCode (an unique property of entity) instead of id (line after properties) the delete button does not work correctly, the entity disappeared for a second and appears again. Some one can tell me why? Thanks a lots.
You must be logged in to reply to this topic.