AdvanceTable and getParameter

There is a page built with AdvanceTable with COL_A, COL_B, and COL_C.
A piece of picture ahead, "addTableRow", was also for the user to click to insert a new line.


The requirement for the company is to add a confirmation message with value of COL_A top of the page, after the user adds a new line, and then click 'Apply' (Commit).
For example, the message would show - "123 is saved successfully.

At this stage, I am able to get all work except that I am not able to get the value of COL_A is incorporated into the message using pageContext.getParameter ("COL_A").

Y at - it something special to read the value of a column in an AdvanceTable?

Thank you.

Hello

I tested on my end. Please find the updated code.

import xx.oracle.apps.cs.hello.server.DummyVOImpl;
import oracle.apps.fnd.framework.OARow;

  public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    {
    DummyVOImpl vo = (DummyVOImpl )am.findViewObject("DummyVO1");
    OARow row = (OARow)vo.createRow();
    vo.insertRowAtRangeIndex(0,row);//Here i am adding the row at the begining
    row.setAttribute(2, "Y");//Here 2 is the VO attribute Number like in my VO i was having three attribute and 3rd one being SelectFlag(0,1,2 i.e three attribute)
    vo.setCurrentRow(row); 

    }
}

I hope that helps!

Thank you
AJ

Tags: Oracle Applications

Similar Questions

  • problem with tabs and filter the lines of memory cache

    Dear all I have a problem with the oaf page has two tabs under two of them consists of a table and add the button to the row. Second tab, it's a detail of the first tab, which means that each line in the first tab may refer to one or more lines in the second tab, my problem is when I add the line in the first tab and go to the second tab to add lines to this line of the display of the page added all lines not only the matching lines.

    my code:

    1 - controller

    When press Tab of Lot lines (partial action)
    If (goLotsTab".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM))) {" "}

    String trxLineId = "38";//row.getAttribute("TrxLineId").toString(); "
    AddLotParam serializable [] = {trxLineId};
    am.invokeMethod ("getTrxLot", addLotParam);
    }
    What press Add button lines of lots (partial action)
    If (addLot".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM))) {" "}
    String trxLineId = "38"; row.getAttribute("TrxLineId").toString ();
    AddLotParam serializable [] = {trxLineId};
    am.invokeMethod ("addTrxLot", addLotParam);
    }

    When press Add a tab line (partial action)
    If (addLine".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM))) {" "}
    am.invokeMethod ("addLine", params);
    }

    Methods 2 - am

    public void getTrxLot (String pTrxLineId)
    {
    OAViewObject vo = (OAViewObject) getXXSiteLotsVO1 ();
    LinVo OAViewObject = (OAViewObject) getXXSiteLineVO2 ();

    Line linRow = linVo.getFirstFilteredRow ("SelectLineFlag", "Y");
    pTrxLineId = linRow.getAttribute("TrxLineId").toString ();

    If (!) VO.isPreparedForExecution ())
    //{
    try {}
    String existringWhereClause = vo.getWhereClause ();
    vo.setWhereClauseParams (null);
    vo.setWhereClause("trx_line_id=:1");
    vo.setWhereClauseParam (0, (pTrxLineId) Number);
    vo.executeQuery ();
    vo.setWhereClauseParams (null);
    vo.setWhereClause (existringWhereClause);
    }
    catch (Exception exceptionl)
    {
    throw OAException.wrapperException (exceptionl);
    }

    // }
    following line is commented, but I think that it will contribute to the memory of the filter
    cached data to be mapped.

    Rank [] lotRows = vo.getFilteredRows ("TrxLineId1", pTrxLineId);
    }

    /////////////////////////////////////////////////////////////////
    public void addTrxLot (String pTrxLineId)
    {
    OAViewObject vo = (OAViewObject) getXXSiteLotsVO1 ();
    LinVo OAViewObject = (OAViewObject) getXXSiteLineVO2 ();

    Line linRow = linVo.getFirstFilteredRow ("SelectLineFlag", "Y");
    pTrxLineId = linRow.getAttribute("TrxLineId").toString ();

    If (vo.getFetchedRowCount () == 0) {}
    vo.setMaxFetchSize (0);
    // }

    VO. Last();
    VO. Next();
    Line = vo.createRow ();
    row.setAttribute ("TrxLineId", pTrxLineId);
    vo.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);
    }

    OK, I'll share my latest code using other

    public void createTransaction() {}

    OAViewObjectImpl vo = getXXSiteHeaderVO1();

    If (! vo.isPreparedForExecution ()) {}

    vo.executeQuery ();

    }

    If (vo.getFetchedRowCount () == 0)

    {

    vo.setMaxFetchSize (0);

    }

    String status = "incomplete."

    OADBTransaction txn = (OADBTransaction) getOADBTransaction ();

    • oracle.jbo.domain.Date currentDate = txn.getCurrentUserDate ();

    Line = vo.createRow ();

    row.setAttribute ("TrxStatus", status);

    1. row.setAttribute ("TrxDate", currentDate);

    vo.insertRow (row);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

    {} public void addLine (String pTrxHeeaderId)

    OAViewObject vo = (OAViewObject) this.getXXSiteTrxVL1 () .getDestination ();

    VO. Last();

    VO. Next();

    Line = vo.createRow ();

    int linNum = vo.getFetchedRowCount () + 1;

    row.setAttribute ("TrxHeaderId", pTrxHeeaderId);

    row.setAttribute ("LineNum", String.valueOf (linNum));

    row.setAttribute ("SelectLineFlag", "Y");

    vo.insertRow (row);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

    Public Sub getTrxLot()

    {

    LinVo OAViewObject = (OAViewObject) this.getXXSiteTrxVL1 () .getDestination ();

    Line linRow = linVo.getFirstFilteredRow ("SelectLineFlag", "Y");

    String pTrxLineId = linRow.getAttribute("TrxLineId").toString ();

    linVo.setCurrentRow (linRow);

    OAViewObject vo = (OAViewObject) this.getXXSiteLineLotsVL1 () .getDestination ();

    }

    Public Sub addTrxLot()

    {

    LinVo OAViewObject = (OAViewObject) this.getXXSiteTrxVL1 () .getDestination ();

    Line linRow = linVo.getFirstFilteredRow ("SelectLineFlag", "Y");

    String pTrxLineId = linRow.getAttribute("TrxLineId").toString ();

    linVo.setCurrentRow (linRow);

    OAViewObject vo = (OAViewObject) this.getXXSiteLineLotsVL1 () .getDestination ();

    VO. Last();

    VO. Next();

    Line = vo.createRow ();

    row.setAttribute ("TrxLineId", pTrxLineId);

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

    vo.insertRow (row);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

  • Impossible to activate and deactivate the button "submit" all keeping the condition on the output parameter

    Hello

    I try to enable and disable the submit button based on the status of output parameter that I call in lov.

    Concerning

    Asia.


    Hi AJ,.

    Thanks for the reply

    I tried the method above, but it does not work.

    I am trying to enable and disable the submit button based on two input parameters and an output parameter.

    Based on two input parameters, I'm able to get the output parameter, and if the output parameter is "S" then iam allowing the submit button.

    on the other

    disable the submit button.

    Here is my code:

    IAM calling this co

    OASubmitButtonBean submitbean = (OASubmitButtonBean) webBean.findChildRecursive ("Submit");

    String crreason = pageContext.getParameter ("Reason")';

    Invnum string = pageContext.getParameter ("InvoiceNumber");

    String status = "";

    String ValidationDesc ="";

    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl) getTransaction ();

    Try

    {

    String sql_qry = "BEGIN WEPIS_CM_DM_PKG. WEPIS_CM_RAISE_VALIDATION (P_CM_REASON =>: 1, P_INVOICE =>: 2, P_VALDIDATION_S "+)

    "(TS =>: 3, P_VALDIDATION_DESC =>: 4); END; « ;

    OracleCallableStatement sqlstmt = (OracleCallableStatement) oadbtransactionimpl.createCallableStatement (sql_qry,-1);

    sqlstmt.setString(1,crreason);

    sqlstmt.setString(2,invnum);

    sqlstmt.registerOutParameter(3,Types.CHAR);

    sqlstmt.registerOutParameter(4,Types.VARCHAR);

    sqlstmt. Execute();

    status = sqlstmt.getString (3);

    ValidationDesc = sqlstmt.getString (4);

    If ("S".equals (status))

    {

    submitbean.setRendered (true);

    }

    on the other

    {

    submitbean.setRendered (false);

    }

    }

    catch (SQLException sqlexception)

    {

    throw OAException.wrapperException (sqlexception);

    }

    catch (System.Exception Exception)

    {

    throw OAException.wrapperException (exception);

    }

    Concerning

    S.Asia

  • How to call oracle Standard form of page style and element OFA should be 'Link '.

    Hi friends,

    I am new to OFA, I want to know how to call oracle OAF page Standard form and style of element must be "link."

    If I click on the element, it should put me in oracle Standard form.

    No button style of the element must be point "link."

    Please help me.

    Thank you

    Thiru.

    Trapani,

    It seems that your link triggers the Action, or you capture does not correctly.

    Add a debug message in your code and see what is printed.

    String eventParam = pageContext.getParameter(EVENT_PARAM);
    System.out.println("eventParam : "+ eventParam);
    if("openForm".equalsIgnoreCase(eventParam))
    {
      System.out.println("Inside If"");
      String destination ="form:SQLAP:PAYABLES_OPERATIONS:STANDARD:AP_APXSUMPS";
      pageContext.forwardImmediatelyToForm(destination);
    }
    

    Also check the settings:

    In your first post is the name of the function: AP_APXSUMPS, but the recent told FND_APXSUMPS.

    The resp_key was also PAYABLES_OPERATIONS and now PAYABLES_PS_FR

    As a test for the link, use the one that works, and then change appropirately.

    See you soon

    AJ

  • Text entry and message choice question

    Hi all

    I have a Standard Iproc no catalog page request customization. Customization is that I introduced a new link on this page. Once the user clicks on this link he navigates to a personalized page and the user can find data and select it.

    Once the user selects a value I'm getting back to the seeded page and assigning return the value in the standard field. Also before you navigate to the custom page, if the user has entered something on the standard page then I send this information to the custom page and keeping the back upon return.

    So now my question is.

    1. I send you the value of choice of the message selected in the custom page and once the user returns I am affect back as below

    OAMessageChoiceBean ItemTypeid = (OAMessageChoiceBean) webBean.findChildRecursive ("ItemType");

    ItemTypeid.setPickListCacheEnabled (false);

    ItemTypeid.setSelectionValue (pageContext, pageContext.getParameter ("ItemType"));

    super.handleItemTypePPR (pageContext, webBean); -This code is refresh the PPR.

    It works very well. But after that I assigned the value it does not allow the user to select a different value. If the user selects a different value it is put back to the old value of the code.

    2. on the same page, there are a lot of fields messagetextinput. But a field is a weird behavior. User not between any value in this field when it accesses a custom page. So I also send you anything and when he comes by assigning nothing.

    But whenever an action is happening in the page (Lov, Refresh the Page), the value of this field is clear out even if the user has entered this later.

    In the definition of page seeded, I can see that the VO attribute is shared between 2 fields.

    Any contribution on this will be helpful.

    Thank you

    Bharat

    Everything seems fine. Can you add a text box next to the link and set the ViewInstance to "NetappCatCodePVO1" and assign to "HideShow" and see what get printed in that.

    Also, can you change the firePartialAction to fireAction on the link and see a difference? If possible can attach you the VO.xml also.

    See you soon

    AJ

  • R12.2.4 data lost after using the dialog Page and return to the calling page. (Help please!)

    Hi team,

    I'm new to OAF and works on a requirement to add some custom validation when the user clicks a button in a seeded standard page.

    The approach I took was to extend the seeded controller object managed this press event button and put my custom logic in the extended controller and substitute the standard controller through customization.

    The standard rate which was pressing the Complete button A Page, the user was taken to the next and epepinee page (Page B) some operations based on records that have been chosen Page A.

    Part of the custom validation requirement that was if some postings were not met, the user must be a pop-up asking if they really wanted to move forward and if they have selected Yes then continue with the seeded standard flow (transition to page B) and if they have NOT selected then just remain on the current page.

    I have used OADialogPage and to do this, in part, the question , I am running into is that when the user selects one or more records using a check box in a region of several record (table) and click the full page and if the validation fails then a modal page and the user made a selection i.e.either Yes or no modal page and when they return to the calling page (ex. Page A), all data (records) they chose previously is lost (the Page is refreshed). Based on what I see on this forum, I suspect it's because after having click Yes on the modal page and then return to the original page the processRequest fires again and the VO data is queried again and has all the parts on the page are lost. Since I am changing the flow in seedlings pages based on the intervention of the user I'm confused as to how this problem can be solved. that is, prevent the page refreshes or preserve the selections that were made before you navigate to modal page. Any help is really appreciated!

    My Code:

    ' Public Sub processFormRequest (OAPageContext oapagecontext, OAWebBean oawebbean)

    ...

    ...

    If (oapagecontext.getParameter ("completeOps")! = null) {}

    ...

    ...

    If (warnCount > 0) {}

    OAException message = new OAException ("not in order...", OAException.WARNING);

    oapagecontext.putDialogMessage (message);

    OAException message = new OAException ("XYZ Violated rule. Do you want to continue? ", OAException.WARNING);

    DialogPage OADialogPage = new OADialogPage (OAException.WARNING, message, null, "","");

    String Yes = oapagecontext.getMessage ("AK", "FWK_TBX_T_YES", null);

    String number = oapagecontext.getMessage ("AK", "FWK_TBX_T_NO", null);

    dialogPage.setOkButtonItemName ("ConYesButton");

    dialogPage.setNoButtonItemName ("ConNoButton");

    dialogPage.setOkButtonToPost (true);

    dialogPage.setNoButtonToPost (true);

    dialogPage.setPostToCallingPage (true);

    dialogPage.setOkButtonLabel (yes);

    dialogPage.setNoButtonLabel (no);

    oapagecontext.redirectToDialogPage (dialogPage);

    }

    If (oapagecontext.getParameter ("ConYesButton")! = null) {}

    Write Yes button Action code

    oapagecontext.putParameter ("completeOps", "Continue");

    }

    If (oapagecontext.getParameter ("ConNoButton")! = null) {}

    Write the code of the Action for the No button

    Dim errormsg = ' rule Violations have occurred. "

    throw new OAException (errormsg);

    }

    super.processFormRequest (oapagecontext, oawebbean);

    }

    I managed to work around this problem by adding a simple control in my controller processRequest method extended to avoid the call to super.processRequest incase lhen control returns to the page once the user has made a selection on the Page of the dialog box

    If ((oapagecontext. (GetParameter ("ConYesButton") == null) & (oapagecontext.getParameter ("ConNoButton") == null)) {}

    super.processRequest (oapagecontext, oawebbean);


    }


    Thank you!

  • JDeveloper 10.1.3.3.0 (OFA) and expansion of the Oracle's Classes

    JDeveloper 10.1.3.3.0 (OAF)

    Oracle Applications 12.1.3

    OK, maybe I'm all wrong, but after 3 weeks of nonsense, I'm extremely frustrated.

    I work directly on my Win7 64 bit laptop, and I followed all the instructions to download the appropriate version, unzip the JDEV_USER_HOME environment variable set.  Now, if I do this in Win7, the OC4J will not work, and I can't test the Hello World application.  If I put JDeveloper in a session virtual XP, then it will be and everything works fine.  However, in Virtual XP, I can not enough memory to run JDeveloper with the all inclusive JAVA_TOP.

    I am trying to build a single class to extend oracle.apps.csi.instance.general.webui.GeneralAttributesCO.  I created a class under the custom directory, uhxx.oracle.apps.csi.instance.general.webui.uhxxGeneralAttributesCO.

    However, whenever I try to make the new class, I get errors indicating that JDeveloper cannot find GeneralAttributesCO.

    package uhxx.oracle.apps.csi.instance.general.webui;

    to import java.util.Enumeration;

    Import oracle.apps.fnd.common.VersionInfo;

    Import oracle.apps.fnd.framework.OAViewObject;

    Import oracle.apps.fnd.framework.webui.OAPageContext;

    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;

    Import oracle.jbo.Row;

    Import oracle.jbo.domain.Date;

    public class uhxxGeneralAttributesCO extends GeneralAttributesCO {}

    public static final String RCS_ID = "$Header: uhxxGeneralAttributesCO.java 120.15 2014/07/02-12:00 jwhanon noship $';

    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion ("$Header: uhxxGeneralAttributesCO.java 120.15 2014/07/02-12:00 jwhanon noship $", "uhxx.oracle.apps.csi.instance.general.webui");

    public uhxxGeneralAttributesCO() {}

    }

    ' public void processRequest (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)

    {

    super.processRequest (paramOAPageContext, paramOAWebBean);

    Try

    {

    paramOAPageContext.writeDiagnostics (Thi, "Start debug UHXX", 2);

    If (paramOAPageContext.isLoggingEnabled (2)) paramOAPageContext.writeDiagnostics (Thi, "Start debug UHXX", 2);

    paramOAPageContext.writeDiagnostics (this, "UHXX: Post super.processRequest", 2);

    oaapplicationmodule.invokeMethod ("initDetails", parameter1);

    String parameterName;

    Enumeration e = paramOAPageContext.getParameterNames ();

    While (e.hasMoreElements ())

    {

    parameterName = (String) e.nextElement ();

    If (paramOAPageContext.isLoggingEnabled (2))

    paramOAPageContext.writeDiagnostics (this, "the name of the parameter = >" + parameterName + "parameter = value >" + paramOAPageContext.getParameter (parameterName), 2);

    }

    String str1 = paramOAPageContext.getParameter ('page');

    String str2 = paramOAPageContext.getParameter ("PageMode");

    If (str1.equals("/oracle/apps/csi/instance/general/webui/CreateProductPG") & & (str2.equals("3")))

    customDefault (paramOAPageContext, paramOAWebBean);

    paramOAPageContext.writeDiagnostics (this, "end debugging UHXX", 2);

    }

    Finally

    {

    paramOAPageContext.writeDiagnostics (this, "UHXX", finally, 2);

    }

    }

    protected void customDefault (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)

    {

    Day nullDate = new Date();

    OAViewObject vo = (OAViewObject) paramOAPageContext.getApplicationModule (paramOAWebBean) .findViewObject ("GeneralAttributesVO");

    Line = vo.first ();

    If (line == null) row.setAttribute ("InstallDate", nullDate);

    row.setAttribute ("InstallDate", nullDate);

    }

    ' Public Sub processFormRequest (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)

    {

    super.processFormRequest (paramOAPageContext, paramOAWebBean);

    }

    }

    Hello

    Please make sure you have the GeneralAttributesCO.class base class in your folder myclasses (myclasses/oralce/apps/csi/Forum/general/webuu /).

    Thank you.

  • Error when adding default shipping and billing address

    HII guys I am trying to add my secondary address as a failed delivery and billing address, but all by doing this I am facing this error. Please help me.

    my code is: -.

    public boolean handleNewAddress (DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) survey ServletException, IOException

    {

    System.out.println ("Hello vivek0");

    preNewAddress (pRequest, pResponse);

    System.out.println ("Hello vivek1");

    Transaction lTransaction = null;

    Try

    {

    lTransaction = ensureTransaction ();

    System.out.println ("Hello vivek2");

    Profile of pProfile = getProfile();

    System.out.println (pProfile);

    System.out.println ("Hello vivek3");

    Obtain editValue, containing the data of the user form

    HashMap < String, String > pAddress = new HashMap < String, String > ();

    pAddress = getEditValue() (HashMap < String, String >);

    System.out.println (pAddress);

    System.out.println ("Hello vivek");

    Boolean isStandardizedAddress = Boolean.valueOf ((String) getEditValue () .get (Constants.ADDRESS_VALIDATED));

    String selectShippingAddress = (String) getEditValue () .get (Constants.SELECT_SHIPPING_ADDRESS);

    System.out.println (selectShippingAddress);

    String selectBillingAddress = (String) getEditValue () .get (Constants.SELECT_BILLING_ADDRESS);

    System.out.println (selectBillingAddress);

    pAddress.put (Constants.ADDRESS_VALIDATED, Constants.FALSE);

    CommercePropertyManager cpmgr = (CommercePropertyManager) ((CommercePropertyManager) getProfileTools () .getPropertyManager ());

    String lSecondaryAddressPropertyName = cpmgr.getSecondaryAddressPropertyName ();

    Map lSecondaryAddress = pProfile.getPropertyValue (lSecondaryAddressPropertyName) (card);

    int noofaddress = lSecondaryAddress.size ();

    String pNickname = String.valueOf (pAddress.hashCode ());

    pAddress.put (Constants.NICKNAME, pNickname);

    String sNickname = (String) pAddress.get (Constants.NICKNAME);

    super.handleNewAddress (pRequest, pResponse);

    pAddress.put (Constants.ADDRESS_VALIDATED, Constants.TRUE);

    pAddress.put (Constants.NICKNAME, sNickname);

    postAddress (pRequest, pProfile, sNickname, lSecondaryAddressPropertyName, selectShippingAddress, selectBillingAddress, pAddress);

    }

    Finally

    {

    {

    If (lTransaction! = null)

    {

    commitTransaction ((javax.transaction.Transaction) lTransaction);

    }

    }

    }

    Return checkFormRedirect (getNewAddressSuccessURL(), getNewAddressErrorURL(), pRequest, pResponse);

    }

    ' Private Sub postAddress (DynamoHttpServletRequest pRequest, profile pProfile, String sNickname, String lSecondaryAddressPropertyName, String selectShippingAddress, String selectBillingAddress, HashMap < String, String > pAddress)

    {

    Profile lProfileTools = null;

    String checkValueShip = pRequest.getParameter (Constants.DEFAULT_SHIP_ADDRESS);

    String checkValueBill = pRequest.getParameter (Constants.DEFAULT_BILL_ADDRESS);

    If (selectShippingAddress! = null)

    {

    (GetProfileTools()) .makeAddressShippingDefault (pProfile, lSecondaryAddressPropertyName, selectShippingAddress, checkValueShip) (NewProfileTools);

    }

    If (selectBillingAddress! = null)

    {

    ((NewProfileTools) getProfileTools()) .makeAddressBillingDefault (pProfile, lSecondaryAddressPropertyName, selectBillingAddress, checkValueBill, selectShippingAddress); (ERROR)

    }

    }

    java.lang.ClassCastException: atg.projects.store.profile.StoreProfileTools cannot be cast to com.test.userprofiling.NewProfileTools

    at com.test.userprofiling.TestProfileFormHandler.postAddress(TestProfileFormHandler.java:626)

    at com.test.userprofiling.TestProfileFormHandler.handleNewAddress(TestProfileFormHandler.java:605)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at atg.droplet.EventSender.sendEvent(EventSender.java:639)

    at atg.droplet.FormTag.doSendEvents(FormTag.java:829)

    at atg.droplet.FormTag.sendEvents(FormTag.java:675)

    at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:653)

    at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:681)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:150)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:213)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:696)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2452)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:191)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:161)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:512)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:230)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:461)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.projects.store.servlet.pipeline.ProtocolSwitchServlet.service(ProtocolSwitchServlet.java:309)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:491)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:298)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:392)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:113)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:234)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.servlet.pipeline.SecurityServlet.service(SecurityServlet.java:196)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:515)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1252)

    at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:930)

    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:272)

    at atg.filter.dspjsp.PageFilter.innerDoFilter(PageFilter.java:349)

    at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:208)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

    at org.apache.coyote.http11.Http11Protocol$ Http11ConnectionHandler.process (Http11Protocol.java:598)

    to org.apache.tomcat.util.net.JIoEndpoint$ Worker.run (JIoEndpoint.java:451)

    at java.lang.Thread.run (unknown Source)

    If you have extended atg.projects.store.profile.StoreProfileTools with a custom code. You define the attribute class the atg/userprofiling/ProfileTools element to your new custom class:

    /ATG/userprofiling/ProfileTools.properties

    $class = com.test.userprofiling.NewProfileTools

    This should avoid having to climb.

  • ASD ask an element of the catalog and custom properties

    Just curious if anyone else encountered problems with properties custom when you use ASD and demand action from point of catalog.  For example we are defining the name of business group in a custom using {custom.vCAC.BusinessGroup.Name} as the value of a custom property property.  Weventually hen requesting a plan detailed in the traditional way, it is calculated and the name of group in this area.  But when you ask the same through the ASD action plan, it is not evaluated.  I get "{custom.vCAC.BusinessGroup.Name} ' as text in the field."  Someone at - he found a solution to this?  Thank you


    Mike

    Custom properties are not sent by default with ASD... you get 5 "global variables"...

    _asd_tenantRef

    _asd_subtenantRef

    _asd_catalogRequestId

    _asd_requestedFor

    _asd_requestedBy

    _asd_subtenantRef is the id of the business group...

    You could catch the name like that...

    var vCACCAFEBusinessGroupId is System.getContext () .getParameter ('__asd_subtenantRef');.

    var vCACCAFEBusinessGroupObject = vCACCAFEEntitiesFinder.getBusinessGroup (vCACCAFEHost, vCACCAFEBusinessGroupId);

    var businessGroupName = vCACCAFEBusinessGroupObject.name;

    L System.log (businessGroupName)

    To get to the back of the custom properties, you could do that

    customProperties var = new Properties ();

    customProperties = vCACCAFEBusinessGroupObkect.getCustomProperties ();

    This property returns an array of properties...

    You can then loop through each object properties in the table and get the key/value

    Hope that helps somehow!

  • How to pass easily the fields Description and grounds for application of plan of action for the vRA to vRO WF service

    I know that you can bind some info request as constraints of value, such as the name of group company, or tenant or the code of the principal applicant, etc..

    Is there a similar way to pass the text of the Description and the reasons?  Or, how the text in these fields would easily get in a script task?

    The answer closest I have is below.  It is available in the workflow, not the user interface designer.

    ASDRequestId = System.getContext () .getParameter ("__asd_catalogRequestId");

    ASDRequest = vCACCAFEEntitiesFinder.getCatalogItemRequest(vRA_CAFEHost,ASDRequestId);

    Request_Reason = ASDRequest.reasons;

    Request_Description = ASDRequest.description;

    Request_Owner = ASDRequest.requestedFor;

    Posted in: Re: ASD service - how to get the values of Description and reason in the workflow

  • ASD service - how to get the values of Description and reason in the workflow

    Hi all

    I've created a workflow-based service of ASD. When the catalog of the ASD is requested, the first tab is 'Request information' which has the field description and reason. How to access these values to the underlying stream.

    Thank you

    Hello

    Here's a simple solution:

    ASDRequestId = System.getContext () .getParameter ("__asd_catalogRequestId");

    ASDRequest = vCACCAFEEntitiesFinder.getCatalogItemRequest(vRA_CAFEHost,ASDRequestId);

    Request_Reason = ASDRequest.reasons;

    Request_Description = ASDRequest.description;

    Request_Owner = ASDRequest.requestedFor;

  • pageContext.getParameter not retrieve the value of VO

    Dear,

    I use (pageContext.getParameter) to retrieve the value of messageTextInput when I click on submit and it works very well. But when I linked the messageTextInput with the VO attribute it returns value. Please I need your help with this.

    This is my code for CO

    /*===========================================================================+
     |   Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA    |
     |                         All rights reserved.                              |
     +===========================================================================+
     |  HISTORY                                                                  |
     +===========================================================================*/
    package g4s.oracle.apps.po.suppliers.server;
    
    
    import java.io.Serializable;
    
    
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OADialogPage;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import g4s.oracle.apps.po.suppliers.server.common.SuppliersVO;
    
    
    import oracle.jbo.ViewObject;
    
    
    
    
    /**
     * Controller for ...
     */
    public class SuppliersInfoCO extends OAControllerImpl 
    {
        public static final String RCS_ID = "$Header$";
        public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    
    
        /**
         * Layout and page setup logic for a region.
         * @param pageContext the current OA page context
         * @param webBean the web bean corresponding to the region
         */
        public void processRequest(OAPageContext pageContext, OAWebBean webBean) 
        {
            super.processRequest(pageContext, webBean);
            if (!pageContext.isBackNavigationFired(false)) 
            {
                TransactionUnitHelper.startTransactionUnit(pageContext, "SupplierApprovalTxn");
                if (!pageContext.isFormSubmission()) 
                {
                    OAApplicationModule am = pageContext.getApplicationModule(webBean);
                    ViewObject MyVO = am.findViewObject("SuppliersVO1");
                    MyVO.setNamedWhereClauseParam("vdr_id", pageContext.getParameter("vdr_id"));
                    MyVO.executeQuery();
                }
            }
            else
            {
                if (!TransactionUnitHelper.isTransactionUnitInProgress(pageContext, "SupplierApprovalTxn", true)) 
                {
                    OADialogPage dialogPage = new OADialogPage(STATE_LOSS_ERROR);
                    pageContext.redirectToDialogPage(dialogPage);
                }
            }
        }
    
    
        /**
         * Procedure to handle form submissions for form elements in
         * a region.
         * @param pageContext the current OA page context
         * @param webBean the web bean corresponding to the region
         */
        public void processFormRequest(OAPageContext pageContext, OAWebBean webBean) 
        {
            super.processFormRequest(pageContext, webBean);
            //SupplierAMImpl am = (SupplierAMImpl)pageContext.getApplicationModule(webBean);
            //String xx = "ApprovalBTN";
            //Serializable[] parameters = { xx };
            //am.invokeMethod("TriggerApproval", parameters);
            String userContent = pageContext.getParameter("SupplierNameEnITM");
    
    
            MessageToken[] tokens = { new MessageToken("SUP_NAME",userContent) };
            OAException confirmMessage = new OAException("PO", "WF_PO_SUPPLIER", tokens, OAException.CONFIRMATION, null);
            pageContext.putDialogMessage(confirmMessage);
        }
    
    
    }
    

    print pageContext.getParameter ("vdr_id") and see what he's back

  • How to communicate between JSP and jsf/jspx/managed bean using ADF11gR2

    Hello

    Scenario1.

    I use Jdeveloper 11 g R2, I am developing an application in the ADF. In our application, we implement of payment gateway.
    Application of the ADF, we call payment gateway.
    inside the payment2.jspx
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * < af:commandButton text = "#{res ['makepayment_2.totalpaymentthroughknet ']}" id = "cb1" action = "#{makePayment2.callPaymentGatway}" / > * "
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PaymentGatwayManagebean Method callPaymentGatway()
    public void callPaymentGatway() {
    > System.out.println ("Hi callKnetMethod method called");}
    > String payUrl, payId = null;
    > HashMap hm = new HashMap();
    > HttpServletRequest request = (HttpServletRequest) (JSFUtils.getFacesContext ()) .getExternalContext () .getRequest ();
    > logger.info ("-> callKnetMethod method called");
    > hm = KnetUtils.knetInitialize ("1", "2", "3", "4", "5", "6", "7");
    > payUrl = (String) hm.get ("PayUrl");
    > payId = (String) hm.get ("PayId");
    > request.setAttribute ("knetRedirect", "true");
    > try {}
    > KnetUtils.knetPay (payUrl, payId);
    >} catch (Exception e) {}
    > e.printStackTrace ();
    {>}
    }
    the above method called Paymentgateway after response from gateway payment successful return transaction with some data as the id of the transaction, the name of the Bank, amount, train etc. all data by adding to the URL
    Exodus http://192.168.102.41:7101/amificweb/faces/ami/repback.jsp?paymentId="+paymentId+"& result ="+ result +"& auth ="+ auth +"& ref ="+ ref +"& postdate ="+ post +"& trackid ="+ trackid +"& amp; tranid = "+ tranid + ' & udf1 =" + udf1 + ' & udf2 = ' + udf2 + ' & udf3 = "+ udf3 +" & udf4 = "+ udf4 +" & udf5 = "+ udf5;

    *Current repback.jsp page*
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    < %
    Payment gateway data take into repback.jsp
    > String paymentId = request.getParameter("paymentid");
    > String ErrorNo = request.getParameter("Error");
    > String udf1 = request.getParameter("udf1");
    > string udf2 = request.getParameter("udf2");
    > string udf3 = request.getParameter("udf3");
    > string udf4 = request.getParameter("udf4");
    > string udf5 = request.getParameter("udf5");
    > System.out.println (request.getParameter("result").toString ());
    > if (request.getParameter("result").equalsIgnoreCase ("CAPTURED")) {}
    > result = request.getParameter("result");
    > are later = request.getParameter ("postdate");
    > tranid = request.getParameter("tranid");
    > auth = request.getParameter("auth");
    > trackid = request.getParameter("trackid");
    > Ref = request.getParameter("ref");
    >
    > out.println ("REDIRECT = http://192.168.102.41:7101/amificweb/faces/ami/*voucherPrinting1.jsp*?paymentId="+paymentId+ "& result =" + result + "& auth =" + auth + "& > Ref =" + ref + "& > postdatent =" + postdatent + "& trackid =" + trackid + "& tranid =" + tranid + "& udf1 =" + udf1 + "& udf2 =" + udf2 + "& udf3 =" + udf3 + "& udf4 =" + udf4 + "& udf5 =" + udf5 "); {
    } else if (request.getParameter("result").equalsIgnoreCase ("CANCELED")) {
    > result = request.getParameter("result");}
    >
    out.println ("REDIRECT =http://192.168.102.41:7101/amificweb/faces/ami/Error1.jsp?paymentId=" + paymentId + "& result =" + result + "& ErrorText =" + ErrorText);
    >}
    > % >
    -
    In the present scenario I can redirect from repack.jsp to voucherPrinting1.jsp and I can take all of the data in the jsp page.

    But I want all the data * CallPaymentGatwayManagebean * method, how can I do. ?

    How communication between jsp and jsf, jsff, jspx, managedbean?



    Maroof

    You must save the config.xml file adfc bean in the scope of the request this ways you can call the method any page bean.

    Also have you tried using the pages in a taskflow with jspx and saving the bean in the taskflow which is a better approach?

  • How to handle the buttons back and forward in OANavigationBarBean

    Hi all

    I have to get the handle of the back and buttons next to the OANavigationBarBean point. I wrote below mention code in LICS. This condition is working when I click the back and next buttons. I mean the same event is fired on the two buttons...

    My Requirment is that this status to success only when you click on the next button...

    String s1 = pageContext.getParameter ("source");
    If ("".equals (pageContext.getParameter ("event")) goto & & IrcApplyNavBean ".equals (s1)) «»
    {


    Please help me on this...


    Kind regards
    Rognard

    Hello

    You can try with the value that is to say

    String s1 = oapagecontext.getParameter ("value"); or event button can also be handle in this way

    If ("BUTTON_EVENT".equals (event))
    {
    -business logic
    }

    Including the screen, work by the way? If I access I'll check it out and tell you

    -Had

  • Need help to create lines and regions table headers

    Hi all

    My requirement is to create a region to view the details of the table header. I then in the same page display lines in another region of the Table.
    If I click on a particular header description, it should display lines in the region of table rows.

    Also based on certain conditions should I show or hide columns in Table header region.

    Please give me your ideas to achieve this.

    Thanks in advance.


    Thank you and best regards,
    Mvyizhi

    Hi Mvyizhi,

    Please follow the steps

    (1) create a new attribute in the original Version with the following and attached properties to AM

    for example: name: select, Type: String, default: is Updatable: always check - Queryable and key of the attribute

    (2) create only a single selection in the area of the table

    Make sure you enter the view instance and discovers the attribute that you created in step ins 1

    (3) define the action of fire for single selection.

    In processFormRequest of your controller to capture the event

    If (executeAttachment".equals (pageContext.getParameter (EVENT_PARAM))) {" "}
    }

    (4) its very important to seize the line current value so that you can pass header line table table ID and run the query.

    Here's the complete code:
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    The PFR controller code:

    If (executeAttachment".equals (pageContext.getParameter (EVENT_PARAM))) {" "}

    String rowRef =
    pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Line OARow = (OARow) am.findRowByRef (rowRef);
    searchEmployeeVORowImpl lineRow = (searchEmployeeVORowImpl) am.findRowByRef (rowRef);
    If (lineRow! = null) {}
    If ((row.getAttribute("PersonId").toString ())! = null) {}
    String perIdValue =
    (String) row.getAttribute("PersonId").toString ();
    throw new OAException ("is" + perIdValue, OAException.INFORMATION PersonId selected);

    If (perIdValue! = null) {}
    [Serializable] parameters = {perIdValue};
    am.invokeMethod ("initAttachmentDetails", parameters);
    }

    }
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    In AmImpl.java

    {} public void initAttachmentDetails (String personid)
    If (personid! = null) {}
    System.out.println ("Id of the person has obtained and transmitted to AM is:" + personid);
    EmpAttachmentVOImpl vo = getEmpAttachmentVO1 ();
    {if(vo!=null)}
    vo.exeattachmentQuery (personid); the definition of this method will be written in VOimpl.java of VO attached to the area of the table
    }
    }
    }

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    VOimpl.java (online VO attached to the area of the table)

    public void exeattachmentQuery (String personId)
    {
    System.out.println ("-exeattachmentQuery in VoImple is called");
    If (personId! = null) {}

    Number of personIdNum = null;

    Try
    {
    personIdNum = new Number (personId);
    System.out.println ("the coveted number of transfer value is:" + personIdNum);
    }
    catch (System.Exception e)
    {
    throw new OAException ("AK", "FWK_TBX_INVALID_EMP_NUMBER");
    }
    System.out.println ("ID of the person being passed is NOT NULL");
    setWhereClause("PERSON_ID=:1");
    setWhereClauseParams (null); Always reset
    setWhereClauseParam (0, personIdNum);
    executeQuery();
    System.out.println ("the request is:" + getQuery());
    }
    }

    -------------------------------------------------------------------------------------------------------

    Note: Replace Pls your name VO and attribute carefully. It will work.

    Let me know if this isn't clear.

    Had

    Published by: keerthioaf on March 14, 2013 12:30 AM

Maybe you are looking for

  • How to remove all the songs in a playlist of my itunes library?

    My request here is, is it possible that I can select all the pieces that I have selected in iTunes and delete all of these songs in my iTunes library. To clarify I'm asking not how to remove and individual songs or how to remove a playlist, I want th

  • HP Envy 17-j184na 2nd HARD drive installed

    Hello I just bought a HP Envy 17 - j184na laptop and I do not want to install a 2nd HARD drive on the 2nd drive bay HARD inside, but there is no secure shell SATA cable for this caddy. Where I would be able to buy this rubberized HARD drive [blue] sh

  • HP Pavilion s5704y: s5704y won't start, help

    A friend has a s5704y and she said that she does not start. Went and I sterted it and got the blue screen of HP and he died with the monitor not saying no signal. I replaced the CR2032 on the MB, because I saw that a dead battery will cause a no boot

  • Laptop crashes

    Sometimes after I did a windows or hp update. It will require a reboot. When I do this, the system will reboot, but I don't see anything. Then the screen is black. The drive activity light is sometimes on sometimes doesn't work. All of this happens a

  • My pc will not boot mode "Eve". black screen, reboot reboot safe mode then anouther and all is well.

    Turning on my PC after the mode 'sleep' or when it was completely off my PC does not start until... White screen.  If I reboot and select Safe mode it loads. If I can restart in safe mode, and then it starts and everything works. I tried a lot of bug