Foro pra discusão de ProcessMaker
By lbrandao
#18717
Olá, fiz uma trigger para setar uma variável. a Trigger é simples:

if (@@lblvaloro >= 5000)
// grande
{
@@ppasso = 1 ;
}

a variável ppasso não existe em lugar nenhum. recebo a seguinte mensagem:

Can't use function return value


porém se mudo a variável ppasso para dia, que tem no formulário anterior, não dá erro, conforme o exemplo abaixo:

if (@@lblvaloro >= 5000)
// grande
{
@@ppasso = 1 ;
// @@dia = 2;
}

Onde estou errando ?

Obrigado
By krlos10f
#18754
Hola lbrandao,
En el momento de ejecutar triggers al parecer estamos retornando valores distintos (int, string, float, etc, etc) los cuales estan probocando ese error.
algo asi pmToString($somfield) = 1; dejame consultar sobre este asunto
pero mientras tanto podrias probar de la siguiente forma:
Code: Select all

if (@@lblvaloro >= 5000)
// grande
{
@=ppasso = 1 ;
}
Code: Select all
$lblv = @@lblvaloro;
if ($lblv >= 5000)
// grande
{
@@ppasso = 1 ;
}
Cuentame como te fue...

The online gambling industry is booming, and with[…]

🚀 Discover the future of crypto trading with Bit e[…]

ucas personal statement help

If you want ucas personal statement help than you […]

Though Many popular NFT Marketplaces are in the cr[…]