Usina BRAdvPL Guide
Sign in
← All topics
ENTRY POINTUnder review

FA330FLT

User Function FA330FLT()

Applies a filter before building the clearing browse.

FA330FLTFINA330
01 · OVERVIEW

Overview

The specific page documents no parameters or return. Its example applies DbSetFilter to SE1 before building the browse; its title-type expression is illustrative, not universal. Preserving workarea selection must not undo the intended filter. (Ref. 1) DanielPitthan’s GitHub example filters prefix G only for users recognized through a substring check in MV_UUSUHV. It saves/restores the workarea, but the rule and parameter are particular; substring matching is not exact permission matching. This analysis links the source without reproducing it in full. (Ref. 4)

02 · SYNTAX

Syntax

User Function FA330FLT()

Return value

Not applicable according to the page; its example ends without a value.

03 · PRACTICAL EXAMPLE

Editorial filter adapted from documentation

#Include "Protheus.ch"

User Function FA330FLT()
    // Adapted TOTVS filter; verify DH in the environment.
    Local aArea := GetArea()
    SE1->(DbSetFilter({|| E1_TIPO == "DH "}, 'E1_TIPO == "DH "'))
    SE1->(DbGoTop())
    // Restore selection/position without clearing the installed filter.
    RestArea(aArea)
Return
Expected result

Restricts the browse to the official example’s DH titles. Test before use; not run in Protheus.

04 · PRACTICAL EXAMPLE

Observed call and context

// TOTVS call catalog (ref. 3); not a hook implementation.
// FINA330 - ExecBlock("FA330FLT",.F.,.F.)
Expected result

The record shows arguments and immediate return use where present. It omits the full caller body and does not establish commit timing.

BEST PRACTICES
  • Verify environment title types and interaction with screen filters. Avoid modal dialogs in automatic execution. Do not clear the filter and cancel its intended effect.
  • A call without a fourth argument does not document a PARAMIXB layout. Preserve caller identifiers and do not invent fields or positions.
  • Test plan: compare standard and customized flows, exercise success, rejection and repetition, and inspect balances, movements and accounting as applicable.
  • Under review: example not compiled or run in Protheus. Verify aliases, locks, transaction position and compatibility in the target release and patch.

Related content

REFERENCES
  1. TOTVS. FA330FLT - Filtra dados a serem exibidos na Compensação de Contas a Receber. TDN. Accessed on 2026-10-24.
  2. EURAI. Pontos de Entrada P12.2210 - Parte 2. Universo do Desenvolvedor, 2023. Accessed on 2026-10-24.
  3. TOTVS. Pontos de Entrada - catálogo de chamadas. Accessed on 2026-10-24.
  4. DanielPitthan/Exemplos-Protheus-para-IA. Protheus/Fontes/uni_repo/HV/FA330FLT.prw. Commit 2e916160c23d301a60c3ed1ab5b31de2e0d07dc2. Consulta 2026-10-24.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR

Was this content helpful?

👍 Like 0👎 Dislike 0

Sign in to rate this article.

0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha