Expecting an expression instead of end of line in if widget

Adding expressions and enclosed inside an 'if' widget, with condition set as Case.Status.Id = 'New';

true -> shows expression 1, false -> shows expression 2.

However, Expecting an expression instead of end of line error appear with the condition.

QIUYAN LI wrote:

Adding expressions and enclosed inside an 'if' widget, with condition set as Case.Status.Id = 'New';

true -> shows expression 1, false -> shows expression 2.

However, Expecting an expression instead of end of line error appear with the condition.


Can you show us a print of your IF clause ?


Probably is this : "Case.Status.Id = 'New';"


Best Regards 


Solution

QIUYAN LI wrote:

Adding expressions and enclosed inside an 'if' widget, with condition set as Case.Status.Id = 'New';

true -> shows expression 1, false -> shows expression 2.

However, Expecting an expression instead of end of line error appear with the condition.

you need to do somethink like this:

your error ocurrs because you tried to compare an Id of type "long integer" with characters of type "text". 

You have a table Case with a relation to other Table Status (i think is this your case) and you need to compare the Case.Status.Id with an another Id of the Status Table. So you have inside an expression the option to select a record of the type Status on "Entities" Tab, you just need to select the status "NEW" that you want.

Case.Status.Id=Entities.Status.New

Hope i could help you!

Best Regards,

Nuno Pereira

Solution

Like i said =)

Hi all,

Thank you for your reply.

Yup, it is a mismatch of the data type which caused this error.