FA330FLT
User Function FA330FLT()Applies a filter before building the clearing browse.
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)
Syntax
User Function FA330FLT()Return value
Not applicable according to the page; its example ends without a value.
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)
ReturnRestricts the browse to the official example’s DH titles. Test before use; not run in Protheus.
Observed call and context
// TOTVS call catalog (ref. 3); not a hook implementation.
// FINA330 - ExecBlock("FA330FLT",.F.,.F.)The record shows arguments and immediate return use where present. It omits the full caller body and does not establish commit timing.
- 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.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.