Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

CONTACT US

Retail Training Forum
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new

Search Courses

Employee record is not saving

0
I am trying to go through the steps of "Create Employee.pdf". I am able to run the page just fine, but when I save the record and query the FWK_TBX_EMPLOYEES table, it doesn't display any of the newly created records. All I see is 7 old records. There's no error on the page either.
I am connecting as sp_AkashM_qbb. I just followed the steps in the pdf, but haven't been able to save any records. Please let me know if you need more information. I appreciate the help.

I even tried to do this by creating my own table: AM_INSERT_DEMO.
When I run the page without invoking createEmployee() method within AM (Step 4.2 in "Exercise - Create.pdf" of OA Framework, attached), this works fine, but when I put the code in and run the page, I get this error:

You have encountered an unexpected error. Please contact system adminitrator for assistance.

Would someone be able to login to my remote machine and see what I am doing wrong? I am stuck and not able to proceed further.

Thanks,
AKash M
Responses (4)
  • Accepted Answer

    Tuesday, December 20 2016, 03:25 AM - #Permalink
    0
    Any updates on this please?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 20 2016, 11:17 PM - #Permalink
    0
    Hi Akash,

    Following reason could be exists for same.

    1. Check EmployeeVO object is based on EO and attribute of VO object mapped with EO Object Attribute.
    2. Check You are calling apply() method from Controller
    3. You Items on Page are mapped with VO Attribute.

    Please check.

    Thanks, Avinash
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 21 2016, 02:55 PM - #Permalink
    0
    Dear Avinash,
    I verified all 3 steps below and still getting same error. Screen-shots attached.

    I am calling commitData() method from CO. It has the same code as apply(). I also verified that each item on the page is mapped to proper VO attribute. I am still receiving contact your system administrator error.

    If I remove following highlighted portion of the code from processFormRequest, the page works fine, but the record doesn't get saved into the DB:

    if (pageContext.getParameter("SaveBttn") != null) { OAViewObject vo = (OAViewObject)am.findViewObject("EmployeeCreateVO1");

    am.invokeMethod("commitData"); //but record doesn't get saved, no error message
    }

    Code removed to get the page running:

    String employeeName = (String)vo.getCurrentRow().getAttribute("EmployeeName");
    Number employeeNumber = (Number)vo.getCurrentRow().getAttribute("EmployeeId"); String employeeNum = String.valueOf(employeeNumber.intValue());


    MessageToken[] tokens = { new MessageToken("EMP_NAME", employeeName), new MessageToken("EMP_NUMBER", employeeNum) }; OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_CREATE_CONFIRM", tokens, OAException.CONFIRMATION, null); pageContext.putDialogMessage(confirmMessage);
    }

    Thanks,
    Akash

    Avinash Kapoor wrote:



    Hi Akash,

    Following reason could be exists for same.

    1. Check EmployeeVO object is based on EO and attribute of VO object mapped with EO Object Attribute.
    2. Check You are calling apply() method from Controller
    3. You Items on Page are mapped with VO Attribute.

    Please check.

    Thanks, Avinash
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 02 2017, 07:07 PM - #Permalink
    0
    Any updates on this please?
    The reply is currently minimized Show
Your Reply

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  May 2024  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
    1  2  3  4  5
  6  7  8  9101112
13141516171819
20212223242526
2728293031  

Enquire For Training

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner