Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

FWGetSX5

FWGetSX5(cTable, [cKey], [cIdiom]) --> aContent

Queries a generic SX5 table.

FWGetSX5AdvPL
01 · OVERVIEW

Overview

cTable identifies the generic table rather than the SX5 alias. Omitting cKey retrieves its records; supplying a key restricts lookup. Results contain branch, table, key and description. cIdiom accepts pt-br, pt-pt, en, es or ru from LIB 20190705. This callback does not query the dictionary or assume any code exists. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

FWGetSX5(cTable, [cKey], [cIdiom]) --> aContent

Parameters

cTable
CharacterRequired

Generic-table code.

cKey
CharacterOptional

Optional key.

cIdiom
CharacterOptional

Supported language under LIB version.

Return value

Array with branch, table, key and description.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed428()
    // Table and key must exist in the test dictionary.
    Local bQuery := {|cTable,cKey| FWGetSX5(cTable,cKey)}
Return Nil
Expected result

Prepared block without SX5 reads. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Check context and return before integration; the example does not replace a complete routine.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. FWGetSX5. TDN. Accessed on 2026-10-27.
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