Posible bug  building gantt chart in apex 4

Hi fellows,
When building "Project gantt" chart in apex 4 enter the following query:
select 'null' ,
'Proyecto X' ,
1 ,
null,
sysdate ,
sysdate+10 ,
0
from dual
I picked up the parameters from the "Chart query example" and the following error displays:
*1 error has occurred*
** Invalid Gantt chart query: Wrong here:12*
Use the following syntax:
SELECT LINK, ID, TASK_NAME, START_DATE, END_DATE, STATUS FROM ...
LINK     Action Link
ID     Task ID
TASK_NAME     Text that displays along a chart task.
START_DATE     Date column that specifies the actual start date of the task.
END_DATE     Date column that specifies the actual end date of the task.
STATUS     Numeric column that specifies the percentage of progress made for the task.
or
SELECT LINK, ID, TASK_NAME, START_DATE, END_DATE, STATUS, PLANNED_START_DATE,
PLANNED_END_DATE FROM ...
LINK     Action Link
ID     Task ID
TASK_NAME     Text that displays along a chart task.
START_DATE     Date column that specifies the actual start date of the task.
END_DATE     Date column that specifies the actual end date of the task.
STATUS     Numeric column that specifies the percentage of progress made for the task.
PLANNED_START_DATE     Date column that specifies the planned start date of the task.
PLANNED_END_DATE     Date column that specifies the planned end date of the task
As you can see the parameters are diferent ¿? !, I have tried both (lots of variations) but nothing appears to work.
Is this a bug or am I wrong?.
Can u post a simple query like mine that works please?
Thx 4 your help.

Hi Marco,
Just to clarify, tryapexnow.com is running Oracle APEX 4.0 EA3, and http://apex.oracle.com is running Oracle APEX 4.0 Pre-production.
You are correct, the syntax outlined in the error message is incorrect, and I've logged bug *9799373* to track this. As a workaround, you can view sample syntax for Gantt charts on the 'Query' page of the Create wizard, in the 'Chart Query Example for Gantt' Show/Hide region below the text area for entering your chart query, and also in the Oracle APEX 4.0 User's Guide that will be available with our new release. Just in case other users hit the same issue and are unsure of the expected format:
Chart Query Examples for Project Gantt Charts:
SELECT NULL LINK,
TASK_NAME NAME,
TASK_ID ID,
NULL PARENT_ID,
START_DATE ACTUAL_START,
END_DATE ACTUAL_END,
STATUS_NUMBER PROGRESS
FROM TASKS
SELECT 'f?p=4000:2:'||:APP_SESSION||':::P2_ID:'||ID LINK
TASK_NAME NAME,
TASK_ID ID,
PARENT_TASK_ID PARENT_ID,
START_DATE ACTUAL_START,
END_DATE ACTUAL_END,
STATUS_NUMBER PROGRESS
FROM TASKS
SELECT NULL LINK,
TASK_NAME NAME,
TASK_ID ID,
NULL PARENT_ID,
START_DATE ACTUAL_START,
END_DATE ACTUAL_END,
STATUS_NUMBER PROGRESS,
START_DATE-3 PLANNED_START,
END_DATE+1 PLANNED_END
FROM TASKS
Chart Query Examples for Resource Gantt Charts:
SELECT NULL LINK,
RESOURCE_ID ID,
NULL NAME,
NULL PARENT_ID,
START_DATE ACTUAL_START,
END_DATE ACTUAL_END
FROM TASKS
SELECT 'f?p=4000:2:'||:APP_SESSION||':::P2_ID:'||ID LINK
RESOURCE_ID ID,
RESOURCE_NAME NAME,
PARENT_ID PARENT_ID,
START_DATE ACTUAL_START,
END_DATE ACTUAL_END
FROM TASKS
Thanks for reporting this issue, and I'm happy you were able to successfully generate your chart.
Regards,
Hilary

Similar Messages

  • APEX 4.0 - error building Gantt chart?

    Hi everybody
    When I build a Gantt chart in apex.oracle.com, start & end dates show no real dates, just the text 'dd.mm.rr'.
    My query follows:
    select
    null as link,
    description as task_name,
    task_id as task_id,
    null as parent_id,
    start_date as actual_start,
    end_date as actual_end,
    progress as progress
    from PENDING_TASKS;
    Any ideas?
    Oscar

    Hi Oscar,
    For Gantt charts, by default the Application Date Format will be used to format dates on your Gantt chart. If an application-level date format isn't specified and neither is a Gantt Date format, via the Chart Attributes page, then the NLS_DATE_FORMAT will be used to format dates on your Gantt chart. If you wish to define a date format via the Chart Attributes page, edit your Gantt chart, and update the "Date Format" item in the Gantt Settings region. For example, on this example on apex.oracle.com - http://apex.oracle.com/pls/apex/f?p=36648:4 - I've set the "Date Format" to *%dd.%MMM.%yy*, which uses the required AnyChart format specifiers, as outlined in AnyChart documentation, specifically in the Formatting Parameters List: http://www.anychart.com/products/anygantt/docs/users-guide/locale.html?fromtree#list.
    Post-4.0 release, I did identify an issue with the popup associated with the "Date Format" item on the Chart Attributes page, and bug 9861439 can be used to track this issue. A fix for this issue will be available in our next release, but in the meantime you can enter dates into the "Date Format" text item, ensuring you use the AnyChart format specifiers outlined in the documentation I've included a link for above e.g. *%dd.%MMM.%yy*.
    I hope this helps.
    Regards,
    Hilary

  • Gantt Charts with APEX

    Hello
    Has anybody managed to integrate Gantt Charts with APEX and got them working. I'm required to provide some similar reports.
    I understand Gantt charts are available in AnyCharts 5 but I need the XML to convert or at least a How To Do document.
    Any any other ideas would be appreciated.
    Cheers
    Ade

    Hi Ade,
    We have built an Anychart Integration Kit for APEX, if you take a look at -
    http://anychart.apex-evangelists.com
    and specifically -
    http://anychart.apex-evangelists.com/pls/apex/f?p=454:14:0:
    You'll see that anything is possible ;)
    We've concentrated on the core Anychart Functionality in the Integration Kit and will be releasing more powerful versions shortly.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Scheduling and gantt charts with Apex?

    Hi,
    Has anyone created Gantt charts using Apex?
    Also, has anyone used Apex to create schedules?
    From what I can tell, Javascript would be the language to use to add such code to an Apex app, correct?
    Regards,
    Daveio

    Leo,
    Thank you, I appreciate the help!
    An example of what I would like to do with scheduling:
    - Jobs will be entered into the application with priorities, durations, and required resources
    - The application will determine when the jobs can be started based on priority and resource availability
    - If a priority is changed the job start/finish dates should change accordingly
    This is the information I would like to have displayed on a Gantt chart. I have a text explaining several scheduling algorithms that will help make this possible but I will need to learn how to write the code into Apex.
    Dave

  • Setting Custom XML = Yes in resource gantt chart removes start & end dates

    I'm having a strange issue with a Resource Gantt chart in Apex 4.0.2.
    I built the chart using the Wizard and changed nothing from the defaults. Everything looks/acts fine on the chart when Use Custom XML = No. But I wanted to change a couple things like cell alignment and width, so I set this to Yes and modified the column attributes in the XML code. After doing so, when running the report, the values for Start Date and End Date are not showing. This is happening in both the datagrid and the tooltips, but the timeline is still showing the right information (ie a bar from start to end), so I know it still knows what the correct start and end dates are.
    Thinking I accidentally messed something up, I deleted the chart and recreated it (again, from the wizard). This time, I went back and only set Use Custom XML = Yes but did not change anything within the XML code itself. To my surprise, the dates were still missing. If I set it back to No then they reappear.
    Has anyone seen this before and/or know a way to fix it?
    Thanks,
    ~ John

    Hej John,
    APEX itself is using a field substitution "&DATE_FORMAT." to insert the date format into the XML file. This field substituion is used in may location in the default XML. APEX standard action is to substitute it with the value specified in the Gantt Setting "Date Format". This substitution takes place many places in the default XML file.
    Enabling custum XLM also means disabling APEX XML handling, the substitution does not take place, the "&DATE_FORMAT." contains in this case a null value.
    The default XML file, which can be viewed in apex developer mode, looks like:
    Start Date: {%ActualStart}{dateTimeFormat:&DATE_FORMAT.}
    The runtime XML, which can be viewed in debug mode, contains something like:
    Start Date: {2011.07.21 00:00:00}{dateTimeFormat:}
    ...a null value is not a valid AnaGantt date format.
    Two solutions:
    a) insert a correct AnyGannt date formatter in the custom XML like
    Start Date: {%ActualStart}{dateTimeFormat%YYYY.%MM.%dd %HH:%mm:%SS}
    or
    b) create a field DATE_FORMAT on page containg the chart and intialize it with the AnyGantt date formatter like %YYYY.%MM.%dd %HH:%mm:%SS".
    When running the page the substitution will take place usually.
    Regards,
    Benny

  • Gantt Chart Data not getting pouplated

    Hello,
    I am using Gantt charts in apex for showing up large data.
    I am following this method to store huge data which is in xml(more than 32k) into a page item. (http://apex.oracle.com/pls/otn/f?p=35254:5:877211585824396::NO).
    I set my session state like APEX_UTIL.set_session_state (p_name => 'P10_DATA', p_value => APEX_APPLICATION.g_x01) and pass this item into gantt chart
    The problem i am facing is that even though i see that the value of P10_DATA is populated with all the data during debugging, upon opening session and checking the item's value, it displays null !!!
    Note:For data with less than 32k, Gantt chart loads correctly and the item's value gets saved.
    Anyine please help me with this..
    Regards,
    Uday

    Hello,
    I am using Gantt charts in apex for showing up large data.
    I am following this method to store huge data which is in xml(more than 32k) into a page item. (http://apex.oracle.com/pls/otn/f?p=35254:5:877211585824396::NO).
    I set my session state like APEX_UTIL.set_session_state (p_name => 'P10_DATA', p_value => APEX_APPLICATION.g_x01) and pass this item into gantt chart
    The problem i am facing is that even though i see that the value of P10_DATA is populated with all the data during debugging, upon opening session and checking the item's value, it displays null !!!
    Note:For data with less than 32k, Gantt chart loads correctly and the item's value gets saved.
    Anyine please help me with this..
    Regards,
    Uday

  • Anychart Flash Gantt Chart

    Does anyone know how to install and use Anychart Flash Gantt Chart in APEX?
    Thanks.
    Andy

    Andy,
    You'll need to create a stored procedure (like the one that APEX's built-in Flash charts use) or an application level process that returns XML for your chart. I don't know the Gantt chart XML format, but I assume that most of it will be static, and the rest will be dynamical based on a SQL query. Take a look at the XML format on anychart.com to see what the basic template will be.
    - Marco

  • Resource Gantt Chart with Multiple Series (Apex 4.1.1)

    Hi,
    I am building a resource gantt and I want to show different types of entry in different colours.
    My series query is:
    select null,
    time_record_id,
    username,
    null,
    to_timestamp(to_char(event_date + (start_time/24),'YYYY-MM-DD HH24:MI'),'YYYY-MM-DD HH24:MI') start_date,
    to_timestamp(to_char(event_date + (end_time /24),'YYYY-MM-DD HH24:MI'),'YYYY-MM-DD HH24:MI') end_date
    from
    oly_time_record
    where
    work_code = 'OFFICE'
    order by 5, 3;which works well to show me the times when a user is going to be in the OFFICE.
    I now want to add additional bars to the chart that shows me the times that a user is going to be 'WORKFROMHOME'.
    The 'OFFICE' time should show Green bars and the 'WORKFROMHOME' should show Red Bars.
    This is quite easy on normal charts, where you can add extra series but the Resource Gantt does not seem to allow more than one series.
    Does anyone have any ideas about how I can get what I need?
    Thanks,
    Martin

    Hi Martin,
    there are a lot of examples of gantt charts in this forum.
    Take a look here:
    http://apex.oracle.com/pls/apex/f?p=36648:60
    Markus

  • How to build a gantt chart with BI Publisher

    Hi everybody, I need to create a gantt chart with BI Publisher. I had a look to the document "Getting Gantty" from the blog:
    http://blogs.oracle.com/xmlpublisher/2008/01/getting_gantty.html
    but I don't understand in which way:
    1. build the data template in order to replicate the XML code in the article
    2. build and link the yellow bar which dynamically increases its length according to the meeting duration
    Anybody already tried to implement something similar ? I didn't still found a real example about how to do it......
    I need a help, please
    Thanks in Advance
    Alex

    Yes that is the only option which we can stop a running report in BI Publisher
    I suspect you'll need to ask your DBA to kill the session.
    However, if you have DBA privileges yourself, you can do this by a few methods, some of which are described here:
    http://www.oracle-base.com/articles/misc/KillingOracleSessions.php
    Mark if helps,
    Thanks,

  • APEX 4.0.2 Project Gantt Chart - Error Code: 2002 Message: Empty input

    Hi
    I have created a brand new page containing a Project Gantt Chart region. The Gantt chart is designed to track the progress of a job over time. The page has one chart series containing the following SQL.
    SELECT null LINK,
    stage NAME,
    rownum ID,
    null PARENT_ID,
    trunc(start_date) ACTUAL_START,
    trunc(completion_date) ACTUAL_END,
    decode(completion_date, null, 0, 100) PROGRESS
    FROM tracking
    WHERE job_reference = '889343'
    This SQL statement returns values from SQL Developer and from the SQL Workshop > SQL Commands from within APEX itself.
    The problem is that when I run the page the following error displays inside the region
    Category: 2000
    Error code: 2002
    Message: Empty input
    Environment Information
    Application Express 4.0.2.00.07. - Clean installation not upgraded from APEX 3
    Using Firefox 3.6.15
    Issue identical in IE
    DB version - Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    I'm really stuck so I hope someone can help me out. I really would appreciate it.
    Thanks
    Kylie

    Debug mode doesn't appear to have picked anything up that looks out of the ordinary to me or raises any alarm bells.
    This is the XML with a reduced number of records returned.
    <anygantt>

    <settings>

    <title align="Center" position="Top">
    <text>Resources Gantt</text>

    <font_style>
    <font face="Tahoma" size="2" color="0x000000"/>
    </font_style>
    </title>
    <outer_margin left="0" top="0" right="0" bottom="0"/>

    <background>
    <fill type="Solid" color="0xffffff" opacity="0"/>
    <border enabled="false"/>
    <corners type="Square"/>
    </background>
    <navigation enabled="true"/>

    <locale>

    <date_time_format week_starts_from_monday="True">

    <months>

    <names>
    January,February,March,April,May,June,July,August,September,October,November,December
    </names>
    <short_names>Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec</short_names>
    </months>

    <week_days>

    <names>
    Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
    </names>
    <short_names>Sun,Mon,Tue,Wed,Thu,Fri,Sat</short_names>
    </week_days>

    <format>
    <full>%yyyy.%MM.%dd.%HH.%mm.%ss</full>
    <date>%yyyy.%MM.%dd</date>
    <time>%HH.%mm.%ss</time>
    </format>
    </date_time_format>
    </locale>
    </settings>

    <datagrid enabled="true">

    <columns>

    <column width="40" cell_align="Center">

    <header>
    <text>ID</text>
    </header>
    <format>{%ID}</format>
    </column>

    <column attribute_name="Name" width="180" cell_align="Center">

    <header>
    <text>Name</text>
    </header>
    <format>{%Name}</format>
    </column>

    <column attribute_name="ActualStart" width="80" cell_align="Center">

    <header>
    <text>Start Date</text>
    </header>
    <format>{%ActualStart}{dateTimeFormat:%dd-%MMM-%yyyy}</format>
    </column>

    <column attribute_name="ActualEnd" width="80" cell_align="Center">

    <header>
    <text>End Date</text>
    </header>
    <format>{%ActualEnd}{dateTimeFormat:%dd-%MMM-%yyyy}</format>
    </column>
    </columns>
    </datagrid>

    <timeline>
    <plot line_height="30" item_height="15" item_padding="5"/>
    </timeline>

    <styles>

    <period_styles>

    <period_style name="defaultStyle">

    <tooltip enabled="true">

    <text>
    Task: {%Name}
    Start Date: {%ActualStart}{dateTimeFormat:%dd-%MMM-%yyyy}
    End Date: {%ActualEnd}{dateTimeFormat:%dd-%MMM-%yyyy}
    Complete: {%Complete}%
    </text>
    <font color="Black"/>
    </tooltip>

    <bar_style>

    <middle shape="Full">
    <fill enabled="true" type="Solid" opacity="0.8" color="0x1D8BD1"/>
    <border enabled="true" type="Solid" color="Black"/>
    </middle>

    <states>

    <hover>

    <middle>
    <border enabled="true" type="Solid" color="Red"/>
    </middle>
    </hover>
    </states>

    <start>

    <marker type="Rhomb">
    <fill enabled="true" type="Solid" opacity="0.8" color="0x1D8BD1"/>
    <border enabled="true" type="Solid" color="Black"/>
    </marker>
    </start>

    <end>

    <marker type="Rhomb">
    <fill enabled="true" type="Solid" opacity="0.8" color="0x1D8BD1"/>
    <border enabled="true" type="Solid" color="Black"/>
    </marker>
    </end>
    </bar_style>
    </period_style>
    </period_styles>

    <task_styles>

    <task_style name="defaultStyle">

    <tooltip enabled="true">

    <text>
    Task: {%Name}
    Start Date: {%ActualStart}{dateTimeFormat:%dd-%MMM-%yyyy}
    End Date: {%ActualEnd}{dateTimeFormat:%dd-%MMM-%yyyy}
    Complete: {%Complete}%
    </text>
    <font color="Black"/>
    </tooltip>

    <row_datagrid>

    <tooltip enabled="true">

    <text>
    Task: {%Name}
    Start Date: {%ActualStart}{dateTimeFormat:%dd-%MMM-%yyyy}
    End Date: {%ActualEnd}{dateTimeFormat:%dd-%MMM-%yyyy}
    Complete: {%Complete}%
    </text>
    <font color="Black"/>
    </tooltip>
    </row_datagrid>

    <actual>

    <bar_style>

    <middle shape="Full">
    <fill enabled="true" type="Solid" opacity="0.8" color="0x1D8BD1"/>
    <border enabled="true" type="Solid" color="Black"/>
    </middle>

    <states>

    <hover>

    <middle>
    <border enabled="true" type="Solid" color="Red"/>
    </middle>
    </hover>
    </states>

    <start>

    <marker type="Rhomb">
    <fill enabled="true" type="Solid" opacity="0.8" color="0x1D8BD1"/>
    <border enabled="true" type="Solid" color="Black"/>
    </marker>
    </start>

    <end>

    <marker type="Rhomb">
    <fill enabled="true" type="Solid" opacity="0.8" color="0x1D8BD1"/>
    <border enabled="true" type="Solid" color="Black"/>
    </marker>
    </end>
    </bar_style>
    </actual>

    <progress>

    <bar_style>

    <middle shape="Full">
    <fill enabled="true" type="Solid" opacity="0.8" color="0xF1683C"/>
    <border enabled="true" type="Solid" color="Black"/>
    </middle>

    <start>

    <marker type="Rhomb">
    <fill enabled="true" type="Solid" opacity="0.8" color="0xF1683C"/>
    <border enabled="true" type="Solid" color="Black"/>
    </marker>
    </start>

    <end>

    <marker type="Rhomb">
    <fill enabled="true" type="Solid" opacity="0.8" color="0xF1683C"/>
    <border enabled="true" type="Solid" color="Black"/>
    </marker>
    </end>
    </bar_style>
    </progress>

    <baseline>

    <bar_style>

    <middle shape="Full">
    <fill enabled="true" type="Solid" opacity="0.8" color="0x2AD62A"/>
    <border enabled="true" type="Solid" color="Black"/>
    </middle>

    <start>

    <marker type="Rhomb">
    <fill enabled="true" type="Solid" opacity="0.8" color="0x2AD62A"/>
    <border enabled="true" type="Solid" color="Black"/>
    </marker>
    </start>

    <end>

    <marker type="Rhomb">
    <fill enabled="true" type="Solid" opacity="0.8" color="0x2AD62A"/>
    <border enabled="true" type="Solid" color="Black"/>
    </marker>
    </end>
    </bar_style>
    </baseline>
    </task_style>
    </task_styles>

    <resource_styles>

    <resource_style>

    <row_datagrid>

    <tooltip enabled="true">

    <text>
    Task: {%Name}
    Start Date: {%ActualStart}{dateTimeFormat:%dd-%MMM-%yyyy}
    End Date: {%ActualEnd}{dateTimeFormat:%dd-%MMM-%yyyy}
    Complete: {%Complete}%
    </text>
    <font color="Black"/>
    </tooltip>
    </row_datagrid>
    </resource_style>
    </resource_styles>

    <defaults>

    <task>

    <task_style>

    <row_datagrid>

    <tooltip enabled="true">

    <text>
    Task: {%Name}
    Start Date: {%ActualStart}{dateTimeFormat:%dd-%MMM-%yyyy}
    End Date: {%ActualEnd}{dateTimeFormat:%dd-%MMM-%yyyy}
    Complete: {%Complete}%
    </text>
    <font color="Black"/>
    </tooltip>
    </row_datagrid>
    </task_style>
    </task>
    </defaults>
    </styles>

    <project_chart>

    <tasks>
    <task id="1" parent="" name="STAGE1" actual_start="2010.08.11 12.08.00" actual_end="" progress="0" style="defaultStyle"/>
    <task id="2" parent="" name="STAGE2" actual_start="" actual_end="" progress="0" style="defaultStyle"/>
    <task id="3" parent="" name="STAGE3" actual_start="2010.07.27 12.07.00" actual_end="2010.08.06 12.08.00" progress="100" style="defaultStyle"/>
    <task id="4" parent="" name="STAGE4" actual_start="" actual_end="" progress="0" style="defaultStyle"/>
    <task id="5" parent="" name="STAGE5" actual_start="" actual_end="" progress="0" style="defaultStyle"/>
    </tasks>
    </project_chart>
    </anygantt>
    Thank you for your assistance.
    Regards
    Kylie

  • Gantt chart and calender weeks

    Hi,
    I have to build a gantt chart and additional to Month year and date I have to show the calender weeks.
    How can I do this?
    I think it should be in between this part
    <locale>
    <date_time_format week_starts_from_monday="True">
    <months>
    <names>January,February,March,April,May,June,July,August,September,October,November,December</names>
    <short_names>Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec</short_names>
    </months>
    <week_days>
    <names>Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday</names>
    <short_names>Sun,Mon,Tue,Wed,Thu,Fri,Sat</short_names>
    </week_days>
    <format>
    <full>%yyyy.%MM.%dd.%HH.%mm.%ss</full>
    <date>%yyyy.%MM.%dd</date>
    <time>%HH.%mm.%ss</time>
    </format>
    </date_time_format>
    </locale>
    Please help me.
    Regards
    Siegwin

    Hi Siegwin,
    I've done some digging through the AnyChart documentation, and it looks like you need to look at setting a scale pattern for your Gantt chart. Take a look at the section called Date Time Scale Units Patterns in the AnyChart AnyGantt User's Guide, here: http://anychart.com/products/anygantt/docs/users-guide/timeline-scale.html?fromtree#date-time-patterns. I've updated one of my existing sample Gantt charts to apply a <weeks> pattern, which now displays the calendar week above each week - http://apex.oracle.com/pls/apex/f?p=36648:50 - you'll need to zoom in on the timeline in order to see the weeks of course. To achieve this, I just updated the custom XML region:
    from
      <timeline>
        <plot line_height="30" item_height="15" item_padding="5" />
      </timeline>to
      <timeline>
        <plot line_height="30" item_height="15" item_padding="5" />
        <scale>
          <patterns>
            <weeks>
              <pattern>%e</pattern>
            </weeks>
          </patterns>
        </scale>
      </timeline>I would recommend that you review the AnyChart AnyGantt User's Guide (http://anychart.com/products/anygantt/docs/users-guide/index.html) and XML Reference (http://anychart.com/products/anygantt/docs/xmlReference/index.html) for any further customisations that you wish to apply to your chart, as they provide some very useful examples and associated XML code, which can prove very helpful.
    Regards,
    Hilary

  • Gantt Chart (schedule) gives error on Accessor (11gTP3)

    Hi,
    I have tried in several ways with several data models,including the one used for the OBE on the Data Visualization Tags, but I cannot seem to get the Gantt Chart (Schedule) to work.
    It consistently fails when fetching the data, with an error message like:
    Definition OrdersView2 of type Attribute not found in PersonsView1It tries to access the TaskAccessor (based on the ViewLink from the Resources View to the Task View) as an Attribute - which of course it is not.
    Does anyone happen to know a work around?
    thanks.
    Lucas

    Hi Ervin,
    If you are one of the Oracle Ace Directors you should have access to Drop 6 though that program. Otherwise, we should be updating the build on OTN soon.
    When you create the scheduling Gantt, do you see two accessors for the Resource ID in the binding dialog?
    For example, if I create two wiews for Persons and Orders in the Fusion Order Demo schema, and I want to create a scheduling gantt for persons and their shipped orders, I see two orders views in the drop down: OrdersView and OrdersView2.
    If I pick OrdersView2 I get the error you describe. What happens in you pick the other one, OrdersView?
    Good news is that this bug is not present in recent builds so we hope to update you with a later build soon.
    Thanks
    Katia

  • Gantt chart with null dates

    Hi,
    Kylie discovered here that you couldn't have null dates in the project gantt query
    APEX 4.0.2 Project Gantt Chart - Error Code: 2002 Message: Empty input
    As Valentina suggested, I found the actual dates are mandatory, while the chart tolerates missing planned dates - which is a complete reversal of what actual project data would have.
    baseline project gantt with parent-child relationship
    What I found though is if some planned dates are missing, the generated XML seems to default with data from previous rows.
    As detailed in this screenshot, my red lines indicate missing from/to dates (actual data also shown underneath chart)
    https://docs.google.com/file/d/0B_eVXQ_oe4tsRUFXUzA0NmNMUE0/edit?usp=sharing
    NAME    TASK_ID   ACTUAL_START  ACTUAL_END  PROGRESS  DUE_START     DUE_END
    line 1  1810794   07/MAR/2013   11/MAR/2013   100     26/MAR/2013   27/MAR/2013 00:00:00
    line 2  1810780   12/MAR/2013   16/MAR/2013   100     23/MAR/2013   27/MAR/2013 00:00:00
    line 3  1810779   17/MAR/2013   20/MAR/2013          
    line 4  1810773   21/MAR/2013   21/MAR/2013   50      24/MAR/2013  
    line 5  1810774   22/MAR/2013   10/APR/2013   93      16/MAR/2013  
    line 6  1810791   11/APR/2013   20/APR/2013          
    line 7  1810793   21/APR/2013   22/APR/2013   45      21/MAR/2013   The accompanying XML backs up the story, yet my query doesn't feed this data.
    <task id="1810794" parent="" name="line 1" actual_start="2013.03.07 00.00.00" actual_end="2013.03.11 00.00.00" baseline_start="2013.03.26 00.00.00" baseline_end="2013.03.27 00.00.00" progress="100" style="defaultStyle"/>
    <task id="1810780" parent="" name="line 2" actual_start="2013.03.12 00.00.00" actual_end="2013.03.16 00.00.00" baseline_start="2013.03.23 00.00.00" baseline_end="2013.03.27 00.00.00" progress="100" style="defaultStyle"/>
    <task id="1810779" parent="" name="line 3" actual_start="2013.03.17 00.00.00" actual_end="2013.03.20 00.00.00" baseline_start="2013.03.23 00.00.00" baseline_end="2013.03.27 00.00.00" style="defaultStyle"/>
    <task id="1810773" parent="" name="line 4" actual_start="2013.03.21 00.00.00" actual_end="2013.03.21 00.00.00" baseline_start="2013.03.24 00.00.00" baseline_end="2013.03.27 00.00.00" progress="50" style="defaultStyle"/>
    <task id="1810774" parent="" name="line 5" actual_start="2013.03.22 00.00.00" actual_end="2013.04.10 00.00.00" baseline_start="2013.03.16 00.00.00" baseline_end="2013.03.27 00.00.00" progress="93" style="defaultStyle"/>
    <task id="1810791" parent="" name="line 6" actual_start="2013.04.11 00.00.00" actual_end="2013.04.20 00.00.00" baseline_start="2013.03.16 00.00.00" baseline_end="2013.03.27 00.00.00" style="defaultStyle"/>
    <task id="1810793" parent="" name="line 7" actual_start="2013.04.21 00.00.00" actual_end="2013.04.22 00.00.00" baseline_start="2013.03.21 00.00.00" baseline_end="2013.03.27 00.00.00" progress="45" style="defaultStyle"/>Is this expected behaviour?
    Is this a bug?
    Is there a workaround - can I supply my own XML to hopefully override what is being generated?
    Scott

    Hi Ahmed
    Thank you for your reply.
    The time scales in Gantt chart specifically shows the year, month and weeks from the start date of project definition or basic start of WBS.
    Since it is not a decided project, the Gantt chart need to show 0, 1st week, 2nd week, 3rd week etc.
    The actual schedule from PD start date can be produced on actual initiation of project.
    It means, i am looking for having Gantt chart for duration and not for specific start and finish dates.
    warm regards
    ramSiva

  • Steps to create Resource gantt chart with hourly ranges

    Does anyone have an example of how to customize the default built APEX/Anychart resource gantt charts to handle a 12 hour range showing resources? I have tried going through a sample provided by anychart tech support, but the xml file seems to have different set of entries.
    What I have is a set of rows for resources in a shop over a 12 hr shift that I need to show. I have a standard resource gannt working, but I need to customize some of the xml settings to see the date/time ranges..
    Any help would be a blessing!!
    Thank you,
    Tony Miller
    Webster, TX

    I could post it up on Oracle's hosted site, but I am NOT seeing much help where ever it is located.. I also believe in helping up here because I can and It helps me....
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Problem with gantt chart displaying - Apex4.2

    Hi I'm using Apex 4.2 on localhost and
    I have got three tables: employee, engineer, dates
    -> engineer table is a specification of employee table, that means in employee you can find also the
    names of the engineers. Engineer only has an additional attribute.
    Here's the structure of the three tables:
    employee (e_id, lastname, surname....)
    engineer (e_id, attribute)
    appointment (a_id, e_id,start, end)
    Now my problem: By using the gantt chart the xml doesn't want to show the names of the engineers.
    If I only use this sql statement everything works but I only have the e_id from my engineer table:
    select
    null link,
    a.e_id,
    (select e_id from engineer where e_id = a.e_id) Engineer,
    null parent_id,
    a.start,
    a.end
    from appointment a
    If I try to use this statement in order to see the names of the employees no chart will be shown,
    only xml error:
    select
    null link,
    a.e_id,
    (select emp.lastname from employee emp, engineer e where emp.e_id = e.e_id and e.e_id=a.e_id) Engineer,
    null parent_id,
    a.start,
    a.end
    from appointment a
    I also created a view which combines the lastname from employee and the e_id from engineer
    but same problem.
    If I try:
    select
    null link,
    a.e_id,
    (select e_id from gantt_view where e.e_id=a.e_id) Engineer,
    null parent_id,
    a.start,
    a.end
    from appointment a
    Then I'll see e_ids in my gantt chart but if I want to see my employee names
    with this statement:
    select
    null link,
    a.e_id,
    (select lastname from gantt_view where e.e_id=a.e_id) Engineer,
    null parent_id,
    a.start,
    a.end
    from appointment a
    Nothing is shown on the gantt chart.
    I tested all sql statements on sql developer.
    There I was able to see my employee names.
    But for gantt charts it doesn't work.
    Any solutions?

    Great!
    Of course, hard to diagnose when there's nothing to see.
    Here's an old message in a thread from 2010. (To give credit, it's from Hilary Farrell.)
    >
    You are correct, the syntax outlined in the error message is incorrect, and I've logged bug 9799373 to track this. As a workaround, you can view sample syntax for Gantt charts on the 'Query' page of the Create wizard, in the 'Chart Query Example for Gantt' Show/Hide region below the text area for entering your chart query, and also in the Oracle APEX 4.0 User's Guide that will be available with our new release. Just in case other users hit the same issue and are unsure of the expected format:
    Chart Query Examples for Project Gantt Charts:
    SELECT NULL LINK,
    TASK_NAME NAME,
    TASK_ID ID,
    NULL PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END,
    STATUS_NUMBER PROGRESS
    FROM TASKS
    SELECT 'f?p=4000:2:'||:APP_SESSION||':::P2_ID:'||ID LINK
    TASK_NAME NAME,
    TASK_ID ID,
    PARENT_TASK_ID PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END,
    STATUS_NUMBER PROGRESS
    FROM TASKS
    SELECT NULL LINK,
    TASK_NAME NAME,
    TASK_ID ID,
    NULL PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END,
    STATUS_NUMBER PROGRESS,
    START_DATE-3 PLANNED_START,
    END_DATE+1 PLANNED_END
    FROM TASKS
    Chart Query Examples for Resource Gantt Charts:
    SELECT NULL LINK,
    RESOURCE_ID ID,
    NULL NAME,
    NULL PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END
    FROM TASKS
    SELECT 'f?p=4000:2:'||:APP_SESSION||':::P2_ID:'||ID LINK
    RESOURCE_ID ID,
    RESOURCE_NAME NAME,
    PARENT_ID PARENT_ID,
    START_DATE ACTUAL_START,
    END_DATE ACTUAL_END
    FROM TASKS
    Thanks for reporting this issue, and I'm happy you were able to successfully generate your chart.
    Regards,
    Hilary
    Can you show us the query you are using?
    Oh. And what are the data types and lengths of your data?
    Howard

Maybe you are looking for

  • Oracle AutoVue Configuration for UCM or WCC

    I am facing problem during configuration of AutoVue for UCM or WCC. When I run JVue server, it executes normally while, when i check Jvueservlet server, an error has been occurred like java execution program property error. After completing installat

  • How can i freeze date in date picker.

    Dear All i want to freeze date in date picker which are  less then system date . How can i freeze date in date picker. Thanks

  • How to tokenize clob

    I have text-documents stored in clobs and would like to create a sinlge table for each document listing all the words that occur in the text. Is there a funktion in PL/SQl that can solve my problem easily?

  • PHP/MySQL Date display format

    Can someone help me out here. I am trying to format my date. My MySQL is a "datetime". How ever I would like to display only the month, day, year like so "Jan,15,2007" Here is my current code, what should I add to make it do what I want. <?php echo $

  • How to make a row editable in a click to edit table programatically?

    I have a table in my page in which I can do inline addition as well as select and add addition (which will programatically add multiple rows). And my table is click to edit (there are few editable columns in the table). So, suppose if I add a row say