Histórico da Página
...
| Informações | ||
|---|---|---|
| ||
O SELECT principal da busca de beneficiários é baseado na tabela BA1.
Isso permite definir ações diferentes por beneficiário.
|
Exemplo simples de uso:
| Bloco de código | ||||||
|---|---|---|---|---|---|---|
| ||||||
#include "protheus.ch" user function PTBENANXPTBENACT() local oAttachmentscActions as object oAttachments := JsonObject():new() oAttachments["enabled"] := .T. oAttachments["required"] := .T. oAttachments["informationMessage"] := "Esta mensagem foi alterado via ponto de entrada" return oAttachments:= "'edit,block'" return cActions |
Exemplo completo com CASE WHEN:
| Bloco de código | ||||||
|---|---|---|---|---|---|---|
| ||||||
#include "protheus.ch"
user function PTBENACT()
local cQuery as character
local cHolderType := getNewPar("MV_PLCDTIT", "T") as character
cQuery := " CASE "
cQuery += " WHEN BA1.BA1_TIPUSU = '" + cHolderType + "' THEN 'edit,block' "
cQuery += " ELSE 'block' "
cQuery += " END "
return cQuery |
04. ASSUNTOS RELACIONADOS
- Não se aplica,
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas