Advance Table Issue

Hi All,
In advance table when i click on add row button it should create multiple rows but on OAPage only one row should appear.Is it possible pls help me.
Thanks.

Hi
If that is intended functionality , in pallette set number of rows to add as 1
and handle it in transaction while committing as multiple rows i.e when saving to database
regards
SasiKasyap .

Similar Messages

  • Need to add Run time Validation in Advanced table column

    Hi Friends,
    I've an requirement to add the validation in Advanced table.
    issue is, In eAM Work Order, currently we have ability to add Operation Seq Number as 0, but we need to add one validation to avoid 0 value.
    Oracle gave us the patch but we cannot apply the patch which is bring up the eAM version to higher level.
    decided to handle it in controller and made changes to the handleOpSummaryEvent event.
    Below is my code.
    if("handleOpSummaryEvent".equals(s))
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    String wipEntityID = ((Number)oapagecontext.getTransactionValue("WipEntityId")).toString();
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside wip entity Id: ").append(wipEntityID).toString(), 2);
    String opSeqTrans = (String)oapagecontext.getTransactionValue("SelectedOpSeq");
    String op = oapagecontext.getParameter("OpSeqSummary");
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside op : ").append(op).toString(), 2);
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside operation Seq Value: ").append(opSeqTrans).toString(), 2);
    ViewObject vo = oaapplicationmodule.findViewObject("OperationSummaryVO");
    if (!vo.equals(null))
    oapagecontext.writeDiagnostics(this, "Inside vo not equals to null", 2);
    vo.setWhereClauseParam(0,wipEntityID);
    vo.executeQuery();
    int fetchedRowCount = vo.getRowCount();
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside fetched row count : ").append(fetchedRowCount).toString(), 2);
    if(fetchedRowCount > 0)
    RowSetIterator iter = vo.findRowSetIterator("opIter");
    if(iter == null)
    iter = vo.createRowSetIterator("opIter");
    iter.setRangeStart(0);
    iter.setRangeSize(fetchedRowCount);
    Row row = null;
    for(int i = 0; i < fetchedRowCount; i++)
    OperationSummaryVORowImpl operationsummaryvorowimpl = (OperationSummaryVORowImpl)iter.getRowAtRangeIndex(i);
    Number opSeq = operationsummaryvorowimpl.getOperationSeqNum();
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside operation Seq Value 2: ").append(opSeq.intValue()).toString(), 2);
    float f = 0.0F;
    if(opSeq != null)
    f = opSeq.floatValue();
    if(f <= 0.0F)
    //throw new OAException("Enter Valid Operation Sequence Number. 0 is Invalid Operation Sequence",OAException.ERROR);
    oapagecontext.writeDiagnostics(this, "Inside opseq equals 0", 2);
    iter.closeRowSetIterator();
    String s2 = oapagecontext.getParameter("evtSrcRowRef");
    Serializable aserializable[] = {s2, "Summary"};
    oaapplicationmodule.invokeMethod("handleOpEvent", aserializable);
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside s2 : ").append(s2).toString(), 2);
    Issue is, when ever i create new line and enter any value at operation seq, validation fires and new line is deleted.
    Please let me know how i can fix this issue.
    Thanks
    Aswath

    Hi Friends,
    I solved it by myself.
    if("handleOpSummaryEvent".equals(s))
    OAApplicationModule oaapplicationmodule = pageContext.getApplicationModule(webBean);
    String s2 = pageContext.getParameter("evtSrcRowRef");
    OperationSummaryVORowImpl rowimpl = (OperationSummaryVORowImpl)oaapplicationmodule.findRowByRef(s2);
    Number opSeq = ((OperationSummaryVORowImpl)(rowimpl)).getOperationSeqNum();
    pageContext.writeDiagnostics(this, (new StringBuilder()).append("Inside row operation sequence: ").append(opSeq.intValue()).toString(), 2);
    if (opSeq.intValue() == 0)
    throw new OAException("Enter Valid Operation Sequence Number. 0 is Invalid Operation Sequence",OAException.ERROR);
    Serializable aserializable[] = {s2, "Summary"};
    oaapplicationmodule.invokeMethod("handleOpEvent", aserializable);
    Thanks
    Aswath

  • Issue with link in a row in advanced table -urgent

    Hi,
    I have created search/results screen and results region is an Advanced table based on a query VO.
    One of the columns, Responsibility Name is a link. On clicking this link it should show all the functions in the responsibility in a new screen.
    The issue is once I click th elink in any record and come back to the advanced table and click 'Next 10' or 'previous 10' I get Browser back button error.
    I item type of the adv table column is 'link' with destination URi = path of the new OA page and target = _blank.
    If I change the colun type to Message Style Text from Link then the 'Previous10' or 'Next 10' works fine.
    Whats the issue with this and how can I solve it?
    Thanks,
    Kamath.

    Hi,
    Did you manage to find any soloution for previous and next link.
    i am getting the same error.
    Please let me know the solution if you got it.
    Thanks
    knick

  • Multiselection issue in advanced table on OAF page

    Hi,
    I have a advanced table on OA Page. To this advanced table, I had added the multi selection table action.
    To the multiselect, i have attached a View Instance and a view attribute.
    There is text input field in the advanced table. If user makes changes to it, an event "updateDate" fires.
    In CO:
    if(event.equals("updateDate")){
    System.out.println("A");
    String rowReference =
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] param = {rowReference} ;
    am.invokeMethod("DetailsCheckBox", param);
    In AM:
    public void DetailsCheckBox(String rowReference) {
    System.out.println("B");
    oracle.jbo.Row row = findRowByRef(rowReference);
    DetailsVOImpl ivo =
    (DetailsVOImpl) findViewObject("DetailsVO1");
    String chkbox = (String)row.getAttribute("Multiselect");
    System.out.println("multiselect original: "+chkbox);
    if ((chkbox == null)||(chkbox.equals("N"))){
    ivo.setCurrentRow(row);
    row.setAttribute("Multiselect","Y");
    String chkbox1 = (String)row.getAttribute("Multiselect");
    System.out.println("multiselect : "+chkbox1);
    // ivo.reset();
    The issue is that if there are 5 rows getting displayed in the advanced table and i make changes to any of first 4 rows, the checkbox gets checked on page but if i make changes to last row the checkbox is not checked on page, even though the statement String chkbox1 = (String)row.getAttribute("Multiselect"); returns 'Y' in AM.
    Please help. Its urgent.

    Hi Gyan,
    Multiselect attribute is checked for Always Updateable.
    and have done sop for other attributes also, dey are coming for 5th row only.
    also if my VO query returns 27 rows, and advanced table displays 10 rows at a time then pnly 10th row gives this issue. It works fine even for 20th row.
    Observed one more thing, if i first update any other row and then the last row, it works fine.

  • [Urgent] Issue with Selected rows in Advanced table

    [I have searched archive and found lots of mails on same issue but none were conclusive so i am asking this again]
    Hi All,
    I have created an advanced table and i want to have functionality of deleting selected rows.
    For implementation of this functionality, i have created a selectflag transient attribute [varchar2] and linked it to multiple select item of Advanced table but the table always returns null for selectflag attribute irrespective of row being selected or not.
    One thing i have noticed is that i can't supply 'checked value' and 'unchecked value' property in advanced table multiple select item. Is that the issue?
    Can anybody please guide, its quite urgent.
    Regards
    Lokesh

    Hi Reetesh,
    Thanks for the reply.
    Yes, you are right i am using same AM at 2 different places.
    Let me just elaborate a little about my implementation:
    I have a Page layout region and within this page layout, i have a query bean which performs results based search.
    Within this query bean, i have added an Advanced table within that query bean to display the results.
    Now coming to multiple AM issue:
    1. Page Layout region must have one AM or its an error.
    2. If i donot add an AM to advanced table, it doesn't return rows.
    So do i need to have 2 diferent AM's for this implementation?
    Regards
    Lokesh

  • Sorting issue in Advance table region

    Hi All,
    Facing issue in sorting.
    I have an advance table region , I have set the property
    Sort Allowed : Yes ; Sort By View Attribute : View attribute Name
    This is working for all the columns but it is failing for date columns.
    Data is not getting sorted for date columns.
    Output format of Date is : 09-Feb13 09:08:01
    Please help.
    Do let me know if any further information is required.

    Hi All,
    Can anyone lookinto this  ...
    Am still waiting for an update ...

  • 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

  • Performance Issue's Related in Adance table in advance table

    Hi,
    Can anybody let me know what are the performance issues in advance table in advance table,because i am having big performance issue while implementing advance table in advance table, my inner table is rendering very slowly.
    Thanks

    Table in a table is a performance eating structure :), because ur VL will cache both parent and child VO rows in JVM.The only way to improve the performance is to tune your sql queries.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Issue in Advance Table Region - Plz help!

    Hi All,
    I have a custom page in which I am using a advanced table region.
    The issue is this that the value in advanced table row [Two Fields are there both are MessageTextInput] is getting populated automatically as the page render. Is this is seeded functionality of advanded table???
    If you how to overcome this..
    I have to display row with no value i.e blank. I got to know that if the attribute which is attached to the column of row has value then it show on frontend automatically and if i delete the row then i got it blank.
    Regards,
    Ajay

    IF the values in present in the underlying table, then it will appear in the advanced table as well due to the VO that you are using.
    To create a blank row. You will have to create a new row in the VO and set it as the current row.
    If u want it to be done automatically. You can do this:
    1. select your advancedTable region and choose New--> footer
    2. Select the tableFooter and then right click and select New-- > addTableRow
    3. in the addTableRow item that u just created in step 2 , u can play around with the properties. For auto row insertion, without writing any code set the Insert Rows Automatically property to true and change the Rows to Add property to change the number of blank rows added. The default is 1

  • Issues with Advance Table Add Row New Row not work in some scenarios.

    Hi,
    Wondering if there's any issue with Advanced Tables where it does not create any rows. I don't know if anyone tried this or not. I have one OA Page with Advanced Table and a button that when clicked open a new OA Page in a POP-UP Window. The pop-up page conatins one textbox where u enter a data and this gets saved in one of the VO's transient attribute. Now on the ase page if you don't click a button to open a pop-up page you can Add New Rows in the Advanced Table by clicking Add Row Button. But as soon as you open a popup window and close it Add New Rows button doesn't work and is not creating any new rows. Basically page stops working. Both the POP-UP and the base page share the same AM but have different controllers.
    POP-UP page is a custom page that I open giving the Destination URI value in the button item and target frame _blank.
    I even tried creating rows programmatically for Advance Table but this too doesn't work once u open a pop-up. Also I have used pageContext.putTransactionValue in the pop-up page and am checking and removing this in the base page.
    Any help is appreciated.
    Thanks

    anyone

  • Issue in Dependent poplist in Advanced table

    Hi,
    I am facing problem while implementing dependent poplist in advanced table. I have a query region and the results are populated in advanced table. In advanced table i have 2 poplists A and B.
    A is dependent on one of the column C1 in the advanced table. This value of C1 comes from database and is read only field in the advanced table. Based on different values in column C1 value in poplist A should be populated.
    Poplist B is dependent on poplist A. The value in poplist B should change when i change the value in poplist A.
    So both the poplist queries have bind variable. Poplist A has bind variable for column C1 and poplist B has bind variable for A.
    I have gone through the thread http://forums.oracle.com/forums/thread.jspa?messageID=2297322&tstart=0 and followed all the steps mentioned by Mukul.
    *1) I have set picklist view definition for both poplists A and B. Both the poplists have Add Blank Value = True*
    *2) In the process request method, i have set setListVOBoundContainerColumn and picklist cache to false*
    //Get poplist fields
    OAMessageChoiceBean mcbA =
    (OAMessageChoiceBean)webBean.findChildRecursive("A");
    OAMessageChoiceBean mcbB =
    (OAMessageChoiceBean)webBean.findChildRecursive("B");
    //set the poplists cache as null
    mcbA.setPickListCacheEnabled(false);
    mcbB.setPickListCacheEnabled(false);
    //Assign the bind Variable for poplists
    OAAdvancedTableBean advTableBean = (OAAdvancedTableBean)webBean.findChildRecursive("AdvTblRN");
    //Set the bind variable to C1
    mcbA.setListVOBoundContainerColumn(0, advTableBean,"C1Field");
    //Set the bind variable to ActionField
    // BFormValueField is attached to a transient attribute ATransAttr with default value as xxxxx
    mcbReasonField.setListVOBoundContainerColumn(0, advTableBean,"BFormValField");
    *3) I have set fireaction event EVNT on poplist A.*
    *4) In the process form request on EVNT i am setting the value of transient attribute ATransAttr equal to the value selected in poplist A for the particular row.*
    if(strPageEvent.equalsIgnoreCase("EVNT")){
    //To fetch the row reference from VO
    String rowReference =
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] serRowRefParam = {rowReference};
    applicationModuleObj.invokeMethod("execPoplists",serRowRefParam);
    AM method
    public void execPoplists(String strRowRef){
    SearchQueryVORowImpl rowSearchQueryVOObj =
    (SearchQueryVORowImpl)findRowByRef(strRowRef);
    if(rowSearchQueryVOObj != null) {
    String strAVal = rowSearchQueryVOObj.getA();
    rowSearchQueryVOObj.setATransAttr(strAVal);
    When i run the page and do a search, i am getting correct values in poplist A depending on value in Column C1. But when i select any value in poplist A (for any row) the value in poplist B is changing for all the rows of advanced table. The requirement is that Poplist B of the selected row should display the values based on the value of poplist A for that row. Poplist B for other rows should display blank as nothing has been selected in the poplist A for those rows.
    Please let me know what have i missed in the above code.
    Thanks,
    VG
    Edited by: VG on Jul 18, 2011 8:02 PM

    Hi Gyan,
    Let me know if there is a workaround for the problem. I want poplist B to display values based on poplist A for each row. If i select A1 from Poplist A for row1 then poplist B should display values B1,B2,B3 in that particular row1. Other rows should not display these B1,B2,B3 values as i have not selected anything in poplist A of other rows.
    Thanks,
    VG

  • Urgent::Issue with advanced tables....

    Hi
    i am new to OA framework
    i have view instance (associated with a custom table..i want to insert data into this table using advanced table)with X view attributes..
    among them one is primary key.i set that using a sequence value..
    rest all.. i made them as columns of an advanced table..
    two among the above are form values..
    now i added a footer for adding a row in advanced table region...
    when i click on the add another row ...i am getting this error...please check it...i am stuck here since long time..
    Error: Cannot Display Page
    You cannot complete this task because one of the following events caused a loss of page data:
    * Your login session has expired.
    * A system failure has occurred.

    i added this code in my controller....
    if ((tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    && (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))) {
    am.invokeMethod("createRecordInv");
    and in my am i wrote this..
    public void createRecordInv()
    try
    ARTransactionLineVOImpl vo = getARTransactionLineVO1();
    if (!vo.isPreparedForExecution())
    {   vo.executeQuery();     }
    if (vo != null)
    vo.setMaxFetchSize(0);
    ARTransactionLineVORowImpl row1 = ( ARTransactionLineVORowImpl)vo.createRow();
    if (vo.getFetchedRowCount() == 0)
    vo.insertRow(row1);
    else
    { vo.insertRowAtRangeIndex(vo.getFetchedRowCount(),row1); }
    row1.setNewRowState(row1.STATUS_INITIALIZED);
    OADBTransaction transaction = getOADBTransaction();
    Number CdArScheduleId = transaction.getSequenceValue("CLE_CD_CASH_DOC_AR_INVS_ALL_S");
    ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.getCurrentRow();
    TransDetailsVORow.setCdArScheduleId(CdArScheduleId);
    catch(Exception ex)
    { ex.getMessage();  }
    i am getting NULL POINTER EXCEPTION.....
    i set some of the values in advanced table prgramatically later using PPR...
    is it ok....
    just look into this n let me know if im wrog some where....

  • Advance Table - Add Row button and coloumn issue

    Hi all,
    I have created Advanced Table wth four coloumns.
    for two columns item style as messagtextinput and the rest are same as DATE.
    But when the page is rendering the table columns shows as messagestyletext , which means messagetextinput style item is not appearing.
    Kindly help me if am missed anything wrong.
    and also can u help me to create add row button featurs in advance table
    Thanks in advance.
    Senthur

    Senthur,
    I hv done this using row status initialised.I couldnt get the above lines.
    I have another doubt also. In Advanced table there is coloumn header, is there any Row header.There is nothing as such RowHeader. Let me know ur exact requirement.
    Name age salary
    empid1 xxx 21 100
    empid2 yyy 22 200Create a VO which return the above attributes and attach the same to the Adavanced Table Bean.
    Regards,
    Gyan

  • Advanced Table does not refresh after database level action

    Hi,
    I have a page which has an advanced table. I update the advanced table from the page do some validations, update some DB level columns(also part of advanced table) and see that the changes are saved to the DB but the advanced table does not show the updates done at the DB level.
    I tried clearing the VO Cache and re-executing the VO but still it does not refresh the Advanced table data.
    This is very critical requirement for the client, any inputs will be greatly appreciated.
    Thanks a lot in Advance.
    Here is the code snippet from my CO's processRequest:
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAAdvancedTableBean tblbean = (OAAdvancedTableBean)webBean.findChildRecursive("recasttable");
    if(tblbean!=null)
    tblbean.setRendered(true);
    OAApplicationModule tblam = (OAApplicationModule)am.findApplicationModule("RecastLineAM1");
    tblam.invokeMethod("initQuery");
    tblbean.getTableData();
    Here is my AM - initQuery() code:
    public void initQuery()
    //clearVOCaches("RecastLineEO",true);
    clearVOCaches(null,true);
    getRecastLineVO1().init();
    Here is the VO - init() code:
    public void init()
    System.out.println("****************************executing...");
    OADBTransaction tx = (OADBTransaction) getApplicationModule().getTransaction();
    if (tx.getTransientValue("RECAST_ID") !=null)
    Number recastId = (Number) tx.getTransientValue("RECAST_ID");
    System.out.println("recastId: "+ recastId);
    setWhereClause("RECAST_HDR_ID = :1");
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, recastId);
    executeQuery();
    }

    hi,
    This is how I am calling a DB package. the package does updates on the table. once done I am issueing a commit and requerying the data, however the vo is not getting refreshed.... Can someone point out what am I missing... why is the VO not getting refreshed....
    This is very critical...
    Thanks
    Srini
    public void validateRecast(String respKey)
    OADBTransaction tx = (OADBTransaction)getApplicationModule().getTransaction();
    Number recastId = (Number) tx.getTransientValue("RECAST_ID");
    System.out.println("*********************validateRecast().RecastId: " + recastId);
    OracleCallableStatement ocs = null;
    Connection conn = tx.getJdbcConnection();
    String strOut="", strErr="";
    Number respId = null;
    try
    respId = new Number(respKey);
    catch(Exception e)
    throw new OAException("Invalid Responsibility");
    String stmt = "BEGIN " +
    "GE_RECAST_UTILS_PKG.validate_recast(:1,:2,:3,:4); " +
    "END;";
    try
    ocs = (OracleCallableStatement)conn.prepareCall(stmt);
    ocs.setNUMBER(1,recastId);
    ocs.setNUMBER(2,respId);
    ocs.registerOutParameter(3,OracleTypes.VARCHAR);
    ocs.registerOutParameter(4,OracleTypes.VARCHAR);
    ocs.execute();
    strOut = ocs.getString(3);
    strErr = ocs.getString(4);
    ocs.close();
    System.out.println("Returned with: " + strOut);
    if(strOut.equalsIgnoreCase("ERROR"))
    //throw new OAException(strErr);
    tx.putTransientValue("ERROR",strErr);
    tx.commit();
    getApplicationModule().clearVOCaches("RecastLineEO",true);
    RecastLineVOImpl lineVo = (RecastLineVOImpl)getApplicationModule().findViewObject("RecastLineVO1");
    lineVo.init();
    System.out.println("===============RecastLnId: " +lineVo.first().getAttribute("RecastLnId"));
    System.out.println("===============Product Line: " +lineVo.first().getAttribute("ProductLine"));
    catch(SQLException e)
    tx.rollback();
    if(ocs!=null)
    try
    ocs.close();
    }catch(SQLException e1)
    throw OAException.wrapperException(e1);
    throw OAException.wrapperException(e);
    }

  • How can I defualt a value in a formValue field in an advance table

    Hi,
    I am developing 3 custom master detail OAF Pages. All of these pages have one advance table region(Detail Region). Master Region is a message component layout. All these pages share same AM.
    Source for advance table on all the pages is same database table.
    Vo for the advance table has a query as below:
    select * from XXTABLE where textid = &ref_id and rf_code ='PAGE1'
    select * from XXTABLE where textid = &ref_id and rf_code ='PAGE2'
    select * from XXTABLE where textid = &ref_id and rf_code ='PAGE3'
    I have created one EO and one VO on XXTABLE.
    I want to create 3AO and 3VL's for each master detail relationship.
    My requirement is to default "PAGE1", "PAGE2" and "PAGE3" respectively in the refcode filed in VO when it is called from there respective pages.
    Thanks!
    Ritu

    Hi Sanu,
    Thanks for addressing the issue.
    I can create multiple rows in advance table and with the click of a button all the rows are saved in one go. If I take a handle of VO in controller, I will still have to interate through each row in VOROwImpl to set ref_code for each row.(This would also need a logic to find which row is new and which is updated)
    Is there any way where I dont have to do any interation and set a default.
    Thanks!
    Ritu

Maybe you are looking for

  • Memory speed and graphic card slot

    Hi, I have just built a system with a P67A-GD65 B3 board, everything works fine, but while double-checking on the system's specs and performances I came across two weird issues: - I have 2 x G-Skill F3-17000CL7-2GBXHD RAM sticks at 2133MHz, I have en

  • HT1535 Downloaded audiobook to iPad but cannot move book to computer. Help? or iPhone

    I downloaded an audiobook to my iPad, and though it is noted on my Account History, it is not in my audiobook inventory on iTunes.  I set my iPad configuration to "manually" transfer content...didn't help.  When I connect my iPad to my computer, the

  • Spry and Flash not liking each other

    I'm currently working on a small site for a commercial director and the client wants it where when you rollover the thumbnail images for his commercials, they grow a bit and that's a perfect use for Spry's Grow/Shrink effect. Only problem is once I a

  • C4 Page Properties Problem

    I use a table for my navigation links, one cell per link. I set page properties-link to Never Underline, and change the color for Rollover. Then published the page. I copied the cells from one page to the next. The first page http://www.essentialthea

  • Framework order with mandatory invoicing plan

    Hi, we have requirement from customer to ensure that It s no possibility to save Framework order without foundation Invoicing plan. We created for this customer type of PO - ZFO. Is any possibility how make this without coding some coding, we prefer