Blog Archives

Show Values in the Sourcing Actions Drop down – Oracle Apps

In Sourcing Module we usually need to customize the page based on the Customer Requirement so I felt that the below code snippet will be useful to show the Values.

As a first step the Root Controller Class file has to be Extended

  public void processRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processRequest(pageContext, webBean);
    OAApplicationModule rootam=null;
    rootam=(OAApplicationModule)pageContext.getRootApplicationModule();     
    OAViewObject actionListVO =null;
    actionListVO = (OAViewObject)rootam.findViewObject("ActionListVO");
      
    AuctionHeadersAllVOImpl auctionVO = (AuctionHeadersAllVOImpl)rootam.findViewObject("AuctionHeadersAllVO");
    auctionVO.reset();
    if (auctionVO.hasNext()) {
        AuctionHeadersAllVORowImpl auctionRow = (AuctionHeadersAllVORowImpl)auctionVO.next();
        Number auctionHeaderId = auctionRow.getAuctionHeaderId();
        pageContext.writeDiagnostics(this, "Inside XXAttachCO PR AuctionId: "+auctionHeaderId, 4);
      }       
    
      pageContext.writeDiagnostics(this, "Inside XXAttachCO PR Before iterating the Action Code and Action Meaning ", 4);
      if (actionListVO != null) {
             int actionListVORowCount = actionListVO.getRowCount();
             int counter =0;
             if (actionListVORowCount > 0) {
               actionListVO.setRangeSize(actionListVORowCount);
               Row[] actionListVORows = actionListVO.getAllRowsInRange();
               for (int i = 0; i < actionListVORows.length; i++) {
                 Row actionListVORow = actionListVORows[i];
                 String actionCode = (String)actionListVORow.getAttribute("Code");
                 String actioMeaning = (String)actionListVORow.getAttribute("Meaning");
                 pageContext.writeDiagnostics(this, "Inside XXAttachCO PR getting actionCode= " + actionCode, 4);
                 pageContext.writeDiagnostics(this, "Inside XXAttachCO PR getting actioMeaning= " + actioMeaning, 4);
             } 
           } 
      }
  }
Design a site like this with WordPress.com
Get started