1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

Gantt chart marker not rendered

Discussion in 'JAVA, SOA and Application Development' started by ac.arijit, Apr 4, 2016.

  1. ac.arijit

    ac.arijit Forum Advisor

    Messages:
    217
    Likes Received:
    22
    Trophy Points:
    280
    Location:
    Kolkata, India
    Hi,

    I've followed the instructions provided in the developer's guide to design a gantt chart in a page.

    I've taken two VOs as instructed in the guide, took a VL two build the relationship b/w the two VOs, created the AM and shuttled the VOs and VL in it.

    Created OA component page, set the properties for the pageLayout region, then created a header region under it, created a gantt region under it, set the properties for the gantt region as mentioned in the guide .... Then created a tree region under it and set the properties for that too. and lastly created a pageController, captured the processRequest method and called an AM method within it, which executes the two VOs.

    But, when i run the page, it runs successfully, the HGrid component gets rendered properly, as it should be, but the markers of the GANTT region are not rendered. I've set the TaskType as TaskTypeMap.NORMAL_TASK through a transient attribute. See the output as below.. I can't figure this out. Please help.[​IMG]

    I'm putting the program code for the PGCO and AM too below,

    /*===========================================================================+

    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |

    | All rights reserved. |

    +===========================================================================+

    | HISTORY |

    +===========================================================================*/

    package AppexLineLoading.oracle.apps.wip.LineLoading.webui;





    import oracle.apps.fnd.common.VersionInfo;

    import oracle.apps.fnd.framework.OAApplicationModule;

    import oracle.apps.fnd.framework.webui.OAControllerImpl;

    import oracle.apps.fnd.framework.webui.OADialogPage;

    import oracle.apps.fnd.framework.webui.OAPageContext;

    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;

    import oracle.apps.fnd.framework.webui.beans.OAWebBean;





    /**

    * Controller for ...

    */

    public class LineLoadingPGCO extends OAControllerImpl

    {

    public static final String RCS_ID="$Header$";

    public static final boolean RCS_ID_RECORDED =

    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");





    /**

    * Layout and page setup logic for a region.

    * @param pageContext the current OA page context

    * @param webBean the web bean corresponding to the region

    */

    public void processRequest(OAPageContext pageContext, OAWebBean webBean)

    {

    super.processRequest(pageContext, webBean);





    /* Checking for a probable back navigation fired

    * by the user to navigate back-forth within the pages

    */

    if (!pageContext.isBackNavigationFired(false)) {


    /* Starting the page transaction to identify the session

    * with a specific transaction unit database connection

    */

    TransactionUnitHelper.startTransactionUnit(pageContext,"createLineLoadingTxn");


    /* Checking for a form submission to categorize the page

    * personalizations

    */

    if (!pageContext.isFormSubmission()) {


    /* Getting the page context running application

    * module, which controls the VO handlers

    */

    OAApplicationModule am = pageContext.getApplicationModule(webBean);


    /* Executing the requested or referenced

    * consumption details in QUERY mode.

    */

    am.invokeMethod("initGraphQuery");





    } // End of No FormSubmission block

    }

    /* Handling the scenario, where the browser back navigation

    * is encountered and which potentially may corrupt the

    * page program flow. Raising an exception to stop further

    * execution and avoid data corruption.

    */

    else {

    /* Terminating the open page transaction unit

    * for a safe termination and preventing invalid

    * data posting.

    */

    if(!TransactionUnitHelper.isTransactionUnitInProgress(pageContext,"createLineLoadingTxn",true)) {


    /* Raising exception to stop page flow and display

    * browser back navigation error.

    */

    OADialogPage dialogPage = new OADialogPage(NAVIGATION_ERROR);

    pageContext.redirectToDialogPage(dialogPage);

    }

    } // End of FormSubmission block





    }





    /**

    * Procedure to handle form submissions for form elements in

    * a region.

    * @param pageContext the current OA page context

    * @param webBean the web bean corresponding to the region

    */

    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)

    {

    super.processFormRequest(pageContext, webBean);

    }





    }

    package AppexLineLoading.oracle.apps.wip.LineLoading.server;





    import ApexLineLoading.oracle.apps.wip.LineLoading.server.ApexLineLoadingPlansVOImpl;





    import oracle.apps.fnd.common.MessageToken;

    import oracle.apps.fnd.framework.OAException;

    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;





    import oracle.jbo.server.ViewLinkImpl;

    // ---------------------------------------------------------------------

    // --- File generated by Oracle ADF Business Components Design Time.

    // --- Custom code may be added to this class.

    // --- Warning: Do not modify method signatures of generated methods.

    // ---------------------------------------------------------------------

    public class AppexLineLoadingAMImpl extends OAApplicationModuleImpl

    {

    /**This is the default constructor (do not remove)

    */

    public AppexLineLoadingAMImpl()

    {

    }





    /**Container's getter for AppexLineLoadingPlansVO1

    */

    public AppexLineLoadingPlansVOImpl getAppexLineLoadingPlansVO1()

    {

    return (AppexLineLoadingPlansVOImpl)findViewObject("AppexLineLoadingPlansVO1");

    }





    /**Container's getter for AppexLineLoadingPlanOrdersVO1

    */

    public AppexLineLoadingPlanOrdersVOImpl getAppexLineLoadingPlanOrdersVO1()

    {

    return (AppexLineLoadingPlanOrdersVOImpl)findViewObject("AppexLineLoadingPlanOrdersVO1");

    }





    /**Container's getter for AppexLineLoadingPlansVL1

    */

    public ViewLinkImpl getAppexLineLoadingPlansVL1()

    {

    return (ViewLinkImpl)findViewLink("AppexLineLoadingPlansVL1");

    }





    /**Sample main for debugging Business Components code using the tester.

    */

    public static void main(String[] args)

    {

    launchTester("AppexLineLoading.oracle.apps.wip.LineLoading.server", /* package name */

    "AppexLineLoadingAMLocal" /* Configuration Name */);

    }





    public void initGraphQuery() {

    AppexLineLoadingPlansVOImpl vo = getAppexLineLoadingPlansVO1();

    AppexLineLoadingPlanOrdersVOImpl vo1 = getAppexLineLoadingPlanOrdersVO1();

    if (vo == null) {

    MessageToken[] tokens = { new MessageToken("OBJECT_NAME","AppexLineLoadingPlansVO1")};

    throw new OAException("ICX", "FWK_TBX_OBJECT_NOT_FOUND",tokens);

    }

    if (vo1 == null) {

    MessageToken[] tokens = { new MessageToken("OBJECT_NAME","AppexLineLoadingPlanOrdersVO1")};

    throw new OAException("ICX", "FWK_TBX_OBJECT_NOT_FOUND",tokens);

    }





    // Per Back Button guidelines, never do a blind query without first checking

    // to see if it's necessary.

    if (!vo.isPreparedForExecution()) {

    vo.executeQuery();

    if (!vo1.isPreparedForExecution()) {

    vo1.executeQuery();

    }

    }

    } // end initGanttQuery()





    }
     
  2. ac.arijit

    ac.arijit Forum Advisor

    Messages:
    217
    Likes Received:
    22
    Trophy Points:
    280
    Location:
    Kolkata, India
    Any updates on this guys???? :(:(:(:(:(