> For the complete documentation index, see [llms.txt](https://nosicode.gitbook.io/faq/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nosicode.gitbook.io/faq/intermediate/how-to-hide-a-table-context-button.md).

# How to hide a table context button?

In a #table, some times you need to hide a button if the user or item is not supose to have that action, fired by the button

![Orange edit button hidden](https://4269523424-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LBVX2OMafn-xpQ5esuM%2F-LDHsgXr1xy6mZ-NDS8a%2F-LDJMB6zj9R6ul44snom%2Fimage.png?alt=media\&token=183c91e5-8a0a-4e71-9928-329250edb02f)

```java
 for(TaskServiceQuery task:taskS.queryHistoryTask()) {
TestPage.Table_1 t = new TestPage.Table_1();
t.setNum_processo(task.getProcessInstanceId());
t.setProcesso(task.getProcessDefinitionId());
t.setEtapa(Core.isNotNull(task.getName())?task.getName():task.getTaskDefinitionKey());
t.setDt_inicio_etapa(Core.ToChar(task.getStartTime(), "yyyy-MM-dd'T'HH:mm:ss","yyyy-MM-dd HH:mm:ss"));
t.setEstado(this.getStatusTask(task));
  
if(!t.getEstado().equalsIgnoreCase("terminado")) {
t.hiddenButton(view.btn_ver_etapa,view.btn_ver_processo,...);
}
data.add(t);
}
```

#### Where you can put one or many buttons to be hidden.

{% hint style="info" %}
&#x20;t.hiddenButton(view\.btn\_xxx,...);
{% endhint %}
