Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AnyGantt APEX chart wrong Time Format

972561Nov 5 2012 — edited Nov 16 2012
I'm trying to create an anyGantt chart within APEX but the XML keeps misconverting the time section of date. Thus, where an activity should start on 05-11-2012 15:16:17 (DD-MM-YYYY HH24:MI:SS), it actually starts on 05-11-2012 12:11:00. It seems to take the Year as the Hour and the Month as Minutes, but assigns nothing to the minutes. The Year is also random, it's either 0, 1, 12, or 13.

So say I have this Record:
ID___________NAME______________DATE_START_____________________DATE_END_____________________________DRIVERID
2____________Driving_____________21-9-2012 12:04:40_______________22-9-2012 13:05:50______________________228
And complete this statement:
SELECT null link,
t.driverid resource_id,
TRIM(r.lastname) || ', ' || r.firstname resource_name,
NULL parent_id,
t.date_start actual_start,
t.date_end actual_end
FROM "user"."gantt" t, "user"."drivers" r
WHERE r.driverid = t.driverid
The Gantt chart translates this activity to:
RESOURCE_NAME______RESOURCE_ID_______________ACTUAL_START______________ACTUAL_END
Sleeman,_Bob_________228________________________21-9-2012 *01:09:00*___________22-9-2012 *01:09:00*
Thus giving me a wrong gantt chart, as these records would overlap, and start at the wrong time.


The XML settings are as following:
<settings>
________<title_enabled="False"_/>
<outer_margin_left="0"_top="0"_right="0"_bottom="0"_/>
____<background>
__________<fill_type="Solid"_color="0xFFFFFF"_/>
__________<border_enabled="false"/>
__________<corners_type="Square"/>
____</background>
____<navigation_enabled="true"_/>
____<locale>
_______<date_time_format_week_starts_from_monday="True">
_________<months>
___________<names>Januari,Februari,Maart,April,Mei,Juni,Juli,Augustus,September,Oktober,November,December</names>
___________<short_names>Jan,Feb,Mar,Apr,Mei,Jun,Jul,Aug,Sep,Okt,Nov,Dec</short_names>
_________</months>
_________<week_days>
___________<names>Zondag,Maandag,Dinsdag,Woensdag,Donderdag,Vrijdag,Zaterdag</names>
___________<short_names>Sun,Mon,Tue,Wed,Thu,Fri,Sat</short_names>
_________</week_days>_
_______<format>
__________<full><![CDATA[%yyyy.%MM.%dd.%HH.%mm.%ss]]></full>
__________<date><![CDATA[%yyyy.%MM.%dd]]></date>
__________<time><![CDATA[%HH.%mm.%ss]]></time>
________</format>
_____</date_time_format>
____</locale>
_</settings>
I know the default format for the 24-hour notation in Oracle is "HH24" and the minute notation is "mi" and not "mm", but the notation in AnyGantt says minutes are %mm (lowercase) and months are %MM. The notation in anyGantt is different from the Oracle-notation. Who can explain this problem, and better, solve it?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 14 2012
Added on Nov 5 2012
4 comments
1,444 views