Jump to content
Seja Membro VIP - Remova Banners de Propagandas, Tenha Liberado Qualquer Download, Além de Acessos em Áreas Exclusivas!! ×

Recommended Posts


  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  19
  • Content Per Day:  0.01
  • Reputation:   1
  • Achievement Points:  126
  • Solved Content:  0
  • Days Won:  0
  • Status:  Offline
  • Age:  28
  • Device:  Windows

Posted (edited)

Olá,

Estou criando uma Fórmula Visual (FV) para alteração de status em Movimentação Pessoal e fiquei com uma dúvida.

Incluí uma atividade CodeActivity com o código abaixo:
private void codeActivity1_ExecuteCode(object sender, System.EventArgs args)
{
this.DBS.QueryExec(@"
UPDATE VREQSUBSTITUICAO
SET RECMODIFIEDON = SYSDATE,
RECMODIFIEDBY = 'RM',
CODSTATUS = 5
WHERE IDREQ = :IDREQ"
);
}

No entanto, ao executar a Fórmula Visual na visão de Requisição Pessoal, ocorre o seguinte erro:
Houve um erro na execução da Fórmula Visual:
Quantidade de parâmetros passados para o SQL não corresponde ao esperado.

SQL:
UPDATE VREQSUBSTITUICAO SET RECMODIFIEDON = SYSDATE, RECMODIFIEDBY = 'RM', CODSTATUS = 5 WHERE IDREQ = :IDREQ

Parâmetros passados: 0
Parâmetros esperados: 1
 

Realizei dois testes:

  • Ex01: Selecionando a MP e executando a fórmula.

  • Ex02: Executando a fórmula dentro do registro da MP.

Em ambos os casos, o erro ocorre da mesma forma.

Poderiam, por gentileza, me orientar sobre como realizar a passagem desse parâmetro (:IDREQ), para que no momento da execução ele referencie automaticamente a Movimentação Pessoal selecionada?

Ex02.png

Ex01.png

Edited by Yalison Lillipuziano
Correção layout
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution

  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  19
  • Content Per Day:  0.01
  • Reputation:   1
  • Achievement Points:  126
  • Solved Content:  0
  • Days Won:  0
  • Status:  Offline
  • Age:  28
  • Device:  Windows

Posted

Pessoal, 

 

Apenas para avisar que consegui resolver, segue código em anexo com a situação corrigida.

 

Qualquer dúvida, fico à disposição.

 

Abraços!

CodeActivity - Reabertura de MP - VITAE.txt

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.