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

Formula visual aviso simples (RESOLVIDO)


Go to solution Solved by caiiomonteiro,

Recommended Posts


  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  11
  • Content Per Day:  0.02
  • Reputation:   0
  • Achievement Points:  72
  • Solved Content:  0
  • Days Won:  0
  • Status:  Offline
  • Age:  24
  • Device:  Windows

Posted

Boa tarde!

 

Estou com um problema em uma formula visual para desenvolver um aviso que o campo Nome Social não está preenchido

 

Está retornado isso:

Fórmula Visual: 'vp.TESTEr'.
Cannot invoke method "ToString" because its target object is null.

 

Coloquei um Se/Senão para validar o campo: this.Tables["PPESSOA"]["NOMESOCIAL"].ToString().Length < 1 não deu certo e também this.Tables["PPESSOA"]["NOMESOCIAL"].ISNULL

 

Ele não consegue validar o campo do colaborador no Folha de Pagamento -> Cadastro Funcionario -> Nome Social 

 

Alguém sabe o que poderia ser?

image.png.29ca01c409fc56f538bce7df516cacbf.png


 

 


  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Content Per Day:  0.00
  • Reputation:   1
  • Achievement Points:  36
  • Solved Content:  0
  • Days Won:  1
  • Status:  Offline
  • Device:  Windows

Posted

Boa tarde @Igor Gomes, tudo bem?

Tente da seguinte forma:
this.Tables["PPESSOA"]["NOMESOCIAL"].AsString == ""

 

Att,


  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  11
  • Content Per Day:  0.02
  • Reputation:   0
  • Achievement Points:  72
  • Solved Content:  0
  • Days Won:  0
  • Status:  Offline
  • Age:  24
  • Device:  Windows

Posted

Olá bom dia! Tudo bem?

 

Realizei o teste e mesmo assim retornou o mesmo erro

 

---------------------------
RM
---------------------------

Fórmula Visual: 'vp.testeigor'.
Cannot evaluate property "AsString" because its target object is null.

---------------------------
OK   
---------------------------

 

Não está conseguindo validar esse campo, será que tem algo incorreto na formula?
 

erro.png

ese.png

formula.png


  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  11
  • Content Per Day:  0.02
  • Reputation:   0
  • Achievement Points:  72
  • Solved Content:  0
  • Days Won:  0
  • Status:  Offline
  • Age:  24
  • Device:  Windows

Posted

@Lucas Germano caso não consiga entender estou disponibilizando o arquivo da FV

formula igor.TotvsWF

  • Solution

  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  164
  • Content Per Day:  0.06
  • Reputation:   65
  • Achievement Points:  1,066
  • Solved Content:  0
  • Days Won:  26
  • Status:  Offline
  • Age:  27
  • Device:  Windows

Posted (edited)
15 minutos atrás, Igor Gomes disse:

@Lucas Germano caso não consiga entender estou disponibilizando o arquivo da FV

formula igor.TotvsWF 127.48 Kbytes · 0 downloads

Bom dia @Igor Gomes, beleza ?

Se você deseja apenas validar se o campo está vazio e estourar a mensagem, não seria melhor tornar ele obrigatório no próprio cadastro ?
 

image.png.05db867c59d7587aa18975ff280a4bdd.png

 

De qualquer forma se realmente deseja utilizar a Fórmula Visual, altera sua validação para this.Fields["NOMESOCIAL"].IsNull, sem apontar para a tabela PPESSOA... apesar desse campo pertencer a tabela PPESSOA, na Action ela não "existe"

image.png.f95e002966649ae9cfd9fd61630791ae.png

 

Edited by caiiomonteiro
inf
  • Like 1

  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  11
  • Content Per Day:  0.02
  • Reputation:   0
  • Achievement Points:  72
  • Solved Content:  0
  • Days Won:  0
  • Status:  Offline
  • Age:  24
  • Device:  Windows

Posted

Ola bom dia, @caiiomonteiro a ideia é muito boa. Mas a minha ideia que a formula visual nos colaboradores já cadastrado quando forem alterar algum cadastro dele exigir esse campo obrigatório, para que fossem se ajustando a partir da alteração cadastral na tela. Preenchimento obrigatório ficaria apenas para os casos  que fosse criados novos. 

 

Agradeço a ideia , mas mesmo assim precisaria desenvolver essa formula por conta disso.

 

 


  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  164
  • Content Per Day:  0.06
  • Reputation:   65
  • Achievement Points:  1,066
  • Solved Content:  0
  • Days Won:  26
  • Status:  Offline
  • Age:  27
  • Device:  Windows

Posted (edited)
4 minutos atrás, Igor Gomes disse:

Ola bom dia, @caiiomonteiro a ideia é muito boa. Mas a minha ideia que a formula visual nos colaboradores já cadastrado quando forem alterar algum cadastro dele exigir esse campo obrigatório, para que fossem se ajustando a partir da alteração cadastral na tela. Preenchimento obrigatório ficaria apenas para os casos  que fosse criados novos. 

 

Agradeço a ideia , mas mesmo assim precisaria desenvolver essa formula por conta disso.

 

 

Na verdade o campo obrigatório funciona para qualquer registro, novo ou existente...

De qualquer forma editei a interação anterior para ajustar a FV 


Abraços

Edited by caiiomonteiro
.
  • Thanks 1

  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  11
  • Content Per Day:  0.02
  • Reputation:   0
  • Achievement Points:  72
  • Solved Content:  0
  • Days Won:  0
  • Status:  Offline
  • Age:  24
  • Device:  Windows

Posted

Muito obrigado o auxilio meu amigo @caiiomonteiro tudo de bom para você e sua família! 

Funcionou corretamente

 

Desde sempre agradeço! 

  • 4 months later...

  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  5
  • Content Per Day:  0.02
  • Reputation:   0
  • Achievement Points:  60
  • Solved Content:  0
  • Days Won:  0
  • Status:  Offline
  • Age:  43
  • Device:  Windows

Posted
Em 23/11/2023 at 11:19, Igor Gomes disse:

Muito obrigado o auxilio meu amigo @caiiomonteiro tudo de bom para você e sua família! 

Funcionou corretamente

 

Desde sempre agradeço! 

Qual foi a solução ?

Estou com o mesmo problema só que o campo na qual preciso tornar obrigatório é um campo complementar no cadastro de produtos.

  • 6 months later...

  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  164
  • Content Per Day:  0.06
  • Reputation:   65
  • Achievement Points:  1,066
  • Solved Content:  0
  • Days Won:  26
  • Status:  Offline
  • Age:  27
  • Device:  Windows

Posted
Em 21/04/2024 at 13:06, lcdvs4 disse:

Qual foi a solução ?

Estou com o mesmo problema só que o campo na qual preciso tornar obrigatório é um campo complementar no cadastro de produtos.

Bom dia, beleza ?

Tente algo nesse sentido this.Tables["TPRDCOMPL"]["NOMEDOCAMPO"].IsNull

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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