where I have to write the code for the list page with query conditions for example.
if $ myfield = select * from where status = “ok”;
edit and delete button in hidden
and if else the edit and delete buttons appear? can anyone give a configuration? thanks
You may see the topic Server Events and Client Scripts → ListOptions_Load → Example 2 in the help file.
im try.
if(CurrentUserLevel()==3 && $this->status->CurrentValue ==“open” && $this->ak1bln->CurrentValue >4){
$this->ListOptions->Items[“edit”]->Visible = FALSE;
$this->ListOptions->Items[“delete”]->Visible = FALSE;
}
but conditions do not work whether on this event server can be added such logic.
thanks
You better debug by writing out your conditions, e.g.
var_dump(CurrentUserLevel(), $this->status->CurrentValue, $this->ak1bln->CurrentValue);
oke thanks im try
Try ListOptions_Rendered server event.