hi guys, I'm doing my To-do List MOOC and have an Input Calendar Rich Widget. When I create a new record, it works normally, but the error occurs when I try to update the date of an existed one. Can you help me tackle this ?
Hi Nguyen,
There are 2 ways to solve this problem:
1. Change this Show Time to False <= If you want DeadlineTime is Date not Date time type.
2. Change this data type to Date time and keep ShowTime property of Input_Calendar is True
Hope this helps,
Khuong
Hi @Duong Khai Nguyen ,
I think it's better to understand the error if you can upload your .oml file and people may quickly help you.
Regards,
here is my App
Hi again,
I think this is todo app so date time is important so I think approach 2 (change Date data type to Date time data type) is better choice.
Cheers,
I've fixed the issue, thank you so much Mr.Khuong.
Hi @Duong Khai Nguyen,
Have you assign any validation while saving?
Can you please share your OML. It will be helpful for us to understand better.
Deepika
Hello,
Try with setting mandatory field of Date input to false,
Komal
Hi @Komal Kumbhar ,
I am not sure if this is the right solution.
While this might fix the error, you are going to insert/ can insert an empty date(or datetime) value into the database which is not something we want in this case.
What might be the cause
- Wrong if-statement that sets the forum to invalid.
- The connectors are put wrong (if flow should be false flow and other way around).
- some other reason :)
it would indeed help if the OML is shared.
Making Is Mandatory to false doesn't mean it's wrong, if we are setting Is Mandatory to False then yes we defiantly need to add validations to Submit action,
This happened with me so I thought that might be a cause for this error.