Hello,
I have a daily entry app. wants the user to be able to add entries from the previous month up to the 5th of the current month.
Example: We are August 4th, the user can register an entry for the month of July. But if it's August 6, he can't catch data for the month of July.
So I put a condition in the DisplayMode of the validate button.
if (Text (_dateSelected; "[$ -fr] mmmm yyyy") <> Text (Now (); "[$ -fr] mmmm yyyy"); DisplayMode.Disabled; DisplayMode.Edit)
but how to set up the possibility for the user to record entries from the previous month until the 5th of the current month?
Thank you
Solved! Go to Solution.
@Edvhdy
Make the user select a date using a DatePicker. Then put this code in the DisplayMode of your validate button.
If(
DatePicker1.SelectedDate <= Date(Year(Today()),Month(Today()), 5)
And DatePicker1.SelectedDate >= Date(Year(Today()),Month(Today())-1, 1),
DisplayMode.Edit,
DisplayMode.View
)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
@Edvhdy
Make the user select a date using a DatePicker. Then put this code in the DisplayMode of your validate button.
If(
DatePicker1.SelectedDate <= Date(Year(Today()),Month(Today()), 5)
And DatePicker1.SelectedDate >= Date(Year(Today()),Month(Today())-1, 1),
DisplayMode.Edit,
DisplayMode.View
)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
User | Count |
---|---|
259 | |
108 | |
95 | |
57 | |
40 |