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

Tags: Database

Similar Questions

  • 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

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

  • setCurrentRowWithKeyValue in the Gantt chart project ADF does not work. ?

    @

    Im trying to Create, Updat and delete tasks in Gantt Project chart. Create works very well. But when I try to Delete or Update, its doing the update and delete operations of the first entry on the chart. Its been not to delete and update for the selection of task Im. ?

    I don't know what's wrong. I tried to setCurrentRowWithKeyValue, by the operationBinding, its still does not...

    @

    My bean Code:

    {} public void handleDataChanged (DataChangeEvent dataChangeEvent)

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    _Type int = dataChangeEvent.getActionType ();

    If (_type is DataChangeEvent.DELETE)

    {

    DCBindingContainer bindings1 = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCIteratorBinding iter = bindings1.findIteratorBinding("projectTask1Iterator");

    Line r = dcIteratorBindings.getCurrentRow ();

    OperationBinding operationBinding = bindings.getOperationBinding ("Delete");

    Map params = operationBinding.getParamsMap (); -> First of all here its not not getting the value, I don't know why. I tried to print Im getting printed here NULL values

    params.put ("rowKey", dataChangeEvent.getTaskId ());

    -> Values no. here too...

    operationBinding.execute ();

    }

    ElseIf (_type == DataChangeEvent.UPDATE)

    {

    OperationBinding operationBinding = bindings.getOperationBinding("setCurrentRowWithKeyValue");

    Map params = operationBinding.getParamsMap (); -> First of all here its not not getting the value, I don't know why. I tried to print Im getting printed here NULL values

    params.put ("rowKey", dataChangeEvent.getTaskId ());

    -> Values no. here too...

    operationBinding.execute ();

    DCBindingContainer bindings1 = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCIteratorBinding iter = bindings1.findIteratorBinding("MyIterator");

    Line r = dcIteratorBindings.getCurrentRow ();

    createTaskPopup (null);

    }

    -To call createTaskPopup method-

    {} public void createTaskPopup (PopupFetchEvent popupFetchEvent)

    System.out.println ("Popup");

    UIComponent base = JSFUtils.findComponentInRoot ("f1");

    Popup RichPopup = (RichPopup) JSFUtils.findComponent (base, "p1");

    AdfFacesContext.getCurrentInstance () .addPartialTarget (popup).

    FacesContext facesContext = FacesContext.getCurrentInstance ();

    ExtendedRenderKitService service is Service.getRenderKitService (facesContext, ExtendedRenderKitService.class);.

    service.addScript (facesContext, "var AdfPage.PAGE.findComponent = popup (\" "+)")

    popup.getClientId (facesContext) + "\"); Popup.Show ();");

    ADFContext.getCurrent () .getPageFlowScope () .put ("forceActivate", "true");

    }

    }

    Can someone help me solve this problem please.

    Why isn't deleting or updating Im a selection. ? dvohra21 470275 Bob Rhubart-Oracle

    It worked for me...

    If (_type is DataChangeEvent.DELETE)

    {

    OperationBinding opBinding = bindings.getOperationBinding("DeleteProjectTask");

    Key = dcIteratorBindings.getCurrentRow () .getKey ();

    System.out.println (Key);

    dcIteratorBindings.setCurrentRowWithKeyValue (projectTaskId);

    opBinding.execute ();

    }

    ElseIf (_type == DataChangeEvent.UPDATE)

    {

    Key = dcIteratorBindings.getCurrentRow () .getKey ();

    System.out.println (Key);

    dcIteratorBindings.setCurrentRowWithKeyValue (projectTaskId);

    createTaskPopup (null);

    }

    {} public void getTaskId (TaskSelectionEvent taskSelectionEvent)

    Add the code in the event here...

    This code gives all the tasks selected by the user

    String s = taskSelectionEvent.getTask (m:System.NET.SocketAddress.ToString ());

    String [] arr = s.split("");

    System.out.println (Arrays.ToString (arr));

    projectTaskId = arr [0];

    }

    {} public void popupDialogListener (DialogEvent dialogEvent)

    If (dialogEvent.getOutcome () .equals (DialogEvent.Outcome.yes)) {}

    OperationBinding opBinding = bindings.getOperationBinding("CommitProjectTask");

    opBinding.execute ();

    }

    ElseIf (dialogEvent.getOutcome () .equals (DialogEvent.Outcome.no)) {}

    OperationBinding opBinding = bindings.getOperationBinding("RollbackProjectTask");

    opBinding.execute ();

    }

    }

    {} public void createTaskPopup (PopupFetchEvent popupFetchEvent)

    System.out.println ("Popup");

    UIComponent base = JSFUtils.findComponentInRoot ("g1");

    Popup RichPopup = (RichPopup) JSFUtils.findComponent (base, "p1");

    now find component IDS of the region

    UIComponent partTable = JSFUtils.findComponent (base, "p1");

    dial the PPR on your component found

    AdfFacesContext.getCurrentInstance () .addPartialTarget (popup).

    FacesContext facesContext = FacesContext.getCurrentInstance ();

    ExtendedRenderKitService service is Service.getRenderKitService (facesContext, ExtendedRenderKitService.class);.

    service.addScript (facesContext, "var AdfPage.PAGE.findComponent = popup (\" "+)")

    popup.getClientId (facesContext) + "\"); Popup.Show ();");

    ADFContext.getCurrent () .getPageFlowScope () .put ("forceActivate", "true");

    }

    }

  • Is it possible to disable the option "graphic print" in anychart (specifically the gantt charts)

    Hello

    I need to prevent people from being able to print a chart (yes I know that they can still take a screenshot and print that - the requirement comes from a larger)

    Any ideas if there is a way?

    Thank you

    Got the solution

    AnyChart Flash Chart Component Documentation

  • Sort order in the bar charts

    Hi guys,.

    I am new to BI, so a quick and simple question for you experts.

    I have a horizontal bar on my rtf model graph... but my axis there is not being properly sorted...

    I have data on my axis Y as

    Period - P1, P2, P3, P4... P10, P11, P12, P13

    I have a column order too

    Ranking - 1,2,3 and 4... 10, 11, 12, 13

    But my graphic is displayed in

    P1, P10, P11, P12, P13, P2, P3... P9

    Can you please guide me on how to get ordered the axis Y.

    Hi reda,.

    The query that is used to display the y-axis must include a clause of 'sort by period.

    for example below is the query used to display the y-axis in you.

    Select the period r, period d

    ;

    Change to something like below

    Select the period r, period d

    order by period;

    Hope this helps, if so mark as answer please.

  • 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

  • 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

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

  • 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

  • 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

  • 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

  • Interactive report several series in the same chart?

    Hello
    I am about to develop a chart report showing multiple series in the same chart
    ex
    Series1: product A, amounts, dates
    Series2: product B, amounts, dates
    etc.
    It would be good to use IntractiveReports in this case, but is - it possible?
    Thanks for the tips & tricks
    Cordially GASon

    Hi Gunnar,

    It is not actually possible create a multiple series chart using the Actions menu for an interactive report. Only the single series charts can be generated using this option. You need generate a separate table to manage your needs, which you obviously could position itself on the same page as your interactive report. The advantage to generate a separate table means that you can choose from a wide range of types of exposed by the wizards for creating Flash charts. We take to support the generation of 4 types of charts (horizontal bar, column, line, Pie) via the Action of graphics on interactive reports menu, but we support 26 types of graphs (ranging from the Gantt chart 2D column) via Wizards of creation. You may find it useful to take a look at my sample application (http://apex.oracle.com/pls/apex/f?p=36648) and also books AnyChart-online (http://anychart.com/products/anychart/overview/) and the graphics library, for more information on the cards.

    I hope this helps.

    Kind regards
    Hilary

Maybe you are looking for

  • Virtual store Toshiba account reset - 33405

    Hello I have a Toshiba JournE and I need help for the store online (white screen on startup)Please make a reset of account, account number is 33405 Thank you!

  • Safari closes when you click on the url bar

    Hello Here's my problem: when I click on the URL bar (where the url for websites (or name) is written for ex right now: Apple Inc. is written in green.)  Safari closes and gives an error message and asks me if I want to send an error message I did to

  • move licenses Office 2007 to other computer OUE

    I had Office 2007 (staff & student) is installed in 3 laptops at home. One of the laptops running Vista recently broke down and it no longer works and I bought a new one with Windows 7 and want to install office in there. How "uninstall/release" the

  • Standby and hibernation are gone power options

    For the settings in the "Power options properties" folder (not the folder), I did something to cause the ability to enter "sleep" mode and mode to completely disappear as hibernation options. Now when I want to turn off my Gateway NX500S laptop, the

  • Network printer works, it then says access denied the next

    Main PC running Vista, HP printer, router and DSL modem Wireless Linksys.  Remote control PC is running XP.  Printed OK one day, then said access denied the next.  Can see the files shared by travel media.Restared router wireless, PC main and NO help