Advanced table OAF in Advanced Table MessageChoice

Hello

When I try to get the inner value of selected item in table adv. messagechoice using pageContext.getParameter("mcItmId") , it returns null.

I set the trigger for partial page on messageChoiceBean and in LICS I capture the event of fire but not able to get value selected choice of message element.

I also tried to get the input value of message text in the external adv. using pageContext.getParamter("mId") advanced table table but once again not able to get the value in PFR

Can you suggest a workaround or a solution?

Concerning

Umit Sadeguzel

Hello

I solved the problem by using the model layer. Only thing is that you must set the partial as page settings '${oa.current.viewAttrName}"where viewAttrName is the name of table databound VO field. Which returns the value of the selected table in the LICS

Hope helps,

Umit Sadeguzel

Rgrds

Tags: Oracle Applications

Similar Questions

  • Table advanced in OAF features

    Hello

    I have a page with an advanced array. This table contains a button.

    I display 5 records per page.

    If we don't select any line (check box) and click on the button, I throw an error like "Please select at least one line.

    Message is displayed without problems.

    But if I'm in the next page (6-10 records) and click on the button, error message on the first page (documents 1-5) instead of the current (6-10 records) page.

    Please let me know how to view the error/confirmation message on the same page.

    Thank you

    Palacin

    Try this:

    else if (pageContext.getParameter(EVENT_PARAM).equalsIgnoreCase("uncnf")){
      //HashMap h= new HashMap();
      ArrayList arry= new ArrayList();
      String stat=null;
      ResourceListVOImpl advanceVO =  (ResourceListVOImpl)am.findViewObject("ResourceListVO1");
      RowSetIterator rowSetIterator = advanceVO.createRowSetIterator("ResourceListIterator");
        rowSetIterator.reset();
        boolean rowSelected = false;
        while (rowSetIterator.hasNext())
      {
      Row row = rowSetIterator.next();
      if ("Y".equals(row.getAttribute("selectAtt")))
      {
         rowSelected = true;
      String employeenum=(String)row.getAttribute("EmployeeNumber");
      String employeename=(String)row.getAttribute("EmployeeName");
      String role=(String)row.getAttribute("AssignmentName");
      Date startdate=(Date)row.getAttribute("StartDate");
      String assStrDt = am.getOADBTransaction().getOANLSServices().dateToString(startdate);
      Date enddate=(Date)row.getAttribute("EndDate");
      String assEndDt = am.getOADBTransaction().getOANLSServices().dateToString(enddate);
      Number projid=(Number)row.getAttribute("ProjectId");
      Number assid=(Number)row.getAttribute("assignmentid");
      String projnum=(String)row.getAttribute("ProjectNumber");
      String projname=(String)row.getAttribute("ProjectName");
      String asnId=String.valueOf(assid);
      Serializable[] serparam ={uid,respid,applid,orgid,asnId};
      stat=  (String)am.invokeMethod("CancelBenchAllocation",serparam);
      arry.add(new OAException("Release unconfirm for employee "+employeenum+" is "+stat,OAException.CONFIRMATION));
      }
      }
      if(!rowSelected)
      {
      throw new OAException("Please select atleast one row to process.",OAException.ERROR);
      }
        OAException.raiseBundledOAException(arry);
    }
    

    See you soon

    AJ

  • MessageChoice and advanced table

    I have a table with a column containing beans of choice

    This table is to have as many lines like this...

    and if a select statement, a value of list of choices of a line, I get this value of this line only...

    How can I do this...

    Please... Please help me

    Satya

    Try checking the steps mentioned below thread

    How to work with partial fire action choice

    Thank you
    -Anil

  • Poplist table from advanced - please help to solve this

    Hi all

    I created a page, 2regions-

    Region1 - display the header data (double column by default) - dynamic where clause to display data

    Noire2 - Advanced Table, where I need to add lines and insert into db

    I converted a textinputfield in messagechoice (currencycode) and tried the partial page rendering to hide other textinput fields based on the currency code:

    I managed the button Add a line to the PFR to create the new line for advanced table.

    And also written logic for PPR hide fields according to tuturial OA.

    Whenever I have add the newline is added, but the poplist does not work. It shows an empty list.

    Could you please help if there is nothing I can do with logic advanced table?

    Thanks in advance,

    Suman

    Ok.  The decline is down the list of values for all lines?

    It seems that the query behind the VO will figure not return all rows.

    oracle.apps.xxdm.ecrc.poplist.server.xxCurrencyCodesVO

    See you soon

    AJ

  • Advanced reading single Table field

    Hello

    I use SPEL binding to set the read attribute only to a text field that becomes editable when certain conditions are met.
    However, the field is a search criteria for the advanced table and when I search a few lines that they are read-only. The search criteria is also ready only

    If I select a line and click on change, the search criteria becomes editable.

    How can I solve this error?

    Varun,

    1. from the page that looks like you are NOT advanced table, you use table, right? I think you are referring to advanced search?

    The behavior you're seeing is because the same pitch is used for research and the table of results. And you have a spell on this column.

    Try to implement the steps below and see what happens.

    1. remove the fate of the field.

    2. Add the fate programmatically using the DataBoundValue as below [for example, I used ActualFlag MessageChoice]:

    OAMessageChoiceBean messageChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("ActualFlag");
    if(messageChoiceBean != null)
    {
      OADataBoundValueViewObject actFlagDataBound = new OADataBoundValueViewObject(messageChoiceBean, "customReadOnlyAttr");
      messageChoiceBean.setAttributeValue(oracle.cabo.ui.UIConstants.READ_ONLY_ATTR,actFlagDataBound);
    }
    

    If the above change works, do the same for all lines you need the fate and active research.

    Let us know how you go.

    See you soon

    AJ

  • Obligation to fill the values in table advanced according to the selection of a value in another article of lov (not in the advanced table)

    Hi all

    We work in a custom oaf page subdivision. We have an obligation to fill the values in table advanced based on a value selection in an element of the lov (this LOV is not in the advanced table) .can share you it please me steps or examples of code to achieve this. Waiting for response.

    Kind regards

    I do not understand completely still. What do you mean by "default in the table values must be inserted".

    You can create a dummy VO with the same columns and fix the VO in the advanced table.

    In the normal scenario, when the user clicks on submit button, browse this VO, and copy the values to the validation according to VO and appeal EO. If values gets inserted into the database.

    When the user selects the number of PO, simply run the other VO and fill this dummy VO so that values are available in the advanced table. When you click on send, do not copy these values to the EO based VO, so these lines won't get inserted.

    It work?

    See you soon

    AJ

  • How to align an image centered in the advanced table column.

    Dear friends,

    I developed a page of the OAF with an image column in the advanced table, but by default the image column is not centered,
    How to make image centered in the advanced table column, please let me know your suggestions.


    Thank you
    Keerthi.K

    HAD,

    In your column, create a tabular presentation and a rowlayout and the image, and then put in the rowlayout. Set the horizontal alignment of the rowlayout inwards.

    Kristofer Cruz

  • Update for the advanced table query.

    Hello

    I am a newbie at OAF so need help with a simple task.

    I have an advanced table that was created using the query in the expert mode of the VO. (because it contains data from more than one table).

    Now, I want to update the data of any line which is amended in the table,

    I followed the example in table advanced in the tutorial and reached until the update method of the AM. Now, I'm not able to update the table. When I searched the forum said that I have a simple EO on the table to be updated, but I want to update multiple tables (foreign key relationship), if can do using the same VO? I have both the VO (based on one select query custom Expert mode and other normal VO EO-based).

    Can someone give me it please update the table in the query?

    Thank you
    VK

    Hi Vishal,

    It is good to know that your problem is almost solved.

    Yes, you will need to create separate poplist VO and one more thing, if you use poplist, you do not use custom query (expert mode).

    Kind regards
    Out Sharma

  • Table advanced table advanced out of sync after PR of PFR

    I have a page with an array of advanced master details of advanced table that works very well with PPR. I added some graphics based on the original Version used in the master that must be hidden or shown based on a messageChoice bean. The messageChoice bean submits the form when it is modified and passes a parameter that I check into the PFR of its controller. Because I can not change the oaGraphTableBean property to render in the PFR I do in the PR first pointing to the current page to invoke the PR of the controller method. It works very well with a problem; detail data are more in line with the main data in the table in the table objects. Once the PR runs via the forewardimmediate... call in the method of the PFR whenever I discover the secondary table that the same recordset is indicated for all master records.

    Any ideas on how to debug this problem or has someone meet this problem before with table tables in the OPS?

    Hello

    You hold the AM redirect to the page?

    Thank you
    Gerard

  • How to remove newly added line in table advanced

    Hello

    It comes to 12.1.3.

    I have a case of use with advanced table and the "Add Row" button.

    The user can add two lines (empty), field 2 (both part of PK, the two LOVs), then start filling, then realizes he added too many, because the TooManyObjectsException exception is thrown. What would be the 'Nice' way of having the last added row deleted, or some newly added lines to delete if a few lines have been added (before actually trying to commit). I mean how must reference any row that has been added and should be removed - this line do always not PK (PK because not even adjustable due to violation of PK if this makes sense). Is there a fun/easier way to do it? Would be great if someone could share a line or two...

    Thank you

    Anatoliy

    PS

    I have a delete button in a footer with action to fire the event as 'remove' in LICS, I like below, and copy the following code deletes the LAST record in the advanced table, not the one where the cursor is?

    If ("delete".equals (pageContext.getParameter (EVENT_PARAM)))
    {
    String rowRef = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Line OARow = (OARow) am.findRowByRef (rowRef);
    Row.Remove ();
    }

    Asmirnov-Oracle wrote:

    Hello

    Yes, I actually try this approach too.

    Have what approach you tried? 1 or 2?

    If you try to follow the second approach, you can try this?

    OAViewObject srcAppvo = (OAViewObject)findViewObject("SrcAppVO1");
    if (srcAppvo != null) {
        RowSetIterator srcAppRowItr =
            srcAppvo.createRowSetIterator("srcAppRowItr");
    
        try {
            Row srcAppRow;
            srcAppRowItr.setRangeStart(0);
            srcAppRowItr.setRangeSize(srcAppvo.getFetchedRowCount());
            int recCnt = srcAppvo.getFetchedRowCount();
            while (srcAppRowItr.hasNext()) {
                srcAppRow =
                        srcAppRowItr.next();
                if (srcAppRow != null) {
                    if (srcAppRow.getAttribute("SelectFlag") != null &&
                        srcAppRow.getAttribute("SelectFlag").toString().equals("Y")) {
                        srcAppRow.remove();
                    }
                }
            }
        } finally {
            srcAppRowItr.closeRowSetIterator();
        }
    }
    
  • How to implement the concept master details in table advanced

    Hello

    I implement information master details in advanced table.

    I guess all the data are coming in the secondary table, but below that certain spaces more are coming and showing an image and next to this, there is a text like ""pull down to load ". "

    Can someone help me figure out why this extra space is coming this table below?

    Thank you

    Vijaya

    Is that you can set the value of the below profiles false and try?

    FND_ENABLE_RICH_TABLE_INTERACTIONS

    FND_TOUCH_GESTURES_ENABLED

    Beware that this will affect the gesture of support for touch devices

    Thank you

  • Make the required column in table advanced of the OPS

    Hi all

    I have an obligation to make the column as required in table advanced BWC (worker buyer Center).

    Navigation: Purchase of super user-> Work Center buyer-> orders-> create a Standard command-> click the tab lines

    Please find the screen shot for your reference below

    Purchase_Order_Screen.PNG

    Void tab lines, five lines created automatically in advanced table and I made the need-by / Start Date is required by using customizations.

    I saw the line and submit button launches the error message ' form Validation failures: a value must be entered for 'need a day'. "

    Purchase_Order_Screen1.PNG

    Requirements of companies is required the need - by / column Start Date and the user trying to enter the line instead of 5 lines and when click on submit/save button without having to throw the error. Please let me know how to make and share sample code.

    Page path: / oracle/apps/po/document/order/webui/OrderPG

    Kind regards

    Vincent

    {public processFormRequest (pageContext OAPageContext, OAWebBean webBean) Sub

    pageContext.writeDiagnostics (this, "XxBEFOrderCO PFR start:", 1);

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    DocumentAMImpl documentamimpl = (DocumentAMImpl) pageContext.getRootApplicationModule ();

    String submitButton = pageContext.getParameter ("SubmitButton");

    String SaveButton = pageContext.getParameter ("SaveButton");

    String strPoMode = pageContext.getParameter ("poMode");

    String strEventParam = pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM);

    String strRowRef = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);

    Dim description As String = null;

    Day needbydate = null;

    String str2 = (String) pageContext.getTransactionValue ("DOCUMENT_MODE");

    PoLinesMergeVOImpl PoLinesMergeVO = documentamimpl.getPoLinesMergeVO ();

    Line PoLinesMergeVORowImpl = null;

    If (SaveButton! = null | submitButton! = null) {}

    pageContext.writeDiagnostics (this, "inside the if condition in the PFR:", 1);

    int pcLineRowCount = PoLinesMergeVO.getRowCount ();

    RowSetIterator rowSetIterator = null;

    try {}

    rowSetIterator = PoLinesMergeVO.createRowSetIterator ("PcLineIterator");

    If (pcLineRowCount > 0) {}

    rowSetIterator.setRangeStart (0);

    rowSetIterator.setRangeSize (pcLineRowCount);

    for (int i = 0; i)< pclinerowcount;="" i++)="">

    pageContext.writeDiagnostics (this, "inside the LOOP:", 1);

    line = (PoLinesMergeVORowImpl) rowSetIterator.getRowAtRangeIndex (i);

    Description = row.getItemDescription ();

    needbydate = row.getNeedByDate ();

    If (description! = null & needbydate == null) {}

    throw new OAException ("Please enter the Needby/Startdate", OAException.ERROR);

    }

    }

    rowSetIterator.closeRowSetIterator ();

    }

    rowSetIterator.closeRowSetIterator ();

    {/ *} catch (Exception exception) {}

    exception.printStackTrace ();

    }*/

    }

    super.processFormRequest (pageContext, webBean);

    }

    The above code is correct. This code can useful to others on the OrderPG in 12.2.4 version.

  • How to add Hide-see region in the advance area table?

    Region of table @How to add box to hide - show in advance? @aJohny

    Hi Vinay,

    Could you explain a little more about your condition.

    See you soon

    AJ

  • Problem with PPR in a table advanced with the insertion of several lines in create the page using 'add a new button '.

    Hello experts,

    I created a page that contains an array of advanced, 6-7fields (including a poplist column)

    Whenever I have add a new using the line add new line button, I get a null pointer exception.

    Code in Scenario1.


    Public Sub handleCurrencyChangeEvent()

    {

    PVO OAViewObject = (OAViewObject) findViewObject ("xxCurrencyPVO1");

    Line OARow = (OARow) pvo.first ();

    OAViewObject dtlVO = (OAViewObject) findViewObject ("xxEcreditCardDtlVO1");

    OARow dtlRow = (OARow) dtlVO.getCurrentRow ();

    String currency = (String) dtlRow.getAttribute ("CurrencyCode");    / / NULL POINTER EXCEPTION

    If ((currency == null) |) ("AED".equals (currency)))

    {

    row.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);

    row.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);

    row.setAttribute ("ExchangeRateRender", Boolean.FALSE);

    }

    on the other

    {

    row.setAttribute ("ExchangeRateTypeRender", Boolean.TRUE);

    row.setAttribute ("ExchangeRateDateRender", Boolean.TRUE);

    row.setAttribute ("ExchangeRateRender", Boolean.TRUE);

    }

    }

    Public Sub initPVO()

    {

    OAViewObject appPropsVO = (OAViewObject) findViewObject ("xxCurrencyPVO1");

    If (appPropsVO! = null)

    {

    If (appPropsVO.getFetchedRowCount () == 0)

    {

    appPropsVO.setMaxFetchSize (0);

    appPropsVO.executeQuery ();

    appPropsVO.insertRow (appPropsVO.createRow ());

    Line OARow = (OARow) appPropsVO.first ();

    row.setAttribute ("RowKey", new Number (1));

    }

    }

    handleCurrencyChangeEvent();    / / If I comment on this call, there will be no null pointer when I click on the button Add a new rank and PPR will not be the first line when I select the poplist.                 

    }

    Public Sub createDetailRow()

    {

    String hdrId;

    OAViewObject hdrvo1 = (OAViewObject) getxxEcreditCardHdrVO1 ();

    OAViewObject dtlvo = (OAViewObject) getxxEcreditCardDtlVO1 ();

    Initialize and create a line of VO

    If (! dtlvo.isPreparedForExecution ())

    {

    dtlvo.setMaxFetchSize (0);

    dtlvo.executeQuery ();

    }

    Line dtlrow = dtlvo.createRow ();

    dtlvo.executeQuery ();

    int count = dtlvo.getRowCount ();

    dtlvo.insertRowAtRangeIndex (count, dtlrow);

    Development of the sequence for the number of request *.

    Number of dtlseq = getOADBTransaction () .getSequenceValue ("xxdm. XXDMI_ECREDIT_CARD_DTL_SEQ");

    hdrId = hdrvo1.getCurrentRow ().getAttribute("CreditCardHdrId").toString (); mind vo

    dtlrow.setAttribute ("CreditCardHdrId", hdrId);

    dtlrow.setAttribute ("CreditCardLineId", dtlseq);

    dtlrow.setAttribute ("LineNumber", count + 1);

    End of sequence generation *.

    dtlrow.setAttribute ("CurrencyCode", "AED");

    String currency = (String) dtlrow.getAttribute ("CurrencyCode");

    System.out.println ("CurrencyCode:" + currency);

    dtlrow.setNewRowState (Row.STATUS_INITIALIZED);

    } / / end createDetailRow()

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processFormRequest (pageContext, webBean);

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    Event string = pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM);

    * Treatment add line button *.

    If ((ADD_ROWS_EVENT. Equals (Event)) & & "AdvTblRN".equals (pageContext.getParameter ("source"))) ".

    {

    am.invokeMethod ("createDetailRow", null);

    am.invokeMethod ("initPVO");

    } //**End add row button *.

    otherwise if

    ("currCodeChangeEvent".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)))

    {

    am.invokeMethod ("handleCurrencyChangeEvent");

    }

    ===========================================================================================================================

    Could please help what is wrong in the code, I followed all the steps as stated in the guide, but the table advance, the problem starts whenever I click on the button Add a new row for the creation of new line.

    I couldn't understand what was wrong with the code.

    Thanks in advance,

    Suman

    Suman,

    A few points:

    1. Why do you call handleCurrencyChangeEvent in the event to add a line? Simply set the useful, likely of the values in the line it himself.

    ex:-instead of calling the handleCurrenyChange method, simply add the below lines inside the createDetailRow()

    dtlrow.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);

    dtlrow.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);

    dtlrow.setAttribute ("ExchangeRateRender", Boolean.FALSE);

    2. it looks like you have on the field of the currency and that fireAction handleCurrencyChangeEvent action method is called, right?

    Instead of using dtlVo.getCurrentRow, use the code below:

    public void handleCurrencyChangeEvent(String eventRowSourceParam)
      {
      OAViewObject pvo = (OAViewObject)findViewObject("xxCurrencyPVO1");
      OARow row = (OARow)pvo.first();
    
      OAViewObject dtlVO = (OAViewObject)findViewObject("xxEcreditCardDtlVO1");
    
      //OARow dtlRow = (OARow)dtlVO.getCurrentRow();
      OARow dtlRow = (OARow)this.findRowByRef(eventRowSourceParam);
    
      String  currency = (String)dtlRow.getAttribute("CurrencyCode");    // NULL POINTER EXCEPTION
    
      if ((currency == null) || ("AED".equals(currency)))
      {
      row.setAttribute("ExchangeRateTypeRender", Boolean.FALSE);
      row.setAttribute("ExchangeRateDateRender", Boolean.FALSE);
      row.setAttribute("ExchangeRateRender", Boolean.FALSE);
      }
      else
      {
      row.setAttribute("ExchangeRateTypeRender", Boolean.TRUE);
      row.setAttribute("ExchangeRateDateRender", Boolean.TRUE);
      row.setAttribute("ExchangeRateRender", Boolean.TRUE);
      }
      }
    

    In the controller:

    if((ADD_ROWS_EVENT.equals(event)) && "AdvTblRN".equals(pageContext.getParameter("source")) )
    {
      am.invokeMethod("createDetailRow",null);
      am.invokeMethod("initPVO");
    } //**End Add Row Button**
    else if ("currCodeChangeEvent".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    {
      String eventRowSourceParam = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
      Serializable[] params = {eventRowSourceParam};
        Class[] paramTypes    = {String.class};
      am.invokeMethod("handleCurrencyChangeEvent",params, paramTypes);
    }
    

    3. Why do you call initPVO when it is clicked on the Add line? Are you calling not just in the PR?

    You could call it once in the PR and let. When you call it PR, you may need to remove the handleCurrencyChangeEvent of this method call.

    See you soon

    AJ

  • Link to view County line in table advanced

    Hello

    I Advanced Table in an array of advanced in the area of retail.

    ADV Table1

    ADV - table 2

    I used the link view to display data from Adv Table2. My requirement is to make false the second table advanced when there is no data.

    I want to understand the points below: -.

    (1) link should be performed explicitly or it is performed when executing Adv Table1.

    (2) can we get the number of rows of the VO AdvTable2.

    I tried to use the code below, but he doesnnt seem to work

    ViewObject itemspecvo = (ViewObject) am.findViewObject ("xxitemStepSpecInfoVO1");

    System.out.println ("number of lines ItemStepSpec" + itemspecvo);

    If (itemspecvo. GetRowCount () == 0)

    {

    OAAdvancedTableBean specbean = (OAAdvancedTableBean) webBean.findChildRecursive ("region128");

    specbean.setRendered (false);

    }

    Any help is appreciated that this requirement is urgent.

    Kind regards

    XYZ

    get the h VieLink descriptor, using the findViewLink method and then use the getDestination method.
    This method will give you a display image region (advanced table) object.
    Then use VO object, you can use getFetchRowCount.

    ViewLink vl = am.findViewLink("View_Link_Instance_Name");
    Get the Master VO

    Vo1 OAViewObject = vl.getSource ();

    Get retail VO

    OAViewObject vo2 = vl.getDestination ();

Maybe you are looking for