Urgent please: Master-Deatils OAF Page for enter and Update data

Hi all,
i need your help to build master-details oaf page for Enter / Update data
for example: We have Locations , Department , Employees tables
all these tables on one oaf page (OAAdvancedTable)
when user enter New Location and go to Enter it's Departments and for each department, he can Enter they employees.
and Regarding to Update date:
- when user select Location , Department table fetch all departments and user can update
waiting your support for urgent please
Regards
Hany

i do these Steps :
1- Create LocationEO,DepartmentEO and EmployeesEO
2- Create Association between LocationEO and DepartmentEO with one-to-Many relation (LocToDeptAO)
3- Create Association between DepartmentEO and EmployeesEO with one-to-Many relation (DeptToEmpAO)
4- Create View Object (LocationVO)
5- Create DepartmentVO (and add LocationEO due to LocToDeptAO)
6- Create EmployeesVO (and add DepartmentEO due to DeptToEmpAO)
7- Creare View Link between LocationVO and DepartmentVO (Based On LocToDeptAO) --> LocToDeptVL
8- Creare View Link between DepartmentVO and EmployeesVO (Based On DeptToEmpAO)---> DeptToEmpVL
9- Add LocaionVO to Application Module, then add DepartmentVO Via (LocToDeptVL)
10-Add EmployeesVO to Application Module Via (DeptToEmpVL)
and Then Run Test AM, all data fetch sucessfully, and i can insert data with proper relations
NOw, i want to implement this Business Logic in single oaf Page using 3 OAAdvancedTable (Master - Details -Details )
Regards

Similar Messages

  • Creating a external content type for Read and Update data from two tables in sqlserver using sharepoint designer

    Hi
    how to create a external content type for  Read and Update data from two tables in  sqlserver using sharepoint designer 2010
    i created a bcs service using centraladministration site
    i have two tables in sqlserver
    1)Employee
    -empno
    -firstname
    -lastname
    2)EmpDepartment
    -empno
    -deptno
    -location
    i want to just create a list to display employee details from two tables
    empid firstname deptno location
    and same time update  in two tables
    adil

    When I try to create an external content type based on a view (AdventureWorks2012.vSalesPerson) - I can display the data in an external list.  When I attempt to edit it, I get an error:
    External List fails when attached to a SQL view        
    Sorry, something went wrong
    Failed to update a list item for this external list based on the Entity (External Content Type) 'SalesForce' in EntityNamespace 'http://xxxxxxxx'. Details: The query against the database caused an error.
    I can edit the view in SQL Manager, so it seems strange that it fails.
    Any advice would be greatly GREATLY appreciated. 
    Thanks,
    Randy

  • How to use a single page for create and update mode.

    Hi,
    I need to develop a single page to be used for both create and update modes.
    I am going to use a variable MODE
    and i will set this in the emp summary page.
    Based on the button clicked by the user i have to render the JSF page.
    For tis if the user selects a perticular and cliks on update thn i will pass the empno to the next.
    so there in the next i will appy a ViewCreiteria on my View Obj to fetch only that row so that only that emp will be displayed ion update mode.
    This is working fione for me.
    So now the issue is
    when the user clicks on CreatEmp button.
    i need to enable my VO for insert operations.
    for this i wrote the code like this in the beforePhase event
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding valBinding = ctx.getApplication().createValueBinding("#{data}");
    BindingContext bContext = (BindingContext) valBinding.getValue(ctx);
    DCDataControl dcControl = bContext.findDataControl("DataControl");
    Application app = ctx.getApplication();
    ApplicationModule am = (ApplicationModule) dcControl.getDataProvider();
    System.out.println("After Appmodule initiation");
    // get the VO reference and initiate the query
    System.out.println("Before Page VO initiation");
    PrismDmPageSectionViewImpl vo = (ViewImpl)am.findViewObject("View");
    //ViewRowImpl row = (ViewRowImpl) vo.createRow();
    /* TO CREATE AN EMPTY ROW*/
    Row row=vo.createRow();
    System.out.println("New Row is created");
    //vo.createKey(row);
    vo.insertRow(row);
    vo.setCurrentRow(row);
    By doing this a new empty page is rendered.
    But when i fill up the values and click on ok.. i am getting the error like this..
    JBO-27023: Failed to validate all rows in a transaction.
    JBO-27027: Missing mandatory attributes for a row with key null of type View3
    JBO-27014: Attribute Id in View3 is required
    JBO-27014: Attribute PageeId in View3 is required
    Please point me out where i am missing.
    Thanks

    Hi,
    In my opinion you are over complicating things.
    This is what I do for using the sme page as both create and update without all this code.
    1) Create a browse page containing a an adf table with a select one component bound to your view object.
    2) Create an additional edit page containing only an edit form containing fields of your view object that your users must enter in order to add or edit rows.
    3) Link the pages in the JSF diagram with an "edit" navigation case from browse to edit page and a "return" navigation case from edit to browse (make sure that redirect option is NOT set on both cases)
    4) Remove the submit button from the edit page and add two application module bindings for the commit and rollback operations as command buttons in the form footer facet. Make sure that both buttons has an action of return and that their disabled property is set to false. You will probably change their labels to ok and cancel respectively.
    5) Drop a create action for your view object from the data control palette inside your page as a command button and set the action property to edit also.
    3) Set the action property of the view button to edit
    This should basically work without any code from your part. -- at least it does so for me -- if you like to make it a bit more funcy you may add am action listener inside your buttons and set a requeScope variable for example #{requestScope.editing} to true or false depending on the button clicked. Then add a title to your page with a value like #{requestScope.editing == true ? 'Editing record' : 'Adding a new record'}..
    Hope that helps.
    Thanassis

  • Developer Mode Error: Stale Data -- Master Detail OAF Page

    Dear Members,
    I have created a simple master detail OAF Page by following the below steps:-
    1/ Created a MasterEO
    2/ Created a DetailEO
    3/ Created a MasterDetailAO
    4/ Created a MasterVO based on MasterEO
    5/ Created a DetailVO based on DetailEO
    6/ Created a MasterDetailVL (view link) based on MasterDetailAO
    7/ Created an AM
    7/ Attached the MasterVO and MasterDetailVL to the AM
    8/ Created a simple Master Detail Page in which user can enter the master and detail records. After entering the details user can click on the save button.
    Code in AM_
    public void createHeader()
    +{+
    OAViewObject vo = getMasterVO1();
    if (vo.getFetchedRowCount() == 0)
    +{+
    vo.setMaxFetchSize(0);
    +}+
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    +}+
    public void createLines()
    +{+
    OAViewObject vo = (OAViewObject)getDetailVO1();
    if(!vo.isPreparedForExecution())
    +{+
    vo.setWhereClause("1=2");
    vo.executeQuery();
    +}+
    vo.setWhereClause("1=2");
    vo.setWhereClauseParams(null);
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    +}+
    Code in ProcessRequest method of CO_
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createHeader");
    am.invokeMethod("createLines");
    I am facing the below error when trying to save the master detail records in the respective OAF Page_
    Developer Mode Error: Stale Data_
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example). If the browser's navigation buttons were not used, this error could have been caused by coding mistakes in application code. Please check Supporting the Browser Back Button developer guide - View Object Primary Key Comparison section to review the primary causes of this error and correct the coding mistakes.
    Cause:
    The number of displayed records, 1, exceeds the actual number of records, 0, in view object AstfAM.DetailVO1. Some of the displayed records may have been deleted.
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    I request the members to help me in resolving the above error.
    Many thanks in advance.
    Regards,
    R4S.

    Hi user11991972,
    I just faced the same issue and I managed to fixed it using this thread:
    Developer Mode Error: Stale Data
    In my case, I amended the "Change indicator" checkbox on some of EO attributes.
    One of the master attributes was updated by the AM from the detail page, but when navigating back, the master page was not refreshed due to a customer requirement.
    But I wonder if it could be of any help in your case...
    Regards,
    Olivier

  • I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.Not working in USA timezone.

    I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works fine in our side (Timezone,kolkata ,india even for Timezone,slvaniya,USA) but our USA client is telling that on changing the date it not starts from start-up sequence.Can anyone plz suggest the reason for it.

    This is the code which we have used.
    //////////Return if it is first time for the day or not//////////////
    + (BOOL)isFirstTimeToday {
    BOOL result = YES;
    NSDate *now = [[NSDate alloc] init];     /// represents the current time
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *components = [gregorian components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate: now];
    NSDate *today = [gregorian dateFromComponents:components];
    [now release];
    [gregorian release];
    NSDate *savedDate = [[NSUserDefaults standardUserDefaults] objectForKey:LAST_TIME_VISITED];
    if (savedDate) {
    if ([today earlierDate:savedDate] == today) {
    result = NO;
    return result;
    ////////Stores the date/////////////
    + (void)userDidVisitReenforceScreenToday {
    [[NSUserDefaults standardUserDefaults] setObject:[NSDate todayAtMidnight] forKey:LAST_TIME_VISITED];
    ////////////What [NSDate todayAtMidnight] stores/////////////////////
    + (NSDate *)daysFromNowAtMidnight:(NSInteger)nOfDays {
    NSDate *date = [NSDate dateWithTimeIntervalSinceNow: (86400*nOfDays)];
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *components = [gregorian components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate: date];
    NSDate *dateAtMidnight = [gregorian dateFromComponents:components];
    [gregorian release];
    NSLog(@"dateAtMidnight : %@",dateAtMidnight);
    return dateAtMidnight;
    + (NSDate *)todayAtMidnight {
    return [self daysFromNowAtMidnight:0];
    Please Suggest..

  • I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works with iPod not with iPhone

    I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works with iPod not with iPhone

    Try posting in the developer forums to see if you can get some assistance,you'll have to be a registered developer for access though.
    developer.apple.com

  • Good evening, Today I bought iMac 21.5 MD093.In your website says that the keynote, pages for free and asks me money.Why?

    Good evening, Today I bought iMac 21.5 MD093.In your website says that the keynote, pages for free and asks me money.Why?Why??????Please tell me !!!

    We are volunteer helpers who are users like yourself. We aren't Apple. You have Applecare. Call them and see what they have to say.
    Jerry

  • When i try to open photoshop this shows up Please uninstall and reinstall the product.  If this problem still occurs, please contact Adobe technical support for help, and mention the error code shown at the bottom of this screen.  Error: 16

    i had to take my photoshop file into a hardrive because my dad was going to give me a new Mac and when things didn't work out and went back to my old one i use the time capsule thing to save everything before but didn't give me photoshop so i physically moved the file and tried to open it but then this error shows up
    Please uninstall and reinstall the product.
    If this problem still occurs, please contact Adobe technical support for help, and mention the error code shown at the bottom of this screen.
    Error: 16
    and when i click the uninstall app on the file it tells me this
    The alias “Uninstall Adobe Photoshop CS6 2” can’t be opened because the original item can’t be found
    and when i click fix alias i click on photoshop and the app just turns into photoshop and i just run in circles
    please help thank you

    Run the cleaner tool and reinstall.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Download CS6 products
    Mylenium

  • Can we edit simultaneously in Pages for iCloud and Pages for OS X?

    I know that it's possible for multiple users to edit a document in Pages for iCloud (beta). But what happens if one user is using Pages for iCloud, and another person is editing the same document in Pages for OS X? Will the changes be updated in real time? Is there a danger of creating two different documents, as sometimes happens in Dropbox?
    I ask because Pages for Mac still offers more features and tools than Pages for iCloud. So some users may be able to work in the iCloud version, but at least one of wants to use the OS X version to make the final graphic tweaks and edits. Is this possible, or are we asking for trouble by using two different editions of Pages?

    Well... it looks like you were right. While Pages for iCloud theoretically supports simultaneous editing, in actual practice it's very difficult. There's no way to add comments or chat (as Google Docs allows), so it's hard to discuss what each of us is doing. And certain UI elements work differently in the OS X vs. iCloud versions, so results can be unpredictable.
    iWork for iCloud will only succeed when all versions of the iCloud apps (OS X, iOS and iCloud) are 100% compatible with each other. Fingers crossed.

  • I have bought pages for ipad and i want it in my mac pro

    Hi!
    I have bought pages for ipad and i want it in my mac pro and for my macbook, but when i go to the app store it says that i have to pay for it again. Do I have to pay for pages again for my mac pro?
    Thanks! : )

    Yes, iPad and Mac programs aren't the same even when they have the same name.

  • I have been using pages for months and now I can not get it to open any templet or previous document to open?

    I have been using pages for months and now I can not get it to open any templet or previous document to open?

    A little more information would be helpful.
    What version of Pages are you using? The latest is 4.1 with the update released on July 20. In Snow Leopard 10.6.8 you need at least Pages 4.0.5. If you're not running the latest versions & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. They must be in the iWork '09 folder in Applications. That iWork folder must be named iWork '09. If it doesn't have the '09 Software Update won't find them & the updaters won't work.
    If you are running at least Pages 4.0.5 & haven't made any other changes to your Mac since Pages was last working correctly, the likely culprit is corrupt preferences. Go to HD > Users > (your account) > Library > Preferences & delete the com.apple.iwork.pages.plst & restart Pages.

  • I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Does this sort of software exist?

    I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Imagine a spreadsheet - each time a write something in a cell and press enter to go into the next cell, I need the app/software to automatically insert the corresponding dat and time. Does this sort of software exist?

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • How do I set up pages for mac and ipad to share a document and keep them synced.

    How do I set up pages for mac and ipad to share a document and keep them synced.

    You can upload them from Mac to iCloud and then download on the iPad. They only directly sync between iOS devices. The Mac version of Pages has more options that are not available on iOS. If you use a font that is not available on iOS it will change the font. Some layout options aren't available either.

  • TCODES FOR SENDINGIG AND RECEIVING DATA THROUGH ALE

    Hi,
    All,
    Message type I can find for the following :
    Equipment master: EQUIPMENT_CREATE
    Work centre: WORKC2, WORKC3 or WORKC4
    Functional location: FUNC_LOC_CREATE
    but i did'nt  find  a transaction code for sending and receiving data through ALE.
    For example:  Send material    T.code BD10,
                         Receive material T.code BD11.
    Please give the solution.
    Regards.

    can Tx BD21 is of any help

  • Validity Table not updating for 0IC_C03 while updating data

    Hi,
    1.Validity table not updating for 0IC_C03 while updating data in my BW 7.4 With HANA data base?
    Key fields : 0Plant
                       0Calday
    if you run this programe after loading data - RSDG_CUBE_VALT_MODIFY it is updating.
    2. I am not getting no marker update option in non-cumulative Info cube 0ic_c03 manage tab or in DTP tabs check as per 7.4 modifications?
    and  2LIS_03_BX in DTP I am getting below this option only
    Can you please give me solution for this issues.
    Regards
    Umashankar

    Hi Uma,
    Please go through the below link which might be helpful.
    Not able to Edit Validity Table : RSDV
    Marker Update Option is available under Collapse tab of Info cube.
    Thanks,
    Karan

Maybe you are looking for

  • Error executing reports from forms

    Hi, Iam trying to launch reports9i from forms9i, Iam getting following error, 500 Internal Server Error java.lang.StringIndexOutOfBoundsException: String index out of range: 0      at java.lang.String.charAt(String.java:444)      at oracle.reports.rw

  • Can't connect more than one PC to my network at the same time.

    When trying to connect a second wireless laptop to my network, the one already connected gets disconnected. I'm using a WRT110 router(cable connection) that I bought 5 days ago, and two laptops with Win Vista. I don't have any PC wired connected.

  • File type for an attachment

    I'm new at this. This may be a stupid question, but here goes. ALL I need is to know what file form do I use to send an attachment to a Mac Pro. I have some new software "VueScan" on a windows computer. It only makes attachments in the PDE format and

  • Burning 2 DVD's at a time (DVDSP 4.1.1)

    Is it possible to burn two DVD(-R')s at a time from DVD Studio Pro with the two SuperDrives installed? Thanks Paul

  • I enjoy candy crush. Really did not work what do I do next

    I Tried what you said still will not open <Re-Titled By Host>