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

Similar Messages

  • 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..

  • 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

  • Resource Gantt Chart - Error : Resourse with same ID "%1" already exists

    Hi,
    I have a requirement to have multiple periods per resource.
    I have implemented the example in http://apex.oracle.com/pls/apex/f?p=36648:60. It seems only to cater for a single period.
    The COLUMN_NAME ID in my query is not unique.
    The following error in the chart is displayed:
    Category: 1000
    Error code: 1002
    Message: Resourse with same ID "%1" already exists
    Somewhere I'm missing something, and might be the late nights - Can you please advise?
    Kind Regards
    Mynhardt

    Hello Roel -
    Thank you for the suggestion. After setting parent_id to null, it still doesn't load. By using debug I'm getting a invald character to number conversion. Paring down the query to just basics, it still won't pass query validation:
    select null link, null
    a.WS_ENGINEER, number
    a.ws_engineer name, number
    null parent_id, null
    a.ws_start_date start_date, timestamp with timezone
    a.ws_end_date end_date timestamp with timezone
    from WORK_SCHEDULE a
    I have to think it's the timestamps with timezone that are causing the problems since all other data is only numeric. I'll keep after it.

  • Start/End Date parameters that check day of week and using to set default values.

    Hi,
    I've got a report that presents data between a start and an end date.
    I want it to check if it's a monday and present data from the previous week, otherwise present data from this week.
    For the "Default" value of parameter @startdate, I've got the following expression:
    =iif(WeekdayName(DatePart("w", Today)) = "Monday",DateAdd("d",-8,Today()),DATEADD("d", 1 - DATEPART(DateInterval.WeekDay, Today(),FirstDayOfWeek.Sunday), Today()))
    for @enddate I've got default value:
    =iif(WeekdayName(DatePart("w", Today)) = "Monday",DateAdd("d",-1,Today()),DATEADD("d", 7 - DATEPART(DateInterval.WeekDay, Today(),FirstDayOfWeek.Sunday), Today()))
    but it doesn't appear to be working, I've checked 
    WeekdayName(DatePart("w", Today))
    as an expression in a text box and it evaluates to Monday but my IIF statement above always uses the DATEADD line therefore not returning "Monday" as the value (even though it is).
    Is it a problem that the parameters are of Data/Time data type and I'm trying to evaluate as type text?
    Any help would be appreciated.
    Thanks :)

    StartDate
    =IIf(DateDiff(DateInterval.Day,CDate("01/01/1900"),Today) Mod 7 =0,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today)-1,CDate("01/01/1900")),DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today),CDate("01/01/1900")))
    EndDate
    =IIf(DateDiff(DateInterval.Day,CDate("01/01/1900"),Today) Mod 7 =0,DateAdd(DateInterval.Day,-1,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today),CDate("01/01/1900"))),DateAdd(DateInterval.Day,-1,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today)+1,CDate("01/01/1900"))))
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    Hi, 
    This one works but it results to be between monday and saturday, how to make it between sunday and saturday?

  • Substitution in Custom XML section of a chart

    Hello,
    I am trying to do a substitution inside of "Custom XML" section of a "Resource Gantt" chart using &P5_GANTT_XML. (dot at the end - thanks fac586)
    The substitution doesn't work! In the "Show XML" I can see null instead of expected value.
    Seems this substitution is working in this demo http://apex.oracle.com/pls/apex/f?p=36648:60:3572101667083478::NO:::
    Any idea?
    Regards,
    Gabriel
    DB: 11.2.0.1.0 EE
    Apex: 4.0.2
    Server: Solaris 10 Sparc
    Client: XP SP3
    Browser: Firefox 3.6.13
    Flash player: updated to latest version
    Edited by: gabosu on Jan 5, 2011 11:07 AM
    Edited by: gabosu on Jan 5, 2011 11:10 AM

    In the thread
    Re: Page item value in Flash chart XML
    dated NOV-2007
    Patrick Wolf wrote:
    there seems to be something strange going on with the substitution of page items in the Custom XML. I already noticed that several weeks ago, but didn't pay much attention to the problem.
    Have a look at the following application at http://apex.oracle.com/pls/otn/f?p=15535:5
    username: demo
    pwd: patricks_demo_workspace
    It has a page item P5_TEST with a static assignment of "this is a x label". Everywhere where I reference it with &P5_TEST. or :P5_TEST during the rendering of the page the correct value is substituted as you can see on the example page.
    Only the flash charts seems to use a NULL value! I have done a
    ...x_axis name="before-&P5_TEST.-after" smart="yes"... in the Custom XML.
    Why is there this different behavior of substitution? Or do I miss something?
    I made the same behavior - the substitution is triggering somehow but the result is NULL.
    Example:
    into Custom XML
    <test>start-&P5_GANTT_XML.-end</test>
    is returning
    <test>start--end</test>
    and
    in the same time &P5_GANTT_XML. is working fine into the title of the region.
    Edited by: gabosu on Jan 5, 2011 12:21 PM

  • 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

  • Problems in designing Gantt Charts through Web Dynpros

    Dear friends,
    We are having a situation in which we need to display the series of production orders in shop floor in a gantt chart having a specific start & end date and time.
    To implement this scenario, we are using Gantt Chart tool available in Web dynpro. In the gantt chart tool we are passing an XML file edited as per data to display production orders starting and ending at particular date and time.
    Now we are facing following problems to design this case.
    1. We are currently using type repository <TypeRepository href="apps/gantt/cprojects/TypeRepository.xml" version="1.0"> as a base type repository to define our XML file. This type repository we found in one of Gantt chart test examples. We believe if we are able to view this file we can know what types are available and how can we use their elements and attributes to define graph in XML file. Please help us how can we view this type repository.
    2. Currently we are viewing scale on Gantt chart only on date base. Can we view the scale at time base too? If yes, how?
    3. Currently we are manually editing our XML file to add up data that we want to display in our gantt charts. We would like to know what is standard procedure to edit XML file in a program. Additionally if you can tell us the functional modules or class-methods to edit XML file in program, this would be very helpful.
    Your kind help would be highly appreciated.
    Best regards,
    Navin Guru

    About where to find file apps/gantt/cprojects/TypeRepository.xml.
    Maybe it's not the best way, but i had access to portal server files (access to /usr/sap directory on server where enterprise portal was installed). And i found it there by jnet search criteria.
    In my case it layed in the following place:
    \usr\sap\<SID>\J01\j2ee\cluster\apps\sap.com\tcwddispwda\servlet_jsp\webdynpro\resources\sap.com\tcwddispwda\root\global\activeComp\

  • HELP!! How to use setData for a Gantt-Chart

    Hello,
    how can I use the function setData? I've created a page with a resource-gantt-chart and now I want to use this function to set the data to the chart.
    The chart has the attribute "static id" = GANT_CHART.
    In the HTML-header of the page I tried
    <script language="JavaScript" type="text/javascript">
    function SetDataToChart() {
    var data = &F_GANTT_CHART_DATA.;
    var chart = document.getElementById('GANTT_CHART');
    chart.setData(data);
    </script>
    where the item F_GANTT_CHART_DATA returns the following:
    <resource_chart>
    <resources>
    <resource id="3002" name="0400006/1" />
    </resources>
    </resource_chart>
    I call the function SetDataToChart() in "Execute when page loads"
    Thank you for any help!
    Edited by: Kirsten on Aug 4, 2011 5:40 AM

    Hi Shyam,
    Have a look at this,
    START-OF-SELECTION.
      gd_file = p_infile.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = gd_file
          has_field_separator     = 'X'  "file is TAB delimited
        TABLES
          data_tab                = it_record
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
        IF sy-subrc NE 0.
          write: 'Error ', sy-subrc, 'returned from GUI_UPLOAD FM'.
          skip.
        endif.
    Regards,
    Sai

  • Create Gantt-Chart by using class CL_GUI_CHART_ENGINE

    Hello,
    my goal is to create a Gantt-Chart by using CL_GUI_CHART_ENGINE .
    I´ve copied report GRAPHICS_GUI_CE_DEMO and tried to modify its XML data in order to get a Gant-Chart
    but I failed. I´ve also used SAP Chart-Designer to get an executable customizing for the chart engine
    but this way was unsuccesful too. Every time the chart shows no data...
    Is there anyone who has an example (code, docu, xml) to create a Gantt-Chart?
    Thank you.
    Kind regards,
    Oliver
    Edited by: Oliver Seifer on Mar 24, 2011 2:16 PM

    Hi,
    Please try this sample code. You'll need a customizing from ChartDesigner to launch it.
    I have hardcoded sample data but you can take it further from here.
    Please use following settings in the wizard
    Step 1
    Gantt
    Step 2
    Series Count 2
    Category Count 1
    Step 3
    Defaults
    Step 4
    Defaults
    Step 5
    Defaults
    Step 6
    Defaults
    Step 7
    Save as...
    DATA lt_cust_text TYPE w3htmltabtype.
      DATA lt_data_text TYPE w3htmltabtype.
      DATA wa_data_text TYPE w3html.
      IF g_ce_container IS INITIAL.
        CREATE OBJECT g_ce_container
          EXPORTING
            container_name = 'CONTAINER'.
        CREATE OBJECT g_ce_viewer
          EXPORTING
            parent = g_ce_container.
      ENDIF.
      cl_gui_frontend_services=>gui_upload(
        EXPORTING
          filename                = 'path to your customising\gant.xml'
        CHANGING
          data_tab                =     lt_cust_text
        EXCEPTIONS
          OTHERS                  = 19 ).
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      g_ce_viewer->set_customizing( data_table = lt_cust_text ).
      APPEND '<?xml version="1.0" encoding="utf-8"?>' TO lt_data_text.
      APPEND '<ChartData> ' TO lt_data_text.
      APPEND '<Categories><Category>Category 1</Category></Categories>' TO lt_data_text.
      APPEND '<Series customizing="Series1">' TO lt_data_text.
      APPEND '<Point>' TO lt_data_text.
      APPEND '<Value type="time">20000301</Value>' TO lt_data_text.
      APPEND '<Value type="time">20000305</Value>' TO lt_data_text.
      APPEND '<Value type="time">20000310</Value>' TO lt_data_text.
      APPEND '<Value type="time">20000401</Value>' TO lt_data_text.
      APPEND '</Point>' TO lt_data_text.
      APPEND '</Series>' TO lt_data_text.
      APPEND '<Series customizing="Series2">' TO lt_data_text.
      APPEND '<Point>' TO lt_data_text.
      APPEND '<Value type="time">20000302</Value>' TO lt_data_text.
      APPEND '<Value type="time">20000319</Value>' TO lt_data_text.
      APPEND '</Point>' TO lt_data_text.
      APPEND '</Series>' TO lt_data_text.
      APPEND '</ChartData>' TO lt_data_text.
      g_ce_viewer->set_data( data_table = lt_data_text ).
      g_ce_viewer->render( ).

  • 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

  • Gantt chart issue

    Hi,
    We are using SAP PPM 5.0 (cProject), unable to display the Gantt chart. Kindly suggest me what setting need to done to display Gantt chart. In URL for created project if I click for Graphical tab to display gantt chat, it just through out JAVA symbol error.
    Regards,
    Seema Pilankar

    Hi,
    Please refer these notes 1014150 & 1035436. I believe this will solve your issue. As mentioned above make sure that you have latest Java JRE update.
    Pramod

  • 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 Chart view disappeard

    HELP! I'm new to using MS Project web and I accidently changed a setting that removed my Gantt chart view. How do I recover it?

    Hi,
    Can you be more explicit? Which setting did you change in your Gantt chart (security setting, filter, columns)? Changing a "setting" of a PWA view should not delete the view.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • 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

Maybe you are looking for

  • Switching between text SMS messages and iMessage

    When receiving text messages while on a wifi network my message client responds with iMessages.The recipient us not on a wifi network and does not revive the iMessage replies. Why isn't the iPhone smart enough to respond using the protocol that will

  • Creative Xfi Style 32g and Centrale

    #C?Hi guys, Initially I couldn't get the centrale software to transfer to my player, it would list all my music on my computer and then just sit there like a dead fish. On the fourth uninstall/reinstall it actually transferred music, but only about a

  • Put up with Infinity for over a year. About to rag...

    Title says it all. I had no real problems with BT broadband until I upgraded to Infinity. Then the fun began. Currently scraping along at 4Mb download speed. Cannot physically bring myself to phone BT AGAIN, and go through the same ludicrious set of

  • Can't open my project files since i updated

    Hey guys, I wanted to change some content of a website i made last year. Now i can't open the project files anymore. Error Message: "The File cannot be opened" "Die File is already opened in another Version of MUSE" ( translated from German) This hap

  • While typing characters disappear

    While typing an email or entering search text in Safari after about 3-4 letters are type they start disappearing or the word totally disappears. This is sporadic, and can not make it happen. Restarting does not seem to fix the problem. What do I look