Add Dynamic Rows in a table

Hi All,
I have fetaure to implement that requires me add n no rows in a table in one transaction.
Take the scenario as :-
I have 2 tables :
Parent(Id,name)
Child(Id ,name ,ParentId)
So while creating Parent in a adf form ,I want add N no or child dynamically through UI.
How can this be achieved IN ADF

Add CreateInsert action for your view object instance into page binding and try this code.
import oracle.adf.model.BindingContext;
import oracle.binding.BindingContainer;
import oracle.binding.OperationBinding;
public BindingContainer getBindings() {
        return BindingContext.getCurrent().getCurrentBindingsEntry();
    public void createNNumbersOfRows(int n) {
        for(int i=1;i<=n;i++){
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");
        Object result = operationBinding.execute();
    }

Similar Messages

  • How to add new rows in Advanced Table along with attribute value?

    Hi,
    I have one advanced table that contain one messageChoice and messageTextInput field.
    I want to add new rows in advanced table. I can able to add rows using the AddMoreRows button in the footer of the advanced table,
    but I want to add attribute value(contactId) each time when new row created.
    contactId I am getting from pageContext.getParameter("contactId")
    How to achive this? Please suggest.
    Thanks & Regards,
    Sunita

    Hi,
    There are two ways to do it.
    1. Use create method of entity object, create method fires whenever you creates new row.
    2. Handle the event raised by addanotherrow button and write logic there to initialize contactid as you are getting contactid from pageContext so I will suggest you to use this method.
    if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    //write your logic here to default the contact id
    Hope this will help.
    Regards,
    Reetesh Sharma

  • How to add new row to adf table progrmatically

    Hi,
    I have a bean with a list and correspoding getter & setter methods inside it.
    I created a datacontrol out of the bean and I am displaying af:table in the ui
    binded to this list.
    Ex:
    public class StudentBean {
    private List<Student> students;
    // getter & setter methods.
    jsp
    <af:table value="#{bindings.students.collectionModel}" var="row"
    rows="#{bindings.students.rangeSize}"
    emptyText="#{bindings.students.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.students.rangeSize}"
    rowBandingInterval="0"/>
    How to add a new row programitically to this adf table.
    I dragged and dropped 'Create' from operations menu on to jsp.
    But on click of that.no new row is being added to the current table.
    On click of a button in u.i I want to add a new row to the table.
    Thanks,
    Praveen

    Hi,
    The source code is as below.
    <af:table value="#{bindings.students.collectionModel}" var="row"
    rows="#{bindings.students.rangeSize}"
    emptyText="#{bindings.students.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.students.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.rscGroupsQuery.queryDescriptor}"
    queryListener="#{bindings.rscGroupsQuery.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.rscGroups.collectionModel.selectedRow}"
    selectionListener="#{bindings.rscGroups.collectionModel.makeCurrent}"
    rowSelection="single" id="t1"/>
    <af:commandButton actionListener="#{bindings.Create.execute}"
    text="Create" disabled="#{!bindings.Create.enabled}"
    id="cb1" partialTriggers="t1"/>
    Please let me know where am I doing wrong?
    On click of this button,it is not adding a row dynamically.
    Thanks,
    Praveen

  • How to add the rows formatted as table headings, Tables headings are repeated when a table spans more than one page.

    Hi all,
    i am facing problem while generating Test Result word document after successful execution of TestStand.
    The Problem is :
    i want to add rows Formatted as table headings, table headings are repeated when a table spans more than one page(marked as Red).
    Example:
    Page  No. 1
    |     Test case Number  |  Test Step number      |
    |      100                         |            100                   |
    Page  No. 2
    |     Test case Number  |  Test Step number      |
    |      200                         |            300                   |
    Test Result word document should generate with Table headings(marked as Red) in every pages of the document, but i am not getting as per above example.
    Please through light on this.
    Regards,
    Susa.

    Hi Santiago,
    Thank you very much for your valuable reply.
    i want to generate MS-word report for TestStand after successful testing using MS-word2000.
    Test report contains Actual values, Expected values and Pass/Fail status.
    In my program i have customized all  fields i can able to generate test report which contains Verification engineer name , test mode, test date, start time, end time Actual values, Expected values and Pass/Fail status.etc....
    To put all values of test case number, Test step number, Actual values, Expected values and Pass/Fail status in to table for each time, i will
    insert a row into table every time values arrives, once the table exceedes its page size it moves to the next page, next page should start with table row header  but it start with  values of above said parameters.
    so i'm not able to repeat table row header for each page.
    Please find the attached file for your reference.
    Attched file expected.doc  :   This file contains what i wanted to generate MS-word report. Here table row header "Test Case Number and Test Step Number " is repeated in second page.
    Attached file Actual output from source code.doc   :  This report generated from the source code. Here table row header "Test Case Number and Test Step Number" is not repeated in second page.
    Do you know any property to set "repeat as header row at the top of each page" using MS-word ActiveX in CVI/Labwindows.
    i think this information is sufficient for you,
    Still if you need some information please ask me.
    Thanks
    Susa.
    Attachments:
    Actual output from source code.doc ‏25 KB
    expected.doc ‏26 KB

  • How to add a row in internal table at first row

    Hi All,
                  I need to add a row in an internal table which already has some contents.I want to add this row in the first row.
    Please advice.
    Thanks in advance.

    You mean - you  want to replace the 1st record in the internal table. or you want to sum the new values to the existed record.
    If you want to replace - then you can use as
    read table itab index 1.
    if sy-subrc = 0.
        itab-f1 = 'new value'.
        modify itab index sy-tabix.
    endif.
    Regards,
    Satya

  • How to handle the dynamic rows in pdf table

    Dear All,
    earlier i posted one thread reagarding getting pdf table data
    [facing problem while getting interactive form table data;
    this is working fine, i sued bind_table in wddoinit, but here i am fixing the rows count and bind_table.
    for example i have initially taken row count as 3 then i want to increase the rows in pdf table.
    i know we can use the formcalc to increase the rows by taking a button in pdf layout.
    this also working, but the data is not picking for newly added rows, i hope the problem is because the table node in the context is not binded for this new rows.
    even i tried using with webdynpro native button controlls still not working.
    any one help me what exactly this bind_table is doing and how to handle this code in form calc.
    since my table is pdf table.
    Thanks,
    Mahesh.Gattu

    Hi Thomas,
    Thanks for your confirmation,
    i have checked the paramets of submit button we have only wdevent parameters they are
    CL_WD_CUSTOM_EVENT
              PARAMETERS - Hashed table having 2 columns
              ID     ->IF_TDS (Interactive Form element Name)
             CONTEXT_ELEMENT     ->->
    these are same in case of submit button1 and submit button 2.
              NAME - Name of the Button Event i.e ON_SUBMIT (  this is also same in both the buttons).
    so i think it is not possible to work with multiple buttons by assinging to multiple tables on form.
    The other option is to place the buttons outside of the forum in the surrounding WDA area.
    This way you have no problem handling the events.
    in wddoinit if i use bind_table with 5 rows form table is populating with 5 rows, but when i take a button
    out side the form and use bind_table by incremeting the rows the pdf table rows are not adding, if i enter
    some thing on pdf table then click on add row button then the table rows are getting add. if i don't do any
    action on pdf table and click on add row button pdf is not getting update.
    is there any issue.. if i don't keep cursor on table and type some thing.. the add button is not updating
    the rows.
    if i take a  button on wd view i.e outside the form and use bind table i shall add the rows.. but in case of remove rows how to do.
    in case of normal table we can use Remove_Element( ) but how can i know the selected row from the pdf table, please help me in this concern also.
    Regards,
    Mahesh.Gattu
    Edited by: Maheshkumar gattu on Jan 7, 2009 3:57 PM
    Edited by: Maheshkumar gattu on Jan 7, 2009 4:03 PM
    Edited by: Maheshkumar gattu on Jan 7, 2009 5:21 PM

  • Add new row to a table

    Hello!
    I'm using JDev 11.2 and I'm trying to add a new row to a table object (using create insert)
    the catch is this-
    and the new empty row that will appear- I want a value set instead of one of the values- so the user can choose which value to insert
    do you know how can this be done?
    (just to be clear- i know how to add a value set, I know how to add new row- dont know how to make the new row contain value set field)
    tnx for your time
    Talya

    If you use a model driven list of value on the attribute in question this should work automatically.
    Have you setup a LOV on the attribute? Have you (on the attribute) checked that the ui-hint is set to selectOneChoice?
    Timo

  • Problem with Add Aonther Row in advanced table

    Hi
    I have requirement create the Region(not a page) ,it displays the all the data from the DB table(t_tbl_personDetails),I created the EO and VO . so plz give me the steps for display entire data and add another row in the advanced table.
    Advanced thanks

    I got following error
    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:75)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.apps.fnd.framework.toolbox.tutorial.xxwebui.webui.PersonDetailsRNCO.processFormRequest(PersonDetailsRNCO.java:63)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:75)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    java.lang.NullPointerException
         at oracle.apps.fnd.framework.toolbox.tutorial.xxwebui.webui.PersonDetailsRNCO.processFormRequest(PersonDetailsRNCO.java:63)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:75)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

  • How do you add additional rows to a table

    ...on Word of Mac?

    If you just want to add an extra row at the end of the table all you have to do is hit tab while in the last cell, shroudlupe.
    If you want to add a row in the middle or top of a table, highlight the row above or below where you want the new one to be and then go to the "Table" menu. Go down to the "insert" option and choose whichever is appropriate from "Rows below" or Rows above".
    (If you want to insert more than one row ,then select multiple rows at the first step above, rather than just one , and it will insert the same number of rows that you have selected).
    Another way of doing it, after selecting a row in a table, is to simply access the contextual menu by holding down the control key and clicking, or by "right clicking", and then select "insert rows" from the options presented.
    Cheers
    Rod

  • How to create dynamic rows in a table

    Hi All,
    in my application i want to create rows dynamically by pressing enter button or else i can use button,once i click the button new row should come,that row should allow to enter values,like input field.
    please can any one help me in this.
    regards,
    sush

    Hi Sushma,
    If i'm right ,u want to add a new row on button...
    for(int i=0; i<1;i++)
    IPrivateContractOverView.I<table Node>Element elem=wdContext.create<table node>Element();
      elem.set<table value attrbute1>("");
    elem.set<table value attrbute2>("");
    wdContext.node<table Node>.addElement(elem);
    Here you  can set any default values in place of "".
    hope it hlps u..
    Regards
    Khushboo

  • Need to add new row in my table

    Hi all,
    1. i am developing new OAF page in which i have call stored procedure in my AM but when add code for create additional row only single row is creating.when i click for another row nonew is created.
    please help..
    this is the code i have used in AM
    package EmployeeDetail.oracle.apps.fnd.EmployeeDetail.server;
    import java.sql.CallableStatement;
    import java.sql.SQLException;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.jtf.gantt.javaui.events.TaskIdEvent;
    import oracle.jbo.Row;
    // --- 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 EmployeeDetailAMImpl extends OAApplicationModuleImpl {
    /**This is the default constructor (do not remove)
    public EmployeeDetailAMImpl() {
    /**Sample main for debugging Business Components code using the tester.
    public static void main(String[] args) {
    launchTester("EmployeeDetail.oracle.apps.fnd.EmployeeDetail.server", /* package name */
    "EmployeeDetailAMLocal" /* Configuration Name */);
    /**Container's getter for EmployeeDetailWIPVO1
    public EmployeeDetailWIPVOImpl getEmployeeDetailWIPVO1() {
    return (EmployeeDetailWIPVOImpl)findViewObject("EmployeeDetailWIPVO1");
    public void task(String Name)
    OADBTransaction txn=getOADBTransaction();
    CallableStatement cst=null;
    OAViewObject vo=(OAViewObject)getEmployeeDetailWIPVO1();
    try{
    String CallProc="begin emp_task(:1);commit; end;";
    cst=txn.createCallableStatement(CallProc,0);
    cst.setString(1,Name);
    cst.execute();
    cst.close();
    catch (SQLException sqle) {
    throw OAException.wrapperException(sqle);
    public void initDetail(String Name)
    OAViewObject vo=(OAViewObject)getEmployeeDetailWIPVO1();
    vo.setWhereClause(null);
    vo.setWhereClauseParams(null);
    vo.setWhereClause("TASK_ID=:1");
    vo.setWhereClauseParam(0,Name);
    vo.executeQuery();
    public void createtask()
    OAViewObject vo=(OAViewObject)getEmployeeDetailWIPVO1();
    if(!vo.isPreparedForExecution())
    vo.executeQuery();
    Row row=vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    public void rowadd() {
    OAViewObject vo = (OAViewObject)getEmployeeDetailWIPVO1();
    OADBTransaction txn = getOADBTransaction();
    if (!vo.isPreparedForExecution()) {
    vo.setWhereClause("1=0");
    vo.executeQuery();
    Row row = vo.last();
    row = vo.createRow();
    vo.setCurrentRow(row);
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    public void commit()
    OADBTransaction txn=(OADBTransaction)getTransaction();
    txn.commit();
    public void rollback()
    OADBTransaction txn=(OADBTransaction)getTransaction();
    txn.rollback();
    this on COntroller
    package EmployeeDetail.oracle.apps.fnd.EmployeeDetail.webui;
    import java.io.Serializable;
    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.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
    * Controller for ...
    public class EmpTaskDetailCO 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);
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("EmployeeDetailWIPVO11");
    if (tableBean != null)
    tableBean.setInsertable(true);
    tableBean.setAutoInsertion(false);
    * 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);
    OAApplicationModule am=pageContext.getApplicationModule(webBean);
    String Name=pageContext.getParameter("SRNO");
    Serializable[] Nam={Name};
    am.invokeMethod("createtask");
    am.invokeMethod("task",Nam);
    am.invokeMethod("initDetail",Nam);
    /**if(pageContext.getParameter("CreateRow")!=null)
    am.invokeMethod("rowadd");
    OATableBean tableBean = (OATableBean)webBean.findChildRecursive("EmployeeDetailWIPVO11");
    if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)) &&
    ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM))) {
    am.invokeMethod("rowadd");
    else if (pageContext.getParameter("Apply")!=null)
    am.invokeMethod("commit");
    else if (pageContext.getParameter("Cancel")!=null)
    am.invokeMethod("rollback");
    }

    Hi ,
    Modify the the methods as given below
    public void rowadd() {
    OAViewObject vo = (OAViewObject)getEmployeeDetailWIPVO1();
    OADBTransaction txn = getOADBTransaction();
    if (!vo.isPreparedForExecution()) {
    vo.setWhereClause("1=0");
    vo.executeQuery();
    vo.next();
    vo.last();row = vo.createRow();
    vo.setCurrentRow(row);
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    Thanks
    Pratap

  • Read mutliple dynamic rows of a Table in Adobe Form into GP's context

    Hello All,
    I have a GP scenario where in user inputs multiple rows of data in a table which is on an Interactive Adobe Form.
    I want to read those values entered dynamically and passed between callable objects.
    Please could you suggest on this? If you post any sample code that would be of great help.
    Best Regards,
    Suyukti B N

    Hi Tamas,
    I checked the mentioned form and, as this table is setted as TABLEROW and some of its cells are static, is not possible to change the column size in the layout or even though changing it directly in the XML file, cell by cell. I was trying it.
    For example, choose the Cell6 of TABLEROW[0] and click on tab 'XML Source'. You will see this statement:
    <draw colSpan="3" h="16.3166mm" name="Cell7" w="22.225mm">
    You can try to change the value 'colSpan' according to your requirement.
    This table size is not modifiable because it was developed to it.
    I believe that Diego's suggestion can help in this case, if you are having problems to print the entire table on the page.
    Regards,
    Lucas Comassetto.

  • How to ADD new Row In ADF Table?

    Hello!
    I need to insert a row in table when clicking on the "New", can someone help me? Citing some examples? I'm lost.
    My table is called tableArchive, and I need to add a line on it.
    This table is a list called listArchive, which is associated to this table.

    On the button drag drop createInsert operation from DataContol .
    go to data control->open your table VO-> open operatin inside that.-> drag drop the createInsert.Put id of button into partial trigger of table.make button autosubmit to true.
    see this
    Creating a New Row Using an ADF Iterator Binding
    Unwinding ADF: How to add a new row at the end of the ADF Table

  • Add multiple rows?  Resize table?

    Sorry if this question is totally dumb, but I can't figure it out. I tried searching the discussions.
    Basically, I just want to add some number of rows to the end of my table. Is there some way I can add say, 1000 rows without dragging the tab at the bottom of the table down for a few minutes? Seems ridiculous. Is there some place where I can just type in the number of rows and columns I want in a table?
    Thanks.

    I don't think there is a way. I looked it up for excel, because sometimes that will give me a clue where to look in Numbers when I cannot find something. The only way I have seen for doing it in excel is with a VBA macro that asks for the number of rows.
    Since we don't have scripting (yet, cross your fingers), I don't see an answer at this point.
    Please submit feedback to Apple using the Feedback option under the Numbers menu, suggest both apple scripting and the function your looking for.
    Jason

  • Add new row to a table bound to ArrayList in backing bean

    Hi,
    I have a Arralist<CustomObject> in the backing bean.
    I want to create a table with Add/Delete new row buttons which will add/delete objects from the ArrayList.
    I am using Jdev 11g and I am not using ADF BC.
    Please give me some heads up or links.
    Thanks

    Then that's your problem, change the class to something like:
    public class TableHandlerConsumer
        private static final String LIST_PAGE_FLOW_ATTR = "consumers:" + TableHandlerConsumer.class.getName();
        public TableHandlerConsumer()
            Collection data = new ArrayList<Consumer>();
            buildModel(data);
            tableModel = new SortableModel(data);
            Map<String, Object> pageFlowScope = RequestContext.getCurrentInstance().getPageFlowScope();
            pageFlowScope.put(LIST_PAGE_FLOW_ATTR, tableModel);
        private void buildModel(Collection data)
            baris.add(new Consumer("", "", "", "", ""));
            baris.add(new Consumer("", "", "", "", ""));
            baris.add(new Consumer("", "", "", "", ""));
        public void addRow()
            Consumer consumer = new Consumer();
            ((Collection)tableModel.getWrappedData()).add(Consumer);
        public SortableModel getTableModel()
            Map<String, Object> pageFlowScope = RequestContext.getCurrentInstance().getPageFlowScope();
            return (SortableModel)pageFlowScope.get(LIST_PAGE_FLOW_ATTR);
    }Note that if you're using 10g then change Requestcontext to AdfFacesContext and getPageFlowScope to getProcessScope
    Regards,
    ~ Simon

Maybe you are looking for

  • Mac pro 2.66 Quad Core - boot drive mirrored, replace?

    All, I have a Mac Pro 2.66 Quad Core system. I got all 'sexy' when I set it up - loaded four 1-TB drives in the 4 bays, Mirrored the boot set, also mirrored the secondary set for data. I am getting ready to have these guys filled up (I do lots of vid

  • Installing New Microsoft Office Over Old?

    I bought Microsoft Office 2008 which I want to install on my external HD which is running Tiger. But on my old internal HD I was running Office 2001. I thought I'd have to re-install that Office onto my new HD but that didn't seem to work. When I ope

  • Develop Edits made with LR 4.3 won't show up in ACDSee Pro 5

    I use lightroom 4.3 to edit my CR2 files and ACDSee Pro 5 to catalog and sort my huge photo collection and I would love to use it for the CR2 images too. The problem is, that the develop edits that I make to the CR2 files using LR , won't dispay in A

  • How to edit fluid grid layout in Dreamweaver CS6

    Hi all I am a designer at the company I work for and we've been building repsonsive designs for the past 12months. I've decided that it would be good for me to try out the new fluid grid layout tool in Dreamweaver CS6 to see if we can improve the des

  • Regd Integrated ITS passing parameter

    Hi , We are using Integrated ITS 6.40 . SAP Basis support pack is 18. We are facing difficulty in passing parameters from Portal IAC iView through application parameter property to ITS 6.40. I have given the screenfield name in the application parame