170
Views
9
Comments
[Super Placeholder] Invalid Expression : Unexpected "Input_DueDate" in expression
Question
super-placeholder
Web icon
Forge asset by Justin Babel

Hi Justin,
I cannot publish because of some TrueChange errors, and don't know how to correct them. 
I am doing the Input Validation Exercise of "Developing Outsystems Mobile Apps". (beginner)

The errors are : 
1. Invalid Expression : Unexpected 'Input_DueDate' in expression, also : 
2. Invalid Variable : Unknown variable in assign 


These errors appeared as soon as I completed Part 1 : Form Validations, instructions 1(a) to 1(h) of the exercise 

Please help??

ToDo.oml
2025-03-27 11-47-27
Ana Leal Luis

Hello Willem,

You have to put False in the input valid propertie and define an error message in input ValidationMessage.

I attach the problem solved.

Cheers,

Ana Leal

ToDo-3_Solved.oml
UserImage.jpg
Willem Norval

Hi Ana,

Thanks a lot ! You are really kind.

Let me have a look at it.

I appreciate your help

Regards

willem

UserImage.jpg
Willem Norval

Hi Ana,

Thanks - it works.

I will go back and look at the changes you made.

Thank you so much 

2025-03-27 11-47-27
Ana Leal Luis

Willem Norval wrote:

Hi Ana,

Thanks - it works.

I will go back and look at the changes you made.

Thank you so much 

Nice :)


Cheers,

Ana Leal


UserImage.jpg
Willem Norval

Hi Ana, 

I am at the end of  Input Validation Exercise and followed the instructions to the t, but get this error : "Expecting an Expression instead of end of line." The expression was done exactly as instructed . . . 

Please help

ToDo.oml
2025-03-27 11-47-27
Ana Leal Luis

Hi Willem,

what do you want validate is the id of record from input variable ToDoInput, do you understand?

Try this, ToDoInput.Id <> NullIdentifier(), what is the data type of variable ToDoInput?


I hope it was helpful,

Ana Leal


UserImage.jpg
Willem Norval

Hi Ana,

The data type of ToDoInput is ToDo.

I still get the same error   

ToDo.oml
2025-03-27 11-47-27
Ana Leal Luis

Willem Norval wrote:

Hi Ana,

The data type of ToDoInput is ToDo.

I still get the same error   

You can give me the oml, for I can see better?

Tks,

Ana Leal






2025-03-27 11-47-27
Ana Leal Luis

Sorry Willem i didn't notice that you already attach the oml.

The problem is you have a space in operator "< >" remove the space, use only "<>"


I hope it was helpful,

Ana Leal


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.