This is my code button sell:-
private void setButtonSell()
{
SalesTableType salesTableType = this.currentSalesTable().type();
boolean allowDelete = salesTableType.checkDelete(false, false);//We cannot show any dialogs from the list page as is also renders on EP.
boolean allowUpdate = salesTableType.checkUpdate(false, false);
FormDataSource salesTable_ds;
// <GEERU>
boolean countryRegion_RU = SysCountryRegionCode::isLegalEntityInCountryRegion([#isoRU]);
if (countryRegion_RU)
{
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, buttonCalculateConfirmDates), canConfirmationBeUpdated);
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, buttonUpdateConfirmation), canConfirmationBeUpdated);
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, buttonProformaConfirmation), canConfirmationBeUpdated);
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, buttonProcessEventKanbans), canConfirmationBeUpdated);
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, buttonUpdateInvoice4Paym_RU), canInvoice4PaymBeUpdated);
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, buttonProformaInvoice4Paym_RU), canInvoice4PaymBeUpdated);
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, Generate), canConfirmationBeUpdated || canInvoice4PaymBeUpdated);
}
else
{
// </GEERU>
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, Generate), canConfirmationBeUpdated);
// <GEERU>
}
// </GEERU>
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, buttonJournalConfirmation), confirmationJournalExists && !this.currentSalesTable().returnItem());
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, QuotationConfirmationJournal), quotationJournalExists);
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, EditButton), allowUpdate);
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, EditInGridButton), allowUpdate);
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, EPEditButton), allowUpdate);
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, Delete), allowDelete);
salesTable_ds = this.currentSalesTable().dataSource();
if (salesTable_ds)
{
salesTable_ds.allowDelete(allowDelete);
}
// Calculate group controls
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, MultiLnDisc), !salesTableInteractionHelper.parmInterCompanyPOInvoiceMatched());
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, EndDisc), !salesTableInteractionHelper.parmInterCompanyPOInvoiceMatched());
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, SalesCreditNote), salesTableInteractionHelper.parmCanCreditNoteBeCreated());
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, TieredCharges), salesTableInteractionHelper.parmButtonTieredChargesEnabled());
// <GEERU>
if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoRU]))
{
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, buttonJournalInvoice4Paym_RU), invoice4PaymJournalExists);
}
// </GEERU>
if (isConfigurationkeyEnabled(configurationKeyNum(Retail)))
{
this.listPage().actionPaneControlEnabled(formControlStr(SalesTableListPage, MenuItemSalesPrepayment), this.currentSalesTable().SalesStatus != SalesStatus::Invoiced);
// disable multiline and total discount buttons for Retail orders
this.listPage().actionPaneControlEnabled(formControlStr(SalesTable, MultiLnDisc), !salesTableInteractionHelper.parmIsRetailOrder());
this.listPage().actionPaneControlEnabled(formControlStr(SalesTable, EndDisc), !salesTableInteractionHelper.parmIsRetailOrder());
}
}
And I restart the service also . Is there any way to hide the file full toolbar on the sales table listpage.