Páginas filhas
  • DT AF240BRT/AF240BRW Add filter to the browser

01. OVERVIEW

This document aims to explain the entry point AF240BRT/AF240BRW.

Note

  • It is observed that the use of the PE and its impacts on the system are the responsibility of the customer.
  • The entry point will only work and be redirected to PE AF240BRT when it is compiled with the actions to be performed (user function of entry point AF240BRT.)
  • The examples used in this documentation are for demonstration purposes only. Each customer must check what behavior they want to perform according to the scope of the entry point.



Discontinued - AF240BRW

The entry point AF240BRW had the same purpose as the PE AF240BRT, but it had its application for codebase environments - DBF and ctree({}.DTC{}).* With the modernization and advancement of technology, PE AF240BRW was in disuse with the arrival of TOPCONNECT environments.


02. EXAMPLE OF USE


Entry point AF240BRT handles the browser filter as returned by the entry point.

Manipulation of the PE in the system
IF ExistBlock("AF240BRT")
	cFilter :=ExecBlock("AF240BRT",.F.,.F.,cFilter)
	cFilter :=IIF(ValType(cFilter) == "C",cFilter,Nil)
EndIF
AF240BRT
#INCLUDE "Protheus.ch"

User Function AF240BRT()
  
    Local cFiltro  := " N1_CBASE = '0000000001' "
  
  
Return cFiltro

 



03. OTHER INFORMATION


Information

PE Parameters:

Parameter

Type

Description

Use

Mandatory

Not Applicable

Not Applicable

Not Applicable

Not Applicable

No



What should be returned:

Return

Type

Description

Mandatory

cFiltro

Character

The filter returned by the user

Yes


04. RELATED SUBJECTS

  • Not Applicable.