Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

AXPESQUI()

AxPesqui()

Invokes interactive search in a legacy browse context.

AXPESQUI()AdvPL
01 · OVERVIEW

Overview

The AXPESQUI() page shows a call without arguments: it selects an index and accepts a search expression to position a browse. It does not replace DbSeek in noninteractive processing. Configure the option in aRotina of an already prepared browse; framework context passed to menu actions does not establish public function parameters. The page does not formalize a return. (TOTVS, n.d., ref. 1)

02 · SYNTAX

Syntax

AxPesqui()

Return value

The consulted page does not specify a return contract; the example does not use it.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function EdAxpesqu()
    Private aRotina := {}
    // Configuration fragment; requires a prepared browse and alias.
    AAdd(aRotina, {"Search", "AxPesqui", 0, 1})
Return Nil
Expected result

Defines the search option; the fragment does not start a browse. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Check dictionary indexes and expressions. For Job or REST lookups, use an appropriate data-navigation API with an explicit return.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. AXPESQUI(). TDN. Accessed on 2026-10-26.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha