How to default Sysdate in Advance table region on clicking Add Another Row

Hi,
Can any one please help me how to default Sysdate (MessageTextInput column) in Advance table region on clicking Add Another Row.
Thanks,
Mohan

Got it... thanks mukesh..here it works.Reference to others!!!
if (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
OAViewObject vo3 = (OAViewObject)am.findViewObject("XxStageLineVO1");
OARow row1 = (OARow)vo3.getCurrentRow();
java.util.Date sysdate = pageContext.getCurrentUserDate();
String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
row1.setAttribute("StrtDt", convSysDate);
}

Similar Messages

  • How to embed  a advance table region in a seeded page

    Dear Friends
    I need to add a custom region in a seeded page { (po requisition page in worklist)--   /oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG  }
    I want to create a advance table region as custom region. CAN IT BE DONE THROUGH PERSONALIZATION?
    how to import this region .
    does it need apache bounce.
    Can u plz guide me how to achieve this.
    let me know for any clarification, plz help.
    Thanks
    Aravinda

    Hi Jyothi
    Can u plz explain in little detail.Shall I start with custom workspace and jpr or with std. path.
    I created a workspace xxom.oracle.apps.fnd.wf.worklist.webui
    and created vo,am and co .and where i have to move all these classfiles , how the seeded page will take my custom region.
    and how to import .can u plz give details.
    Thanks

  • How to create advance table region with columns by code

    hello friends
    i need to create advance table region and columns dynamically ... for that i want to know any code snippet do you have
    please share with me that would be really great help

    Hi ,
    It is not possible through code but
    1.) U can create a new custom OAAdvanced table under a custom region using JDeveloper.
    2.) Create stack layout bean using personalization on the page ,and in extend property of StackLayoutBean mention the complete path of above custom region .
    Thank
    Pratap

  • 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

  • Total in advance table region

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

    Hi Gurus,
    Please help me. its very urgent
    Thanks

  • Deleting Row from Advanced Table Region

    Dear Members,
    I have an OAF Page where I am using Advanced Table Region to display the data of a table.
    As soon as the page opens I am displaying one line in Advanced Table Region. In this region I have also given a button called ADD ANOTHER ROW +(using the feature of ADVANCED TABLE COMPONENTS, FOOTER, TABLE FOOTER , ADD TABLE ROW)+.
    So when user clicks on this button a new row will be added. Now if user wants to delete it how to achieve this.
    Kindly please help me in achieving this functionality.
    Many thanks in advance.
    Best Regards,
    Arun Reddy D.

    Hi Arun,
    First you need to create a button or image called Delete on your Advanced table region.
    Action Type : firePartialAction
    Event: delete
    Then In your CO PFR , write the below code
        if ("delete".equals(pageContext.getParameter(EVENT_PARAM)))
          String rowRef = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
          OARow row = (OARow)am.findRowByRef(rowRef);
          row.remove();
        }Hope this helps. :)
    Thanks,
    SK
    Edited by: SK on Feb 9, 2011 5:21 PM

  • How to setup DRILL/PIVOT in table region :

    plzz tell me how to setup DRILL/PIVOT in table region in Oracle Daily Business Intelligence Dashboard.
    what is the setting? to show drill/pivot option in table region [first column]

    Hi Sai Krishna,
    There is a very small difference between these two when you will create dependent LOV in Table or Advanced table the all the FormValue items to store ids which will be used as crieteria map or return items should be created inside table/Advanced table region.
    Hope this will help.
    Regards,
    Reetesh Sharma

  • 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 ...

  • How To Create the New Advance Table in standered RN?

    Hi Gurus,
    How to create the New Advance Table in stander RN?
    My requirement is slandered RN Having 1 Advance Table that advance table retrieve the two types of data 1.FUNC 2.BEHV Now My Client is asking split the data
    1) FUNC Data
    2) BEHV Data.
    Now i did first one through Vo Extension Filter the FUNC Data. now i really struck the Another part plz help me i cont go the next step....pl z tell me what are prerequisites are needed and how to go next step plz help me Gurus.
    Regards,
    Srini

    Hi,
    I have adding new & existing forms and creating User Defined Field in row. example on adding a field in an existing Form and its corresponding to the database, including user input validations?
    I want to add a new field in the detail section ( row area ) of a Production Document, and save it to database and read it back when the document is opened.
    Thanks.
    Syed Waqar Khurshid

  • Advanced table Add another row

    Hello everyone,
    I have created an advanced table region in my custom page. This is not a mandatory region in my page but there are other fields which are mandatory in the page. Right now i am unable to add another row in the advanced table unless all the other mandatory fields in the page are given some values.
    Is there any way to comeout of this situation.
    Thank you.
    PK

    I marked that this thread is answered answered but i have one more question relating to the same type of issue and thought of continuing this thread. It would be great if any one can give a suggestion.
    In the Advanced table, i have a delete button(its of type image) for which i have disabled the client and server side validations and implemented PPR for that button. Now when i click on the delete, the page moves up after deleting the row and i don't want that.
    How should i handle this situation?
    Thank you.

  • Add another row in the advanced table

    hi..
    i am having trouble with adding another row in the advanced table, the first thing is that i have created an add another row in the footer but when i click the add button an error occurs and the other problem is that the advenced table is retrieving rows from the database with some data in it but what i want when i add another row is to add a row in the same table but with the fields empty so that the user can fill them by himself to be added to the same table in the database
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidOwnerException: JBO-25030: A4D 'D9+H1 9DI #H 9/E */BJB 'DCJ'F 'DE'DC.
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2662)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

    this is the exact senario i have a page called TasksPG which have a region pageLayout it has a child which is an advanced table its ID is TasksTable and this advanced table has 8 columns and a footer that contains an addTableRow1 what i just want to do is to add another row of these columns so i put the following code in the processFormRequest
    super.processFormRequest(pageContext, webBean);
    OAAdvancedTableBean tableBean=(OAAdvancedTableBean)webBean.findIndexedChild("TasksTable"); //line 54
    OATableFooterBean tableFooterBean = (OATableFooterBean)tableBean.getFooter();
    if (tableFooterBean != null)
    // Get a handle to the add table row bean
    OAAddTableRowBean addTableRowBean = (OAAddTableRowBean)tableFooterBean.findIndexedChild("addTableRow1");
    // Handle add row insertion yourself
    addTableRowBean.setAttributeValue(AUTO_INSERTION, Boolean.FALSE);
    and the following error occurs when pressing the add another row
    oracle.apps.fnd.framework.OAException: java.lang.ClassCastException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2662)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.ClassCastException
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.findIndexedChild(OAPageLayoutBean.java:1392)
         at reportingSheet.oracle.apps.ak.user.tasks.webui.TasksCO.processFormRequest(TasksCO.java:54)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1156)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2658)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.ClassCastException
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.findIndexedChild(OAPageLayoutBean.java:1392)
         at reportingSheet.oracle.apps.ak.user.tasks.webui.TasksCO.processFormRequest(TasksCO.java:54)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1156)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2658)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

  • 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

  • How to add another row dynamically in Adobe Forms ?

    Hello All,
      Can someone advise on how am I able to add another row to my table upon the click of a button in Adobe Form ?
    Based on some sample PDFs that I downloaded from the net as reference, it seems that all I need to do is add the statment "_Car.addInstance(1)" in the script editor that will trigger upon a clicking of a button where Car is a subform that is of Type : Flow Content and Direction : Table Row set.
      Any suggestion/advise will be greatly appreciated.
    from
    Kwok Wei

    Hello Kwok Wei,
    in NW 2004s, this will be possible on the client using a special forms library object provided by Adobe.
    Be aware, though, that while you are able to add any number of additional lines on the PDF, the original Web Dynpro context is not aware of these actions. This means that your application needs to create the corresponding new nodes in the context before the data contained in these nodes can be submitted back to the application.
    Regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • How to get the values from table region and how to set

    Hi,
    I have a requirement as Seeded Page Having One Table Region having around 8 columns, In That Item Description field is there. My Requirement is I need add one more field for that Region and assign the value depending Item Description.
    I will create one new Item in that region and will give name as Item, But how to set the values to Item Depending on Item Description.
    Is it possible to through CO Extension, If yes..Pls help how to get it.
    Thanks in Advance,
    Hanimi

    Hi Hanimi,
    1. You need to extend the VO, add a new Attribute.
    2. In VORowImpl of the extended VO, you can find the getter for your new attribute (example getItem())
    3. In this getter method you can write some code like:
    if("ABC".equals(getItemDescription())
    return "XYZ" ;
    -Prince
    http://princekapoor82.blogspot.com

  • How to refresh MessageChoice in advanced table on LOV change?

    I have an advanced table for data entry. One column has Employee Name, which is an LOV. Another column is a MessageChoice, listing eligible elements for that person. Everything works fine when the page is first loaded. This is the code I'm using in processRequest to set up the MessageChoice: The MessageChoice is set up using a PicklistViewDefinition (not instance) as each row has to have different selections.
    OAAdvancedTableBean table = (OAAdvancedTableBean)webBean.findChildRecursive("TimeEntryTbl");
    OAMessageChoiceBean elePoplist = (OAMessageChoiceBean)table.findChildRecursive("ElementSelect");
    elePoplist.setListVOBoundContainerColumn(0, table, "EmployeeGroupName");
    elePoplist.setListVOBoundContainerColumn(1, table, "PeriodEndDate");
    elePoplist.setListVOBoundContainerColumn(2, table, "AssignmentId");
    elePoplist.setPickListCacheEnabled(false);
    The problem is when a new row is added, initially the poplist will be empty, which is expected. After choosing a value from the Employee LOV, the AssignmentId (which is a FormValue) will be populated. At this point, I need the Poplist to refresh to get the correct list of elements. I'm not sure how to make the poplist refresh. In ProcessFormRequest, I have:
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    System.out.print("lovsource=" + lovInputSourceId);
    And it prints the correct lov source. The dev guide says you can invoke an AM method there... but what should the AM do? I'm not sure how to refresh a poplist for a specific row when it is defined in an advanced table with Bound container columns, using a picklist view definition.

    I looked through that thread, but nothing in there seemed to really directly address my problem. The solutions in there seemed to be to make view instances instead of using the bound container columns.
    But, to answer my own question, I think I found the solution, which so far seems to be working ok...
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    if ("PersonSelect".equals(lovInputSourceId))
    pageContext.setForwardURLToCurrentPage(null, // no parameters to pass
    true, // retain the AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    Which basically just refreshes the page so all the MessageChoice fields are re-populated based on the latest information in the row. No need to automatically re-execute any VOs and let's OAF do it's own thing to maintain them.

Maybe you are looking for

  • Can't markup some documents

    I have been trying out the new version of the Adobe ios reader on my iPad 2 (all updates applied). Unfortunately the first document that I tested, could not be marked up with the highlighter, the strikethrough or underscore. I managed to locate other

  • SRM PO created with wrong company code

    Hello,         The users have created several PO in SRM with wrong company code. The user was found in the wrong organization structure during the creation of shopping and approval. The PO did not get transfer to the Back because of this. Is there a

  • How to copy function group from one SAP system to another

    dear all, our company will set up a sub-company currently,and the sub-company want to copy some programs from our SAP system. how to pack and copy function group? pls help me,tks!

  • Handling large data -urgent

    i have to compare fieldname from 2 different servers(as in newly added/deleted/length) the problem here im facing is handling huge data .. i have made an rfc for fetching fieldname from remote server n then reading on tabname n then comparing the fie

  • How put downloads in iphoto

    I have downloaded pictures onto my mac, how do i get them in my iphoto?