Is it somehow possible to determine the selected part from a calendar field in this case the “aug” part.
[attachment=0]selected.png[/attachment]
If I do ```
var $selected = forms[$formName].elements[$calendarField].getSelectedText();
this message shows TypeError: Cannot find function getSelectedText in object CALENDAR because it's not text..
Regards,
Peter

The calendar field holds a Date object. So why don’t you parse the date in the dataprovider?
What are you trying to do exactly?
I’ve created a module that mimics the copy/paste popup using right mouse button
[attachment=0]copypaste_popup.png[/attachment]
this module copies and pastes everything except calendar fields or parts of the calendar field like the month description via a method,
when I use ctrl-c or ⌘-c the selected part from the calendar field is copied to the clipboard, I guess I’m looking for something the simulates the
key combination when the element type is CALENDAR.
You can indeed copy the selected text when you use COMMAND/CTRL-C shortcut but Servoy’s Calendar fields don’t provide a function to mimic this it seems.
I guess you need to file a feature request for this.
If you really REALLY need this right now you would have to use text fields and write code to mimic the behavior of Calendar fields using the onDataChange event and/or ColumnConverters and such…but that is very much a work around (and a pain).