I've put a Date control in a Basic Table but the pop-up calendar is not dening displayed when I click the icon.
onclick = "hyf.calendar.showCalendar('templatedate', 'BasicTemplateTable7');return false;"
[hr][/hr]
I think its not putting an entry in hyf.calendar.config
I've debugged the code and its failing when doing the check for the calendar entry in hyf.calendar.getCalendar (DisplayUtils.js)
onclick = "hyf.calendar.showCalendar('templatedate', 'BasicTemplateTable7');return false;"
[hr][/hr]
I think its not putting an entry in hyf.calendar.config
I've debugged the code and its failing when doing the check for the calendar entry in hyf.calendar.getCalendar (DisplayUtils.js)
RE: showCalendar not being called in Basic table
There is however a potential issue if the date field has 'Hide Field Based on Runtime Server Data?' enabled, and so is not shown in all rows of the table.
In this case you may need to manually configure the calendar config entry.
Firstly open up the generated XSL for the page (within the xsl_pool directory in the repository) and search for a script line of the form hyf.calendar.config['<field name>'] = ....
eg
hyf.calendar.config['templatedate'] = {popup: false, type: 'year_entry', hasDropDowns: false, dataFormat: 'yyyy-MM-dd HH:mm: ss'};
Copy this script line, and then insert it as a page onload custom script event.
This should resolve this type of error.
If you do go down this route, it is important to remember that you will need to manually update this custom script fragment if you ever rename the date field, or change its calendar settings.
I hope this helps.