Skip to content

Instantly share code, notes, and snippets.

@devfabriciobr
Created November 23, 2025 19:56
Show Gist options
  • Select an option

  • Save devfabriciobr/98773c34f69107b80b793f3668dadb27 to your computer and use it in GitHub Desktop.

Select an option

Save devfabriciobr/98773c34f69107b80b793f3668dadb27 to your computer and use it in GitHub Desktop.
EXCLUIR TODOS OS ITENS DO DETAILFORM
<?php
public static function onExcluirItens($param = null)
{
try
{
if(!empty($param['venda_item_venda_list___row__data']))
{
foreach($param['venda_item_venda_list___row__data'] as $rowDataCoded)
{
$rowDataDecoded = unserialize(base64_decode($rowDataCoded));
TDataGrid::removeRowById('venda_item_venda_list', $rowDataDecoded->__row__id);
}
}
}
catch (Exception $e)
{
new TMessage('error', $e->getMessage());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment