Edit advanced table record

Hi,
Can any body tell me how i edit particular row in advaned table using single selection. when i click on particular record in table it converts into editable field.
plz send me code and brief description for this.
Thank u very much....
Thanks,
joy

Hi,
suppose you have check box on the every record of advance table.
1> write the ppr event on check box . i.e. when the check box clicked, the row should be updatable mode.
2> create one transient attribute in VO, return true or false according to check box selected or not
3> set the read only property of every column of the advance table to spel value e.g. {oa.<ViewInstance>,<BooleanTransientAttribute>}
Thanks,
Kumar

Similar Messages

  • Edit customer table record

    I need to create a program that edits the entries of a ztable. I made the the program for inserting data but what is the best way on how to do it?
    I need to select a record and then edit the whole details in the program.

    Hi Adrian,
    There is comprehensive help available in SAP for this.
    But some of things you can put are:
    Auth Group - Either a group of ppl who are authorised to use that table or in case you are not sure at the moment choose no authorizatio.
    Function Grp: you can give the same name as the table. In this case it will automatically generate the function group.
    You can also use an already existing group.
    On the same screen you can choose to have a single-step or two-step maintenance. In either case you need to ptovide a screen no. once you give them these will the screen available to you through sm30 . You can choose any number for screen as you wish . these will be created in the function grp.
    Rest you can leave default as of now. If you still have questions you can revert back
    Regards
    Nishant

  • How to avoid editing a deleted record in a Table component

    Hi! Everyon,
    I am building a prototype using JSC. In Page1.jsp, I have a table displaying the records. On column one there are buttons that allow the user to edit the record, including deleting it. My problem is: when somebody else deleted a record and if the current user tries to edit the same record by clicking the edit button on the corresponding row he will get the next record. Could somebody tell me how to solve this problem? Thanks in advance.
    By the way, I do not access database directly from the Web part. Instead, I dropped a session bean's method on the Table compoment. In the edit button's event handler, I use
               TableRowDataProvider row = (TableRowDataProvider )getBean("currentRow");However, since that record was deleted already I always get the next record.
    With best regards,
    Daniel

    Thank you very much for your help. And sorry for not explaining clearly.
    I have a session bean that has getCities(), getCity(String code) and other methods. getCities() returns an array of CityDO objects and getCity(String) returns a CityDO object. class CityDO basically is a JavaBean containing city code, city name and other information. When I designed the web part using Java Studio Creator, I dropped a Table component to the design view first, then dropped the EJB method getCities() onto that Table component. Up to now, it is very similar to http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ejb.html and everything worked fine.
    In order to edit a CityDO record, I added a column containg "edit" buttons into the Table component. If the user clicks the edit button we will show the CityDO in another page called editPage.jsp. In editPage.jsp, the user can update the city or simply delete it. Here is the major part of the event handler of the edit button in Page1,
        public String editCity_action() {
            TableRowDataProvider row = (TableRowDataProvider)getBean("currentRow");
            String code = (String)row.getValue("code");     // "code" is a field in CityDO
            CityDO city = null;
            try {
                city = cityClient1.getCity(code);
            } catch (Exception ex) {
                ex.printStackTrace();
                return null;
            getSessionBean1().setCity(city);          // pass the city to editPage
            return "editPage";
        }Usually, the above logic is good. However, if somebody else deleted one city and the current user tries to edit that deleted city (it is still in his table), he gets the next city. The real problem is in editCity_action(),
    row.getValue("code") returns an updated value, but I only need the old one.
    You memtioned ArrayList. That could be a good solution. Suppose I have an ArryList containing the CityDO objects, if I can bind the table to my ArrayList that will solve my problem. Could you tell me how to do the binding in that case?
    Thank you again.
    With best regards,
    Daniel
    By the way, I do not access database directly from
    the Web part. I do not understand what you mean by the above
    statement.
    Instead, I dropped a session bean's
    method on the Table compoment. Can you explain further. What method did you drop on
    the Table component?
    In the edit button's
    event handler, I use
    TableRowDataProvider row =
    (TableRowDataProvider
    )getBean("currentRow");However, since that
    record was deleted already I always get the next
    record.Here is the delete code from
    http://developers.sun.com/prodtech/javatools/jscreator
    /learning/tutorials/2/inserts_updates_deletes.html.
    As is is working on the rowkey in the page bean's
    table, that should not be affected by other users in
    other sessions, the rowkey should not change, even if
    the underlying record has changed.
        public String delete_action() {
    form1.discardSubmittedValues("save");
    try {
    RowKey rk = tableRowGroup1.getRowKey();
    if (rk != null) {
    tripDataProvider.removeRow(rk);
    tripDataProvider.commitChanges();
    tripDataProvider.refresh();}
    (Exception ex) {
    log("ErrorDescription", ex);
    error(ex.getMessage());
    return null;
    }What is the underlying structure for the table's
    data. Is it a row cache from a query? Is it an
    ArrayList?

  • Records Not Getting Displayed in Advanced Table

    Hi All ,
    I am rendering an advanced table that displays some records . i have created a VO that is tagged to this Table . The Table was displaying the records satisfactorily initially . Now suddenly the table shows no Search Conducted .
    I checked the VO and the AM . I found out that the query gets executed when the executeQuery() Method is called . The records are also fetched . (i verified this using methods like getRowCount() , getFetchedRowCount() , getRowCountInRange )
    But the records dont get displayed on the page . What could be the problem . Kindly Help !
    Thanks
    Chirag Shah

    Did you make any change to VO later on which might have change the column aliases?
    If you are sure of VO returning the rows during page call, then I will suggest to delete the mapping from table and do that again.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to retain current set of records in advanced table in OAF

    I have an advanced table in a OAF page. Number of records displayed is set to 5. Now, when I have more than 5 records, we can view the next set of records using navigation buttons of the advanced table. One of its column is an image which has "Action Type" as "fireAction" and "Submit" set to "True", which when clicked displays further details about the selected record in a separate region. However, in this process the page is getting refreshed and the table is again displaying the first set of 5 records even if i chose to display details about record in the next set of 5 (i.e after navigating using "Next 5" button of the table).
    Is there any way to retain the current set of records displayed in the advanced table across the page refresh.?
    Thanks
    Nagamanoj

    Solved.
    Somewhere in our code, while populating one of the columns of the table, we were resetting the VO which was causing the issue. Modified that method call to add a parameter to mention from which row should the table be populated.
    Thanks
    Nagamanoj

  • How to perform insert record in Advance table .

    Dear Friends ,
    I have a requirement in OAF ,where i have to make use of advance table and perform
    insert operation in Master Detail page.
    I have sequence number being generated in header region using the same sequence number
    i wish to insert multiple line level records .
    How can i achieve this , kindly share your suggestions .
    Thanks in Advance ,
    Keerthi

    Hi Gyan,
    I have the same requirement like master detail page development. I have developed up to view link crreation. Is there any further steps to be done, please explain in details.
    Thanks in Advance,
    Antonyraj.M

  • Issue with records displaying in the advanced table in popup window oaf

    Dear All,
    I have a requirement as below.
    I have a popup search page in that i am displaying the searched data in advanced table, but the issue is all the rows not displaying in the popup window because of poup window size, even i am not able to view the "Next" button in the table to proceed next records, can someone suggest me how to display the "NEXT" button in the table so the i can view all the records in the table.
    or is it feasible to implement "SCROLLBAR" in the advanced table in popup window so that i can scroll vertically and horizontally to view records.
    Thanks

    Actually i have made a mistake, in my advanced table table property palllet i have mentioned maximum rows fetched 20 but in my page i was displaying 10 records only so thats why the navigation button not displaying,
    Thnaks

  • Advanced table to create a multi-record data entry page

    how to use advanced table or table OAF features to create a multi record data entry page ?
    there will not be any master or header region. Only a multi-record detail region for creating records.

    Hi ,
    There is no such "multi-record detail region" , you can illustrate Master detail in OAF by creating the region in following order .
    1 ) Page Layout region
    2 ) Any header region(eg - message component layout etc ) - for entering and saving header level records .
    3 ) Advance table - for entering and saving the line level records ( with add another row feature ) .
    Thanks ,
    Keerthi

  • Advanced Table in Table - Error on Deleting the master record

    Dear All,
    I have a custom EmployeesVO and a ReimbursementsVO.
    EmployeesVO is the master and ReimbursementsVO is the child.
    They are based on EO which are linked by entity association. The VOs are linked by a viewlink (which is inturn based on the Association)
    I have created an advanced table-in-table, where EmployeesVO is the master, and in the detail, I have the reimbursementsVO.
    Both inner and outer table have a "Select and Delete Row" functionality. This works fine on the Inner table (Reimbursements).
    However on the outer table for Employees, I have two options
    1. In the Employees EO , select the "Implement Cascade Delete"
    2. In the Employees VORowImpl, create a "Remove" method, iterate through the child rows using view link accessor, delete the child rows first and then call super.remove method. to delete the employee row itself.
    In both cases, I get an error saying "error forming SQl statement...Invalid column type" or "Unable to create java.lang.Object". On debugging, I see that it has no issues deleting the child rows and that goes through fine, but when the master row is deleted - :(
    Will be grateful if anyone can provide any advise on this.
    Thanks !

    From MetaLink it looks like bug# 2433386
    Not yet resolved.

  • Advanced Table in Advanced Table

    Hi Gurus,
    I have advanced table in advanced table , master detail where dept is the master and emp is detail both master and detail had add another row button . In the outer region when i press add another row i can see that new blank record added most of the time as expeced , but in the inner advanced table region it works most of the time but after some 5 6 attemps of adding another row in the inner region it stops showing me blank rows , but i know its added in the VO as if i refresh the page it shows or if minimize the otuer region and expand it i can see the new rows added in the inner region .
    i have called OAPartialPageRenderUtils.addPartialTargets in PFR , but still sometime i dont see the new record added in the inner region .
    Please help me in figuring out where i am going wrong .
    As always many thanks
    Prasad

    sorry...this is not the answer for question...but i have a question regarding advance table in advance table...
    I want to show the data like
    Header (advance table)
    -------data
    -------Detail region
    ----------lines (advance table)
    ------------data
    ------------Detail Region
    ----------------Deliverables (advance table)
    i am able to show the data up to lines (advance table)
    but when i click on the show link of lines (advance table), i got this error
    java.lang.ClassCastException
         at oracle.apps.fnd.framework.webui.event.OAAdvancedTableEventHandler.handleDisclosureEvent(OAAdvancedTableEventHandler.java:773)
         at oracle.apps.fnd.framework.webui.event.OAAdvancedTableEventHandler.handleEvent(OAAdvancedTableEventHandler.java:167)
    can any one suggest me why i am getting this exception or
    the hierarchy i want to get is it really possible or not....
    Thanks in advance
    Message was edited by:
    user646257

  • Total in advance table region

    hi all,
    i have one advance table region with total.
    in advance table region displays records(ex my advance table region displays 5 records).
    every number field display the total(this total calculate 5 records data)
    ex:
    1000
    2000
    3000
    4000
    5000
    total 15000
    my page work like above senario.
    but my client requirement is,in 5 records he select any two records and display the 2 records total.
    how to achive this
    plz help me its very urgent...
    Thanks
    Edited by: its urgent on Apr 13, 2012 4:38 AM

    Hi Gurus,
    Please help me. its very urgent
    Thanks

  • Problem with sorting a Column in Advance table .

    Dear Friends ,
    I have a OAF page developed with advanced table region , the table has several columns, now i would
    like to sort a column named "Trial number" which is of the type Number .
    To accomplish this i have given Sort Allowed : True (Property Inspector) . but when i click on the sort button
    i am unable to sort the record . Could you please some one give me some suggestion and help me out .
    Regards,
    Keerthi.k

    No there is no Transient attribute involved , could you please tell me what might cause this error .
    Basically this page is for inserting a record.
    Thanks ,
    Keerthi
    Edited by: user1140193 on Oct 21, 2011 7:15 AM
    Edited by: user1140193 on Oct 21, 2011 7:16 AM

  • How to perform delete operation on Delete Column In Advance Table?

    Hi All,
    I have to add a delete column in seeded page(Advance table).
    For that I have followed jdev tutorial.Now after clicking delete image the column is not deleting also it is not throwing any error except mine.
    Please Help.
    Regards,
    SHD

    Hi AJ,
    In the seeded table there is a seeded column correct.Where it is using above parameter.But while I am using same parameter it is doing nothing.
    For deleting is it necessary to extend VO or EO?
    Here is my code in pfr
                                    String recordNumber = pageContext.getParameter("record");
                                    OAException mainMessage =
                                    new OAException("Are you sure you want to delete this employee"+recordNumber);
                                    OADialogPage dialogPage =
                                        new OADialogPage(OAException.WARNING, mainMessage, null, "",
                                    String yes = pageContext.getMessage("AK", "FWK_TBX_T_YES", null);
                                    String no = pageContext.getMessage("AK", "FWK_TBX_T_NO", null);
                                    dialogPage.setOkButtonItemName("DeleteYesButton");
                                    dialogPage.setOkButtonToPost(true);
                                    dialogPage.setNoButtonToPost(true);
                                    dialogPage.setPostToCallingPage(true);
                                    dialogPage.setOkButtonLabel(yes);
                                    dialogPage.setNoButtonLabel(no);
                                    java.util.Hashtable formParams = new java.util.Hashtable(1);
                                    formParams.put("compElementId", recordNumber);
                                    dialogPage.setFormParameters(formParams);
                                    pageContext.redirectToDialogPage(dialogPage);
                                } else if (pageContext.getParameter("DeleteYesButton") != null) {
                                    String recordNumber = pageContext.getParameter("record");
                                    Serializable[] parameters = { recordNumber };
                                    OAApplicationModule am = pageContext.getRootApplicationModule();
                                    OAApplicationModule compElementAM = (OAApplicationModule)am.findApplicationModule("xxCompElementsAM");
                                    if(compElementAM==null) {
                                        compElementAM=(OAApplicationModule)am.createApplicationModule("xxCompElementsAM","xxmycompany.oracle.apps.per.selfservice.competency.profile.server.xxCompElementsAM");
                                    compElementAM.invokeMethod("deleteRecord", parameters);
                                    MessageToken[] tokens =
                                    { new MessageToken("compElementId", recordNumber) };
                                    OAException message =
                                    new OAException("Are you sure you want to delete this employee"+recordNumber);
                                    pageContext.putDialogMessage(message); regards,SHD
    Edited by: SHD on May 6, 2011 3:31 AM

  • Getting Null while trying to printhe column value entered in advanced table

    Hi All
    I am developing a OAF data entry form, which has advanced table region with LOV for each column.
    I have to validate the data entered in form. So initially I am trying to capture the values entered in form. I have written following code in CO.
    if(pageContext.getParameter("Save")!=null)
    // OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
    int j = vo.getFetchedRowCount();
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    this Retuns 1
    String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    System.out.println("Value: "+a);
    This returning null
    I tried folleowing code also
    if(pageContext.getParameter("Save")!=null)
    // OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String[] as = null;
    String[] vNumber = null;
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
    int j = vo.getFetchedRowCount();
    try
    System.out.println("abouce try");
    vo.reset();
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    int i = 0;
    as = new String[j];
    vNumber = new String[j];
    while (vo.hasNext())
    vo.next();
    System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
    vNumber[i] = String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ProductGroup")).concat(String.valueOf(""));
    System.out.println("Output"+as[i] +vNumber);
    i++;
    //System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    //String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    //String b=(String)vo.getCurrentRow().getAttribute("Configuration");
    //System.out.println("Value: "+a);
    //System.out.println("Value1: "+b);
    am.save(pageContext);
    }catch (Exception exception)
    throw new OAException("unable to print the records",OAException.WARNING);
    Still the output retuning null
    abouce try
    Fetched row count 1
    Inisde the do while loop0
    Outputnullnull
    But records are saved successfully
    Can someone assist why it is printing null for column Configuration?
    Thanks in advance.
    Srini
    Edited by: user608535 on Jan 30, 2013 11:53 PM
    Edited by: user608535 on Jan 31, 2013 1:10 AM

    Hi All
    I am developing a OAF data entry form, which has advanced table region with LOV for each column.
    I have to validate the data entered in form. So initially I am trying to capture the values entered in form. I have written following code in CO.
    if(pageContext.getParameter("Save")!=null)
    // OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
    int j = vo.getFetchedRowCount();
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    this Retuns 1
    String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    System.out.println("Value: "+a);
    This returning null
    I tried folleowing code also
    if(pageContext.getParameter("Save")!=null)
    // OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String[] as = null;
    String[] vNumber = null;
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
    int j = vo.getFetchedRowCount();
    try
    System.out.println("abouce try");
    vo.reset();
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    int i = 0;
    as = new String[j];
    vNumber = new String[j];
    while (vo.hasNext())
    vo.next();
    System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
    vNumber[i] = String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ProductGroup")).concat(String.valueOf(""));
    System.out.println("Output"+as[i] +vNumber);
    i++;
    //System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    //String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
    //String b=(String)vo.getCurrentRow().getAttribute("Configuration");
    //System.out.println("Value: "+a);
    //System.out.println("Value1: "+b);
    am.save(pageContext);
    }catch (Exception exception)
    throw new OAException("unable to print the records",OAException.WARNING);
    Still the output retuning null
    abouce try
    Fetched row count 1
    Inisde the do while loop0
    Outputnullnull
    But records are saved successfully
    Can someone assist why it is printing null for column Configuration?
    Thanks in advance.
    Srini
    Edited by: user608535 on Jan 30, 2013 11:53 PM
    Edited by: user608535 on Jan 31, 2013 1:10 AM

  • Question regarding Classic and Advance table

    Hi,
    I have classic and advance table. I am populating with VO that brings 100 record. When i render page i see last record being displayed. How can i show my first record by defult on both tables?

    By default the first record will be displayed, if you are seeing the last one instead, you probably did a vo.last() in the code.
    Thanks
    Tapash

Maybe you are looking for

  • Equipment to be sent to contractor for repairs

    PM Gurus; In a scenario, I want to send equipment for repairs to contractor and also track the maintenance cost on 'maintenance order'. I am following the steps; 1) For every equipment, one non valuated material is created in MM 2) Maintenance order

  • Desktop suddenly appears as a document and cannot be opened

    Suddenly desktop is not available - when trying to open desktop the message is that there is no programme to open this document! How did tgis happen and how do I get it right again?

  • EBS someEntityEO.xml not Picked up in WLS After Change

    Hi Experts, I changed a BC4J EO.xml file directly under the EBS java_top directory, and then rebounce all the Weblogic servers (admin+managed). But the change doesn't seem to be picked up by the appserver. I also bounced the http server. Anything els

  • Patch 4252319

    Patch 4252319 README.txt for e-business 11.5.10.2 has a rather cryptic statement in it that you should apply this patch "...if you are using NLS versions in your environment." So I infer that this means if you are using "MULTIPLE" NLS versions - e.g.

  • How to learn Order Entry modules

    Hi Does anyone has recomendations as to what is the best way to learn about the Order Entry and other Oracle Applications Modules. We are currently using ver 11.0.3 and we will be upgrading during the coming year. I want to learn the current Oracle a