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...

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]