Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

PswBlock

PswBlock(cId)

Analyzes a community user-blocking call.

PswBlockAdvPL
01 · OVERVIEW

Overview

Robert Koch’s BatBlUsr selects ID order, performs PswSeek and reads PswRet before calling PswBlock with an ID when its rule requests a block. This is a concrete call, not a complete current contract. It depends on ClsSQL, ClsAviso, logging helpers and private schemas, so it is not standalone. Its history even records a parameter correction. Organization data, personnel rules and array indexes are not reproduced as an API contract. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

PswBlock(cId)

Return value

Unconfirmed; the observed caller discards it.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed601()
    // Call analysis; do not execute a block in this exercise.
    Local bBlock := {|cId| PswBlock(cId)}
    ConOut(ValType(bBlock))
Return Nil
Expected result

Only builds a block. No user is blocked. API return is unconfirmed. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Confirm permissions, auditing, SSO and an unblock procedure before acceptance testing. This example alone is insufficient for production.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Robert Koch. rAugustos/FontesProtheus, BatBlUsr.prw. Arquivo completo analisado; contexto particular e dependências identificados. 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