PARAMIXB[1]aRotina in the P12.2210 call; the page also demonstrates caller-scoped aRotina. (Refs. 1–2)
AdvPL GuideUser Function FA330MNU()Adds menu functionality before the browse is shown.
The current page documents required return of aRotina and shows adding an action. P12.2210 receives {aRotina} and replaces aRotina with the return. The official example depends on U_TESTE(), which must exist; a menu row implements neither the action nor authorization. No useful GitHub implementation was found. (Refs. 1–2)
User Function FA330MNU()PARAMIXB[1]aRotina in the P12.2210 call; the page also demonstrates caller-scoped aRotina. (Refs. 1–2)
Array of menu items, preserving required standard actions.
#Include "Protheus.ch"
User Function FA330MNU()
// Adapt the TOTVS addition and provide the demonstration routine.
Local aMenu := AClone(PARAMIXB[1])
AAdd(aMenu,{"Diagnostic", "U_Ed330Info", 0, 0, 0, .F.})
Return aMenu
User Function Ed330Info()
// Teaching action without changing titles.
MsgInfo("FINA330 editorial menu")
Return NilAdds an action with its own routine included in the sample. Verify menu layout and compile in testing; not tested in Protheus.
// P12.2210 caller excerpt (EURAI, ref. 2); not an entry point implementation.
// FINA330.PRX - FINA330() -> AROTINA := EXECBLOCK( "FA330MNU", .F., .F., { AROTINA } )The record shows arguments and immediate return use where present. It omits the full caller body and does not establish commit timing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.