Advanced table addanotherrow button

Is there any way that i can disable validation to the addanotherrow button in the advanced table? Unless i fill all the fields which are mandatory in the page, its not allowing me to add another row in the advanced table.
Thank you
PK

You can do this by creating your own "Add Another Row" button.
And since it is a button already you can Disable Server Side Validation and Disable Client Side Validation.
Thanks

Similar Messages

  • Page loss at the click of add new button in advanced table

    Have created an advanced table and when I click on the add row button for the first time it results in page loss issue. But if I query and then click on the button it works fine.
    AM code:
    public void initialize()
    OAViewObject vo = (OAViewObject)getXxutlDomainsVO();
    if (vo.getFetchedRowCount() == 0)
    vo.setMaxFetchSize(0);
    public void createDomainSetupData()
    OAViewObject vo = (OAViewObject)getXxutlDomainsVO();
    if (vo.getFetchedRowCount() == 0)
    vo.setMaxFetchSize(0);
    Row row = vo.createRow(); vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    CO:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule domainSetupAM = pageContext.getRootApplicationModule();
    domainSetupAM.invokeMethod("initialize", null);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule domainSetupAM = pageContext.getRootApplicationModule();
    if ("DomainsAdv".equals(pageContext.getParameter(SOURCE_PARAM))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    domainSetupAM.invokeMethod("createDomainSetupData", null);
    Please help

    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

  • Next button not working in advanced table

    HI ,
    I have created an advanced table programatically.everything is working fine but the navigation buttons for next and previous are not working properly.If I click on next 20 records I am getting the first 20 records.Do i need to set anything for this.Please hepl me.

    Hi,
    This may be the problem in your InternetExplorer.
    Mini

  • Row Level PPR in Advanced Table with Add More Rows Button

    <br>
    I have programmatically fired PPR event on MessageChoice. But it is in Advanced Table with
    Add More Rows Button. When the value is changed in MessageChoice I Show/Hide Custom LOV
    through SPEL like this ${oa.BioEmployeePVO.EmpManagerRender} .
    But it is <b>hiding the all the ROWS</b> not just the row where the value has been changed.
    I even tried with this code and get NULL for rowReference.
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    In Processrequest()
    String pageName = pageContext.getRootRegionCode();
         Hashtable params = new Hashtable (1);
         params.put ("param1", pageName);
         Hashtable paramsWithBinds = new Hashtable(1);
        paramsWithBinds.put ("param2",new OADataBoundValueFireActionURL (mcb, "{$AttendeeType}"));
        mcb.setFireActionForSubmit ("empPositionChange", params, paramsWithBinds,false, false);
    In ProcessFormRequest() {
    if ("empPositionChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))   
          String rowReference = pageContext.getParameter("param2");
        //    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
         Serializable[] parameters = { rowReference };
          am.invokeMethod("handlePositionChangeEvent", parameters);
    <br>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    HI Kumar,
    Answer to your last post is "yes".
    Now to your doubt regarding the code:
    Hi Anna
    I am trying to understand your code.
    FireAction firePartialAction = new FirePartialAction("fireHideEvent"+(i/noOfTlaColSpan));
    HideImgBean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
    1. What is this i/noOfTlaColSpan ?
    :)Forget abt this in your case it should be the event name which u r firing and capturing the it in the PFR.
    Like FireAction firePartialAction = new FirePartialAction("YOurEventName");
    and in PFR u can capture tht as:
    if("YOurEventName".equals(pageContext.getParameter(EVENT_PARAM)))
    //your logic to invoke AM method
    2. I believe this HideImgBean would be MessageChoice for me?
    :)Yep ur right
    3. This brcdOhInventoryViewUpdateVOImpl would be the Custom PVO(Extending Seeded Base VO)
    I create by adding the transient attributes?
    :)Yep ur right
    4. I cannot understand this code. Could you explain.
    :)Please look at my comments in some of the lines .I have explained wht i am doing
    if(updateIter==null)
    updateIter[0]= invViewVO.createRowSetIterator("updateIter");//This initViewVo should be ur custom VO object
    if(cnt>0)
    updateIter[0].setRangeStart(0);
    updateIter[0].setRangeSize(cnt);
    for(int i=0;i<cnt;i++)
    row = (brcdOhInventoryViewUpdateVORowImpl)updateIter[0].getRowAtRangeIndex(i);
    String selectFlag=(String)row.invokeMethod("getPartNumber");//This getPartNuber should be replaced by the Prim Key inoke methd of ur VO
    if(RowID.equals(selectFlag))
    //This is my logic to set the transient attributes based on the msgChoiceBean value ..u have to pass the value when u invoke this method
    if(reserveMethod.equals("BINARY"))
    System.out.println("In Binary");
    Boolean bVal= new Boolean("false");
    Serializable sr[]={bVal};
    Class []methodParamTypes = { bVal.getClass() };
    row.invokeMethod("setshowreservetxt",sr,methodParamTypes);
    Boolean bVal1= new Boolean("true");
    System.out.println("bVal1"+bVal1);
    Serializable sr1[]={bVal1};
    Class []methodParamTypes1 = { bVal1.getClass() };
    row.invokeMethod("setShowreservemsgchoice",sr1,methodParamTypes1);
    break;
    In my AM I am doing this. Am i doing right?:)Yep u r right
    BioPrescribersPVO is the custom VO(extending seeded base VO).
    public void handlePositionChangeEvent(String param)
    OAViewObject vo = (OAViewObject)findViewObject("BioPrescribersPVO");
    OARow row = (OARow)findRowByRef(rowReference);
    if (row != null)
    String position = (String)row.getAttribute("AttendeeType");
    if (("PRESCRIBER".equals(position)) )
    // BioEmpManagerRender is the transient attribute in BioPrescribersPVO.
    row.setAttribute("BioEmpManagerRender", Boolean.TRUE);
    row.setAttribute("BioPresManagerRender", Boolean.FALSE);
    else
    row.setAttribute("BioEmpManagerRender", Boolean.FALSE);
    row.setAttribute("BioPresManagerRender", Boolean.TRUE);
    } // end handlePositionChangeEvent()
    // Initializing the custom VO
    /*No need to initialize the VO because this is not a PVO(Propeties View object)
    U r just using the existing VO and tht vo shloud have a primary key.Tht way u can match the rowref u r getting with the actual row from the View object*/
    public void init()
    OAViewObject appPropsVO = (OAViewObject)getBioPrescribersPVO();
    if (appPropsVO != null)
    if (appPropsVO.getFetchedRowCount() == 0)
    appPropsVO.setMaxFetchSize(0); appPropsVO.executeQuery();
    appPropsVO.insertRow(appPropsVO.createRow());
    OARow row = (OARow)appPropsVO.first();
    row.setAttribute("RowKey", new Number(1));
    handlePositionChangeEvent("");
    } // end init()
    Thanks
    Anna

  • Add button on seeded Advanced Table, to catch the person_id to generate xml report

    Hi All,
    We are having a requirement to generate pdf report from seeded page.
    And we kind a hit dead end. So was really looking for any inputs or insights.
    We personalized page to add a column with a button in it. We used javascript
    in destination URI to catch the event in PFR.
    javascript:submitForm('DefaultFormName',1,{'xxdbPrintPDF':'YES'});
    All is good until this point. But the EVEN_SOURCE_ROW_REFERENCE is showing as null, when we hit that
    personalized button on page. Where as it is giving right values if clicked on other seeded items in table.
    And each row has a distinct person_id. We need handle to person_id to generate that person specific report.
    Any thoughts would be greatly appreciated.
    Thanks
    Hari

    Forgot to mention earlier. Vacancy page has advanced table listing all the applicants applied.
    We need button across each applicant(i.e in each row). And when we hit that button, if we can get person_id.
    We can use that in whereclauseparams() to get specific rows for xml report.
    Tried to create button programmatically, and still not able to retrieve row number/person id
    PR code
        public void processRequest(OAPageContext oapagecontext,
                                   OAWebBean oawebbean) {
            super.processRequest(oapagecontext, oawebbean);
            OAAdvancedTableBean unUsedCCTxnsTable =
                (OAAdvancedTableBean)oawebbean.findIndexedChildRecursive("ApplicantQueryRegion");
            if (unUsedCCTxnsTable !=
                null) //If not able to find the table, skip the process
                //Create new column Category to the table
                OAColumnBean categoryCol =
                    (OAColumnBean)createWebBean(oapagecontext, COLUMN_BEAN, null,
                                                "XxcfiCategoryColumn1");
                OASortableHeaderBean column1Header =
                    (OASortableHeaderBean)createWebBean(oapagecontext,
                                                        SORTABLE_HEADER_BEAN, null,
                                                        "XxcfiCategoryColumn1Header1");
                column1Header.setText("Category");
                categoryCol.setColumnHeader(column1Header);
                // Create the actual leaf item under the first column
                OAMessageStyledTextBean leaf1 =
                    (OAMessageStyledTextBean)createWebBean(oapagecontext,
                                                           MESSAGE_STYLED_TEXT_BEAN,
                                                           null,
                                                           "XxcfiCategoryColumnLeaf1");
                leaf1.setViewAttributeName("AplPersonId");
                categoryCol.addIndexedChild(leaf1);
                unUsedCCTxnsTable.addIndexedChild(categoryCol);
                //add submitbutton
                 //Create new column Category to the table
                 OAColumnBean categoryCol1 =
                     (OAColumnBean)createWebBean(oapagecontext, COLUMN_BEAN, null,
                                                 "XxcfiCategoryColumn2");
                 OASortableHeaderBean column1Header1 =
                     (OASortableHeaderBean)createWebBean(oapagecontext,
                                                         SORTABLE_HEADER_BEAN, null,
                                                         "XxcfiCategoryColumn1Header2");
                 column1Header.setText("PDF");
                 categoryCol.setColumnHeader(column1Header);
                OASubmitButtonBean submitButton =(OASubmitButtonBean)createWebBean(oapagecontext,
                OAWebBeanConstants.BUTTON_SUBMIT_BEAN, null, "submitButton");
                submitButton.setViewAttributeName("AplPersonId");
                unUsedCCTxnsTable.addIndexedChild(submitButton );
    PFR code
        public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            OAApplicationModule appModule =
                pageContext.getApplicationModule(webBean);
            OAViewObject vo =
                (OAViewObject)appModule.findViewObject("ApplicantListVO");
            oracle.jbo.domain.Number num = null;
            if (vo != null) {
                OARow row = (OARow)vo.getCurrentRow();
                if (row != null) {
                    num =
    (oracle.jbo.domain.Number)row.getAttribute("AplPersonId");
            throw new OAException("Button Clicked by HM " + num.toString() +
                                  "-----" +
                                  pageContext.getParameter("XxcfiCategoryColumnLeaf1") +
                                  "-----" +
                                  pageContext.getParameter("submitButton") +
                                  "-----" +
                                  (String)pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE),
                                  OAException.ERROR);
    Any ideas will be of great help
    Thanks

  • 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

  • Advance table Add another row button error  ---Error: Cannot Display Page

    hi, i m new to OAF.
    I m trying to add new row programatically to my advanced table, but getting the error
    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.
    My page has two EOs with two differnt tables Table A(Accident details) and Table B(Victim Details).Table A is Parent of Table B.No relation is defined in my page for these two tables so far.Foreign key is not defined.
    On my page I have various field for entering data for Table A and its saving data properly
    For table B i have taken the Advanced table.When i click on Add row button of table i m getting the said error.
    My CO
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        OAApplicationModule am=(OAApplicationModule)pageContext.getApplicationModule(webBean);
         System.out.println("processFormRequest ");
         if(pageContext.getParameter("Save")!=null)
            am.invokeMethod("apply",null);
            System.out.println("Save ");
      if  ("addRows".equals(pageContext.getParameter("event")) && "AdvTblRN".equals(pageContext.getParameter("source")) )
      System.out.println("The source is :"+pageContext.getParameter("source"));
      String p_header_id = (String)pageContext.getTransactionValue("p_tx_header_id");
      Serializable[] param = {p_header_id};
      am.invokeMethod("createRow", param);
       am.invokeMethod("apply",null);
       System.out.println("Add Row ");
      pageContext.forwardImmediatelyToCurrentPage(null,false,"N");;
    And AM
    public void createRow( String p_header_id)
    Row prow;
    VictimDtlVOImpl pvo= getVictimDtlVO1();
    pvo.setMaxFetchSize(0);
    prow=pvo.createRow();
    pvo.insertRow(prow);
    prow.setNewRowState(Row.STATUS_INITIALIZED);
       OAViewObject vo1 = (OAViewObject)getVictimDtlVO1();
    OADBTransaction transaction1 = getOADBTransaction(); 
      System.out.println("---- "+transaction1.getSequenceValue("XXMIS_SAFETY_VICTIM_DTL_SEQ"));
      Row row1 = vo1.createRow();
       vo1.insertRow(row1);
      row1.setAttribute("VictimId",transaction1.getSequenceValue("XXMIS_SAFETY_VICTIM_DTL_SEQ")); 
      row1.setNewRowState(Row.STATUS_INITIALIZED);
    public void apply()
    try {
      getOADBTransaction().commit();
    System.out.println("Commit ");
    plz help .......
      catch (Exception e)
       e.printStackTrace();

    Hi Vaishali,
    Use below code for add line in Nested Table.
    if(pageContext.getParameter("addRows") != null){
            OAAdvancedTableBean sectionsTable = (OAAdvancedTableBean)webBean.findChildRecursive("AdvTblRN");
            OAInnerDataObjectEnumerator sectionsEnum = new OAInnerDataObjectEnumerator(pageContext, sectionsTable);
            while(sectionsEnum.hasMoreElements()){
                RowSet sectionsRowSet = (RowSet) sectionsEnum.nextElement();
                for(int i = 0; i < 1; i++){
                    OARow newRow = (OARow) sectionsRowSet.createRow();
                    sectionsRowSet.insertRowAtRangeIndex(sectionsRowSet.getRowCount(), newRow);
    Thanks,
    Dilip

  • Recalculate Button - Advanced Table

    I have an Advanced Table with 3 VO Attributes Quantity,Unit Price (Based on EO) and Line Total which is product of Quantity and Unit Price. These 3 are shown in the Advanced table region, the first 2 as message text and the last one as message Styled Text since it's a calculated field. Now there is Standard Recalculate Total button as provided by Advanced Table bean. On Entering the new value in Either Quantity/unit price and pressing the total button at the button, the total for these columns gets refreshed. I actually want the total for (Lines Total) to get refreshed whenever either of Quantity or unit price is changed and Recalculate Button is pressed...It's not happening.
    IT does gets refreshed when i navigate to the other page and come back...or if i save the data to DB and revisit the page...but it doesn't get refreshed instantly..on pressing the recalculate total button after modifying either of 2 fields.
    I have tried executeQuery for the VO but of no avail.
    Can someone please help.
    Thanks
    Ravi.

    Can someone please help.. ?

  • AddAnotherRow of Advanced Table, does not make the new row as current row

    Hi OAF Gurus,
    Requirement:
    When user presses 'AddAnotherRow' button on OAAvancedTable, the new row that gets added should become the current row of the underlying VO of the table.
    What’s happening:
    When user presses 'AddAnotherRow' button on OAAvancedTable, the new row is not the current Row(VO’s previous current row retains its current status)
    What I tried by far
    APPROACH #1 - when create row
    In VORowImpl - override create and set this new row as current
    public void create(AttributeList attributeList)
    try
    super.create(attributeList);
    // PSUDO CODE
    am = this.getApplicationModule
    vo = am.findViewObject("OAAdvancedTableVO1");
    vo.setCurrentRow(this) // this should set the new row to current.
    But VO's current row is still the old current row and not this new row.
    APPROACH #2 - when insert Row
    I thought that AddAnotherRow , internally must be doing a create() then an insert() row on the VO, so i overridden the insertRow(row) of the VO
    public void insertRow(Row row)
    super.insertRow(row);
    this.setCurrentRow(row)
    System.out.println("COMMENT insert called .............................................");
    But this method is never called by the framework.
    ***Please help me make the newly created row on the OAAdvancedTable using 'AddAnotherRow' (out of the Box) , as the currentRow of the underlying VO***
    Thanks
    Chaitanya

    Thanks a lot Chris.
    I have used your code and it works perfect.
    Now I am not using the out-of-the-box AddAnotherRow, as it does not make the newly added Row as 'currentRow' of the VO
    I have used the following code by Chris and it solves the issue.
    1. Determine the number of already displayed rows on the table
    OAAdvancedTableBean tableBean = (OAAdvancedTableBean) webBean.findChildRecursive(tableID);
    int rowsDisplayed = tableBean.getNumberOfRowsDisplayed();
    replace tableID with the actual value.
    2. I have the following routine to create the row and set it as the current row.
    OAViewObject viewObject = (OAViewObject) findViewObject(viewObjectName);
    int rowCountInRange = viewObject.getRowCountInRange();
    Row row = viewObject.createRow();
    int insertIndex = rowCountInRange;
    if (rowCountInRange == rowsDisplayed) {
    insertIndex = rowCountInRange - 1;
    viewObject.insertRowAtRangeIndex(insertIndex, row);
    viewObject.setCurrentRow(row);
    Thanks again all of you for help
    Regards
    Chaitanya

  • Advance Table: Problem on add another button

    Hello All,
    I have designed page that contains advance table and add another button. The table displays maximum 10 records in a page.
    First I click the button and enter the records. After that again I click the button for multiple records insert. Than the previous record goes to another page. In this case users are unable to see the previous record. In my question how can we prevent that one?
    Please help me…
    Thanks in advance…
    -- Subhas

    It is a Standard behaviour that table will show the records which are set in the max number of records displayed property.
    However if you want that records shudn't get shifted each time you press the add another row button you can set the max number of records programatically and increment 1 to it.
    This way the number of records displayed will be now 11.
    like each time you press add another row redirect the page, grab the table bean and then
    bean.setmaxnumberofrecords()
    increment the original value by 1 and then set.
    Thanks,
    Gaurav Sharma

  • 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

  • Advanced tables behavior

    Hello everyone,
    In my custom page, i have implemented advanced tables in the bottom of the page. So basically we need to scroll down the window to add a row in the advanced table as there are many other fields in the page. I see that when we try to create a new row in the advanced table, after clicking the addnewrow button, a row is created but at the same time the page moves up. We have to scroll down the page to enter values in the row added.
    Is this the seeded behavior or can we change this behavior so that the page doesn't move up.
    Thank you.

    the control is going to the top as i am using pageContext.forwardimmediatly once the addanotherrow button is clicked to implement some validation. Is there any way that inspite of using forwardimmediatly, the control doesn't goto the top of the page? I don't want the page to move up.
    Thanks

  • Unable to show error message in Advanced Table

    Hi All,
    I have an requirement to show a pdf ouput when user clicks on image or button in advanced table. I have created a new button in advanced table and when user clicks on button, I am showing an error message for testing. i used below code for CO extn, but when I click on button, I can see the diagnostic message but the error message is not showing in the page.
    Need your assistance.
    package XXJava.oracle.apps.ar.program.webui;
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Hashtable;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletResponse;
    import oracle.apps.ar.irec.common.webui.CustomCustSearchCO;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.webui.OADataBoundValueFireActionURL;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAImageBean;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.OAWebBeanData;
    import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
    import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
    import oracle.cabo.ui.UIConstants;
    import oracle.cabo.ui.action.FireAction;
    public class XX_CustomCustSearchCO extends CustomCustSearchCO {
    public XX_CustomCustSearchCO() {
    public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    super.processRequest(paramOAPageContext, paramOAWebBean);
    OAAdvancedTableBean CustomCustSearchTable= (OAAdvancedTableBean)paramOAWebBean.findChildRecursive("CustomCustSearchTable");
              OAImageBean XX_Attach =(OAImageBean)CustomCustSearchTable.findChildRecursive("XX_Attach");
              /*Hashtable params = new Hashtable (1);
              //params.put ("XX_ACTION","XXX");
              params.put ("XX_ACTION","ATTACHMENT");
              Hashtable paramsWithBinds = new Hashtable(1);
              //paramsWithBinds.put ("XX_PRIMARY",new OADataBoundValueFireActionURL((OAWebBeanData) XX_Attach, "{$ConsInvId}"));
              paramsWithBinds.put ("CONS_ID",new OADataBoundValueFireActionURL((OAWebBeanData) XX_Attach, "{$ConsInvId}"));
              //paramsWithBinds.put ("CONS_ID",new OADataBoundValueFirePartialActionURL((OAWebBeanData) XX_Attach, "{$ConsInvId}"));
    XX_Attach.setFireActionForSubmit("addnInfoEvent",params,paramsWithBinds,false,false);*/
    FireAction localaction = new FireAction("tempEvent");
    OAButtonBean XX_Button1 =(OAButtonBean)CustomCustSearchTable.findChildRecursive("XX_Button1");
    XX_Button1.setAttributeValue(UIConstants.PRIMARY_CLIENT_ACTION_ATTR, localaction);
    public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
         super.processFormRequest(paramOAPageContext, paramOAWebBean);
    String flaction = paramOAPageContext.getParameter("event");
    if (flaction.equalsIgnoreCase("tempEvent"))
    paramOAPageContext.writeDiagnostics(this, "XX_CustomCustSearchCO :Inside the event ", 1);
    throw new OAException("The file path is invalid. Please check the value of the profile option",OAException.ERROR);
    Regards,
    Ram

    You are throwing the message and then catching it yourself, and then printing the stack, which is what java is doing.
    So, you need to
    remove
    }catch(Exception e)
    e.printStackTrace();
    and you would need to place the try block appropriately, since some methods you have used want exceptions caught.
    Tapash

  • How to get the value from Advanced table

    Hi,
    In the Advanced table have 2 LOV fields, I need LOV field value dynamically in the controller to validate the save button, if iam not selected any value in lov save button will not allow to save the data. In the table i am using 'Add another row'. How to get the lov field value in the process form request??? and how to do this requirement
    Thanks
    Naresh

    1. You can specify required property on LOV field to "yes". For events where you wish to disable the client side validations, set the property disable client side validation to "true".
    2. If above behavior is not what you are looking for, then you need to handle in AM and not CO.
    a. Call an AM method from CO.
    b. In that AM method, get handle of VO.
    c. Iterate the VO Rows and check for your validation rules.
    -Prince
    http://www.princekapoor82.blogspot.com

  • How to get the values of all rows in advanced table

    HI All,
    I am using an advanced table to enter the values for the service contract line (its a custom page)in that advanced table i ahave column with lov called task number for that task number once i had choosed one task number and creating one more row using add anethor row button i want to restrict the user to not to choose the task number which was entered in the previus row.
    Or if this is not possible i want to restrict the user by showing an error message when click on the submit button by saying you have choosed the duplicate task number please choose a uniqu task number
    please give some hints
    thanks
    ajay

    Hi
    your approach will have two steps
    1.) use the row refernce and get the value of task number of the row which is enterd by user .
    2.) use getRows in range and compare values of task number of every row with the user selected value ,if value match then throw error.
    Thanks
    Pratap

Maybe you are looking for

  • Can't post to this group

    I am getting the following error all the time. Your message was rejected The news server responded with: 441 Feedrule: Reject rule (love) Very frustrating. -- Lei

  • How to uninstall a Greasemonkey userscript in Firefox 3.6.16? Manage User Scripts box doesn't appear as before.

    I need to uninstall an old userscript installed through Greasemonkey. Usually I go via Tools-->Greasemonkey-->Manage User Scripts or right-click on the monkey icon on the bottom left and choose Manage User Scripts and get this large window where I ca

  • Create Shipment VT01N

    Dear All, We use transaction VT01N for shipment creation wherein we insert deliveries to be included in the shipment document. In standard functionality only those deliveries can be included who PGI has not been done. Once a goods issue is posted for

  • Serial # error

    I get the following message: "This serial number is not for a qualifying product.  Please try another." Please help!

  • Lost all my ring tones on my phone

    LOst all my ring tones on my phone how do I get them back