Month Calendar | Uniface 9 | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

sp_Feed Topic RSS sp_TopicIcon
Month Calendar
09 Jul 2018
9:44 pm
Forum Posts: 357
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Unifacers,

Noob question: how to get rid of that central square with “Select a date.” message when using a Month Calendar?

It is generated from a message having code 4800: if I define such message in another language is shown as expected…
It is staying there in the middle of the form also after having moved cursor or typed something…

Is this the functionality expected on U9.6.04?

<Confused> 🙁 …


10 Jul 2018
8:27 am
Forum Posts: 357
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi all,

I am replying to myself:
– when passing a NULL value as date input param the square with the help phrase is shown
– when passing a real date value the square is NOT shown and the calendar is positioned on the related month

IMHO when the help square is shown it should be hidden as soon as end user is doing some action on the calendar (moving with cursor, moving between month, …).


10 Jul 2018
9:02 am
Forum Posts: 1045
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Gianni,

Thanks for your findings.

The “Select a date” message will appear as long as the field has no value. Moving through the days with the cursor or moving between months will not change the field value. This can only by achieved by clicking a date in the calendar. That’s also what the doc says (see Uniface Reference > Widgets: Forms and Reports > Month Calendar):

“If the field value is empty, the widget shows the current date at the bottom of the widget, but also displays a message to Select a date.

The user can enter a date by selecting it in the control:

* To select the year, click the header. This activates a spin button to select the year.
* To select the month, click the header. This activates a drop-down list of months.
* To select the day, click the date in the calendar”

Not sure why it was chosen to do it like this. But that’s the way it currently is. Sorry.

If you want to get rid of the message then it’s best to always initialize the field with a value (e.g. $date). But you already know this.

Hope this helps.


Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online:
32 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1890

Iain Sharp: 680

Theo Neeskens: 371

gianni: 357

Adrian Gosbell: 318

istiller: 299

rogerw: 272

Knut: 229

lalitpct: 197

Arjen van Vliet: 184

Member Stats:

Guest Posters: 3

Members: 10982

Moderators: 0

Admins: 6

Forum Stats:

Groups: 1

Forums: 62

Topics: 2323

Posts: 10052

Newest Members:

greentipodent1976, NicolasHib, gipipufen1981, Alfredvax, Lesterpioto, crystalst3, otogsa12, Ramonmaw, harolddz1, Lariskawo

Administrators: admin: 23, diseli: 1045, Nico Peereboom: 84, richiet: 406, Mike Taylor: 38, JanCees: 39