Clique com o botão direito no text field ou crie uma variável e selecione Edit Expression.
Variável = Variable Expression
($F{TSIEMP_CEP}.length() == 8 ? ($F{TSIEMP_CEP}.substring(0, 2) + "." + $F{TSIEMP_CEP}.substring(2, 5) + "-" + $F{TSIEMP_CEP}.substring(5, 8)) : "CEP INCORRETO")
Ou Máscara direto no Select:
REGEXP_REPLACE(PAR.CEP, '([[:digit:]]{5})([[:digit:]]{3})', '\1-\2') AS CEP
Bom dia amigo, fiz conforme indicado mas o relatorio não gera quando aplico este codigo
ResponderExcluirEstou vendo agora seu comentário. Lembra o erro que apresentava?
Excluir