Grid in Gantt chart

Hello

It is a problem with a Gantt chart that is part of an Apex application I support. It uses the format to_timestamp (DD-MON-RRRR hh: mi) to retrieve the data and display in the Gantt chart. The only problem is that since I use the format HH and AM not HH24 all the time is displayed in 12-hour format the component "hour" of the x_axis chart seems to be assuming that time is always. Is there anyway to fix this, or simply change the x_axis to show say 05:00 instead of 17:00?

Thank you

His assuming that all times are AM because you forgot to tell the to_timestamp() function if time is or h... so, it must assume that it is always AM.

Your date/time data must be stored in a DATE data type.

Use the CAST (columname AS TIMESTAMP) operator if it is already a DATE instead of using to_timestamp (to_char ())

MK

Tags: Database

Similar Questions

  • Apex 4.1 - Gantt chart resource with dynamic colors based on the background

    Hello

    I request of the customer to create a resource of Gantt chart that displays the different color bars based on the employee assigned to each task.

    I found two excellent examples of Hilary on the use of different colors; Unfortunately, they use static colors:

    https://Apex.Oracle.com/pls/Apex/f?p=36648:114

    https://Apex.Oracle.com/pls/Apex/f?p=36648:60

    I will present an example for the http://apex.oracle.com later in the day.

    Meanwhile, does anyone have a suggestion on how to do this?

    Thank you

    Erick

    Erick,

    What makes you decide to use a chart of the resource instead of a task of projects, so what you are viewing is just a chart of the project? No resource is indicated on the data grid, but rather task names. Not not it doesn't, but it's confusing that shouldn't be there. It complicates the xml code required when it should not.

    Aside from that, you can do what you want, but you need to change the custom XML and generate xml data yourself.

    See page 2 in your application: https://apex.oracle.com/pls/apex/f?p=16559:2

    -generate xml processes

    -region with a few hidden items

    -custom xml to include items hidden in the correct places

    -remove the series just to indicate that no data is retrieved in a way

    In short:

    -generate xml data to generate a style for every single transferee. I generate a name for each "style" | assignee_id, which makes it easy to reference in the task. I added a function to generate a custom hex color too, just for the joy?

    -generating resources

    -generate periods and assign the style accordign to the assignee

  • The APEX 4.0 project Gantt chart: almost a bug

    Hi the APEX team:

    My application uses diagrams of Gantt project widely, so I think it's a missing parameter: width of datagrid
    It seems that this Gantt chart sets a fixed width of datagrid section, so that whatever the datagrid content always gets the same width.
    If you are unable to control this setting, the datagrid is very limited, especially if you try to reduce the graph. In my case, I always use Gantt diagrams without datagrids.

    A little suggestion: default alignment for the column name in the datagrid is Center. I think a better default alignment should be left.

    Best regards
    Oscar

    Hi Oscar,.

    I get only to see your message now, otherwise I would have answered early on.

    Q: + it seems that this Gantt chart sets a fixed width of datagrid section, so that whatever the datagrid content always gets the same width. +
    Rep. : Yes, you are right. AnyChart defines a width by default for the datagrid section, which is 325 pixels, described in their books online, in the section titled "Width parameter" in the chapter General data grid settings: http://www.anychart.com/products/anygantt/docs/users-guide/datagrid.html?fromtree. It's something that you can control by customizing the tag in your XML file:

    
      
    
    

    In a future release, we can look at exposing this option via the page attributes of table. In the meantime, the user has the possibility to adjust the size of the data grid by moving the gray line between datagrid and the sections of the chronology of the Gantt chart.

    Q: + a little suggestion: default alignment for the column name in the datagrid is Center. I think a better default alignment should be left. +
    Years: is actually the default management AnyChart of the path, but you can certainly substitute that by specifying your own alignments in the custom XML part if you want to. We also see this as an improvement for the Gantt chart settings on the page attributes of table for a future version.

    Kind regards
    Hilary

  • Problem with the Gantt chart

    I have an Apex 5 with universal theme help

    I want to create a Gantt chart, but I get a syntax error, even though I used the wizard to generate the code

    Select

    null link,

    NAME task_name,

    Task_id ID,

    parent_id null,

    Start_date actual_start,

    End_date actual_end,

    Progress of PROGRESS,

    planned_start null,

    planned_end null

    of 'GUSCRIGHTON '. "" ANG_PROJECT_STAGES ".

    Anyone know what's wrong with the code?

    It works in sql Studio

    Gus

    Gus C wrote:

    I have an Apex 5 with universal theme help

    I want to create a Gantt chart, but I get a syntax error, even though I used the wizard to generate the code

    Select

    null link,

    NAME task_name,

    Task_id ID,

    parent_id null,

    Start_date actual_start,

    End_date actual_end,

    Progress of PROGRESS,

    planned_start null,

    planned_end null

    of 'GUSCRIGHTON '. "" ANG_PROJECT_STAGES ".

    Anyone know what's wrong with the code?

    Probably nothing. I get the same error with a similar request, but after selecting the option Save query without validation when you apply the changes, the graphic is displayed correctly. Potentially, a bug in the validation of the application.

    I'd actually using the region of Gantt plugin found in the application of P-Track packed instead, which is a component of HTML5 more modern which is a better choice for use in the universal theme.

  • Chronology in the Oracle Apex5 Gantt Chart view

    Hi all

    I'm developing an application using Oracle Apex 5.

    I have a created a page with graphic Flash-> Gantt chart.

    He created as below

    1.png

    But I need to make as below

    2.png

    How to do this?

    Su.GI wrote:

    I'm developing an application using Oracle Apex 5.

    I have a created a page with graphic Flash--> Gantt chart.

    He created as below

    But I need to make as below

    How to do this?

    In the component graphic Flash Gantt this requires a graphical change settings using the XML part that is customized according to the documentation AnyGantt 4.3. In the area of the Gantt chart, switch to Use Custom XML Yesand modify the XML custom, expanding the timeline element of

    ...
            
                
            
    ...
    

    to include a custom scale element which eliminates the level of the day:

    ...
            
                
                
                  
                    
                    
                    
                    
                    
                    
                  
                
            
    ...
    

    A better alternative would be to use the Gantt chart plugin region of the packed app P-way rather than the Flash option integrated Gantt chart. The plug-in supports simple customization/user control in the period of mounting using a page item control.

  • View gantt chart, based on the value of IR - apex 4.2

    Hello

    There is a diagram of Gantt chart below that an IR is there. (see data).

    If the user filter IR, we must show only that the entries that are displayed in IR, in the Gantt chart.

    How can achieve us?

    Kind regards

    Sanjaya

    The problem is solved with the help of Denes Kubicek blog.

    http://deneskubicek.blogspot.in/2013/05/getting-interactive-report-query.html

    Thank you

    Sanjaya

  • Custom color in display Gantt chart based on the State - Apex 4.2

    Hello

    I need to specify the custom color display Gantt chart based on the State.

    Say: Open - Red

    Progress-yellow

    Cancelled - blue

    Closed - Green

    given that the status column is not part of Gantt chart question, how?

    Option color in table attributes is not helping this requirement.

    Kind regards

    Sanjaya

    Hello

    Finally, the problem is resolved with the help of Hilary Farrell-Oraclefantastic example and help anychart pages. This is useful for this URL.

    https://Apex.Oracle.com/pls/Apex/f?p=36648:30:102588100613368:

    http://6.anychart.com/products/anygantt/docs/users-guide/index.HTML?project-Gantt-chart.html

    http://6.anychart.com/products/anygantt/docs/users-guide/index.html?defaults.html

    -Sanjaya

  • How to disable display of work orders-> frame in view dependency-> Gantt chart display image file

    Hi all

    We want to hide a feature stopped working screen in Oracle EBS R12.1.3 is Gantt chart displays by application. This is a png image file, and thousands of files are generated daily.

    The image is accessible from screen-> view dependency framework work orders-> show image file-Gantt chart

    Thank you.

    YM

    Fact through customization of forms.

  • Links page of Gantt chart open in modal window

    Hello.

    We use Gantt chart with column of link diagrams which open in detail table in the new page - according to this line of clicked gantt.

    Each row in the gantt chart may open a different page.

    Is it possible to open the new page (when the link is clicked) in the modal window?

    We use the apex 4.2.5.

    Thank you.


    Kind regards

    Dejan

    Hi Dejan,

    You had the largest part of the correct configuration. I finished the example.

    1 / the LINK column added to the query of the series.

    2 / in the series, I specified the link attributes. The URL used is: javascript:setURLForModal('#LINK#').

    3 / the raised event was a typo in it. Correct it.

    4 / the dynamic action is triggered on the issue, not on the region. The attribute must be data-url and not data_url

    The example works now. Œuvres pretty cool and it's almost all defined by their Summit.

  • See the progress in project Gantt chart adf bar

    Hello

    When I create a project Gantt chart in ADF 12.1.2 alter the properties of the project-> "% complete field" gantt chart I have put the percentage of the task but not illustrated in the chart.

    Show only the date time of the task.

    That's happened?

    Resolved:

    The expected gantt project property in the attribute value type of task is 'Normal' to show the percentage of tasks

  • Can we create Gantt chart using BI Publisher plug-in

    Hi Evereyone,.

    I'm working on a report that requires the Gantt chart to be published by unify. I use the BI Publisher MS Word and Excel plugin.

    Has anyone tried this before. It will be useful if you can share the steps or any other site which deals with creation of Gantt chart.

    Thank you

    It is possible. See this site for a starting point: https://blogs.oracle.com/xmlpublisher/entry/getting_gantty

    Basically, you create a table where each row represents an activity from your calendar sheet. You will need a space of great column for the Gantt chart and add a few MS Word forms (rectangles).

    If you play with and you can move the bar and size correctly. Download the appropriate shifts and durations in your data SQL view.

    This is the easiest part. The hardest part is to show the dates (weeks/months/years) at the top of your table with spacing on the right... It is actually easier to just the dates of beginning and end of each line.

    -It should be noted that showing the relationships between activities (ie. the lines connecting the bars) cannot be done in BI Publisher. If it is a requirement, I suggest that investigate you other approaches. You can list predecessor and successor activity in the form of column ID in your table instead.

    Hope that helps,

    The f

  • Order of the Gantt chart

    Hello

    I created a Gantt chart and discovered a problem. Jobs don't always appear in chronological order.

    I tried to order the query by date, but then the tasks don't always show next (or in the same order) on the bars to the right of the plan.

    Is anyway I can order the tasks without losing the alignment with the diagram of the individual task bar?

    Thanks in advance.

    Hello

    You have not specified what type of Gantt chart, you use: it is a project gantt chart or resource? In addition, you are dealing with hierarchical data?

    Looks like you might be dealing with hierarchical data and the order in which the data are generated is cause your problem and culminating in the timeline entries being out of alignment with the datagrid control.  So, without seeing the application in use, my suggestion would be to update the query to generate a hierarchical representation of your data via an START WITH... CONNECT BY question, using a syntax similar to the following:

    Select the link,
    TaskName,
    ID,
    parent_id,
    start_date,
    End_date,
    status
    tasks _table
    Start by parent_id is null
    connect by parent_id = prior id
    siblings arrested by start_date

    If the query is retrieving the list of tasks and then hierarchically by listing the based on parent-child association which was held in the PARENT_ID of the table column.  The end result means that each parent task is listed with their tasks associated with children and sorted by START_DATE.

    If this isn't answering your query, please update this thread with more information about your test scenario.  Even better - if you could create a unit test on apex.oracle.com and post a link to the unit test and the syntax of the query you are using, it would be very useful.

    Kind regards

    Hilary

  • Scheduling Gantt Chart - highlighting of modified duties

    We strive to implement our Gantt chart behavior as on the actions of the user like drag-and-drop, changes are not immediately committed to the database.

    We ask a commit on the transaction to save all changes when the user presses a button 'save'.

    However, we would like to highlight modified (for example, the extended duration task) duties in a different color to keep track of all the actions of the user, while the changes are not yet validated.

    Commit, all jobs must go back to the default color.

    I'm doing it with the TaskbarFormatManager, but can't find a way to use it for this particular requirement.

    Can I use a column in my table to map the type of task for the Gantt chart, and how to upgrade this attribute in my VO / Gantt chart when a task is changed?

    I managed to solve this problem quite awhile, but I forgot to post the solution.

    I have added a transitional attribute to my entity object.

    <>

    Name = "TaskChanged".

    ColumnName = "" $aucun$ ""

    SQLType = 'VARCHAR '.

    Type = "Java.lang.String"

    ColumnType = "" $aucun$ ""

    IsQueriable = "false".

    IsPersistent = "false" / >

    In the entity bean Get accessor method.

    public String getTaskChanged() {}

    If (this.getEntityState () is EntityImpl.STATUS_MODIFIED)

    return "CHANGED";

    If ((String) getAttributeInternal (TASKCHANGED) is nothing)

    on the other

    'CLEAN '; return

    }

    Add this attribute of the entity object to the original Version. The application of VO is unchanged.

    In the Gantt chart in the jspx, I put the Task Type to the attribute TaskChanged.

    And the code for TaskbarFormatManager is as usual:

    public TaskbarFormatManager getFormatManager() {}

    TaskbarFormatManager _manager = new TaskbarFormatManager();

    _manager.registerTaskbarFormat ("CHANGE", TaskbarFormat.getInstance ("gold", UISchedulingGantt.GOLD_FORMAT));

    _manager.registerTaskbarFormat ('CLEAN', TaskbarFormat.getInstance ("blue", UISchedulingGantt.STEEL_BLUE_FORMAT));

    Return _manager;

    }

    When the validation is called when the click on the "Save" button, the entity is no longer in an altered state, and all the recorded tasks back to the steel blue format.

  • Hide progress on Gantt chart

    Hello

    I produced a query based Gantt chart

    Select the Null link,

    TaskName,

    Task_Id,

    Parent_id,

    actual_start,

    actual_end,

    progress null,

    planned_start,

    Planned_End

    Of query_table

    Everything looks good, except that I don't want to show the progress since we do not actually hold this value. I tried setting it null, as shown above, but it shows up on the table as 0%. Is it possible to remove this display on every spot on the card value?

    Thank you

    Hello

    You will need to customize the XML to achieve this behavior.  On page table attributes, the value "use Custom XML' to Yes and in the XML delete all references to:

    Complete: full {%} %

    This will remove references to the progress bar in the ToolTips used on the Gantt chart.  Then you will need to update the tag to include information label for the bar.  It looks like the complete label is the default label associated with a project Gantt chart, although I have not found anything in the online documentation indicating this.  I'll follow up with AnyChart on it.  In the meantime, I recommend you read Guide their use online, specifically labels in spots, where you will find information on possible labels, you can set for the bars in the area of the chronology of the graph.  If you leave the tags empty, or simply do not include them, it looks like the bar without any label, which perhaps is the behavior you're trying to reach.  Here is the XML code, you can add to your chart:

    .....

    .........

    .. .or the tags in grey above already exist in the XML table, so should not be copied.  I hope this helps.

    Kind regards

    Hilary

  • Accuracy of the Gantt chart

    I use Apex on top of Oracle 11.2.0.3 4.2.1.00.08

    I want to set up a gantt chart resource with minutes on the axis instead of from the default.
    I tried to introduce a key xml < anygantt > < settings > < sequence > < scale > < interval > < type interval = interval 'Hour' (or 'Minute') = 1 > without success.
    What happens then is an unending "Loading Data"
    The number of lines configured should be sufficient. When the XML to defalult reset all data are displayed.

    When checking a little more away all graphics date information truncated to the part of the day of the date indication.
    So, how can I configure the Gantt chart in order to have the minutes below the limit.
    Worms and from the db column is of type DATE MM and SS.

    BR

    Hi BR,

    Looking at the XML table you have included in your message, it may or may not be a typo, but the figure is expected to be wrapped in quotes i.e.

     
    

    Without the quotes around the number 1, you will certainly get the "Loading Data" message. If that ever happens, the best thing to do is to run your page in debug mode and click on the "View XML" link which will appear under your graph. Cllicking on the link displays the XML file associated with your chart. However, it will show also any error was captured during the generation of the XML table. This could be useful, especially when you work with custom XML where it is very easy to misplace tags or omit the quotation marks.

    Regarding the time for your Gantt chart information, in order to generate Gantt charts when the accurate time information are used, then the graphical query must make reference to
    TIMESTAMP columns. If you take a look at the example in my sample application (see http://apex.oracle.com/pls/apex/f?p=36648:83) it might be useful.)

    Let me know how you go.

    Kind regards
    Hilary

Maybe you are looking for