Calendar Block inside table records....

Hi, is there any way to add a calendar web block to a table records?

I try to insert it on a cell, but Service Studio doesn't let me...

What can i do?

Best Regards,

Diogo C S Cordeiro
Hi Diogo,

The OutSystems Platform doesn't support having webblocks inside of table records.
You'll need to implement a calendar directly in that page and place it in the table record. You can copy & paste the calendar from the widgetlibrary if you wish.
Hi Diogo,

I changed the CalendarWidget to extend the functionallity to support calendar inside table records.
1- Add the webBlock CalendarSource to all screens that need calendars. Do not add this if you are already using the webBlock Calendar.
2- Add the function CalendarWidgetInline to an expression and set all the parameters.

Oml Version: 4.0



I have the same problem with the rich calendar widget.

Altough it can be inserted in a table record the vertical positioning of the calendar gets messed up.

This seams to be happening in IE7 and IE8 only, for fireFox and Chrome works fine.

In the page of this calendar ( a patch is metioned and can be found here and explained here

I applied this patch and it seams to have solved the problem.

Here it is for you convenience:
Index: calendar.js
--- calendar.js (revision 211)
+++ calendar.js (working copy)
@@ -88,6 +88,7 @@
!/opera/i.test(navigator.userAgent) );

Calendar.is_ie5 = ( Calendar.is_ie && /msie 5\.0/i.test(navigator.userAgent) );
+Calendar.is_ie7up = ( Calendar.is_ie && parseFloat(navigator.userAgent.replace(/.*msie ([0-9]+).*/i, "$1" )) >= 7 );

/// detect Opera browser
Calendar.is_opera = /opera/i.test(navigator.userAgent);
@@ -1389,7 +1390,7 @@
var br = Calendar.getAbsolutePos(cp);
- if (Calendar.is_ie) {
+ if (Calendar.is_ie && !Calendar.is_ie7up) {
br.y += document.body.scrollTop;
br.x += document.body.scrollLeft;
} else {