I want to take an Input from the Page and pass to a plsql package

Here i am extending a controller class i am get number of errors can you plz chk the syntax:-----
I am taking Attribute1 ,2,3 from the page and input it into procedure and get the out variable into project number in the page:----
public class adtDetailDataInputCO extends oracle.apps.ap.oie.webui.DetailDataInputCO
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
public void assignProjectNumber(OAPageContext pageContext, OAWebBean webBean)
OAApplicationModule oaapplicationmodule = pageContext.getApplicationModule(webBean);
OADBTransaction dbtrans = oaapplicationmodule.getOADBTransaction();
OAViewObject vo = (OAViewObject)oaapplicationmodule.findViewObject("OneReceiptBasedVO");
for (Row row = vo.first();
row != null;
row = vo.next())
String lattribute1 = (String) row.getAttribute("Attribute1");
String lattribute2 = (String) row.getAttribute("Attribute2");
String lattribute3 = (String) row.getAttribute("Attribute3");
String lProjectNumber="";
String l_status="";
String l_message="";
if (lattribute1 != null && lattribute2 != null && lattribute3 != null)
OADBTransaction txn = oaapplicationmodule.getOADBTransaction();
CallableStatement cs = txn.createCallableStatement("begin ADTP_PA_COMMON_UTILITY.get_project_from_tcc(:1,:2,:3,:4,:5,:6); END;",1);
try
cs.setString(1,lattribute1);
cs.setString(2,lattribute2);
cs.setString(3,lattribute3);
cs.registerOutParameter(4, Types.VARCHAR, 200);
cs.registerOutParameter(5, Types.VARCHAR, 0, 2000);
cs.execute();
l_status = cs.getString(4);
l_message = cs.getString(5);
cs.close();
catch (SQLException sql)
System.out.println(sql.getLocalizedMessage());
cs.close();
row.setAttribute("ProjectNumber",lProjectNumber);
row.setAttribute("TaskNumber",lTaskNumber);
* 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);
* 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);
assignProjectNumber(pageContext, webBean);
}

I've done a similar PL/SQL package call using the following:
You need update or add the following to your EO using the following:
public class AcctMapEOImpl extends OAPlsqlEntityImpl //replaced with OAPlsqlEntityImpl
public void create(AttributeList attributeList)
Number n = new Number(0);
if (getEntityState() != STATUS_NEW)
super.create(attributeList);
OADBTransaction transaction = getOADBTransaction();
setFormId(n);
setCreationDate(transaction.getCurrentDBDate());
setLastUpdateDate(transaction.getCurrentDBDate());
setCreatedBy(getCreatedBy());
setLastUpdatedBy(getCreatedBy());
public void insertRow()
try
OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)getDBTransaction();
String a = "begin apps.spl_jdev_api_item_console.spl_create_part(p_acct_nbr =>:1,p_part_nbr =>:2,p_part_desc =>:3,p_part_price =>:4,p_bin_bulk_yn =>:5,p_case_lot_yn =>:6,p_serial_yn =>:7,p_repack_yn => null,p_part_length =>:8,p_part_width =>:9,p_part_height =>:10,p_part_weight =>:11,p_done_flag =>null,p_creation_date =>null,p_uom =>:12,p_revision =>null,p_trans_type =>:13,p_lock_flag =>null,p_lock_id =>null,";
String b = "p_item_status =>null,p_hazard_class_id =>:14,p_shelf_life_code =>null,p_part_weight_uom =>null,p_volume_uom =>null,p_unit_volume =>null,p_dimension_uom =>null,p_un_number_id =>null,p_un_num_desc =>null,p_haz_id_desc =>null,p_last_update_date =>null,p_last_updated_by =>null,p_created_by =>:15,p_process_key =>null,p_part_type => null,p_comm_code => null,p_cat_desc0 => null,p_attribute1 =>:16,p_attribute2 =>:17,";
String c = "p_attribute3 =>:18,p_attribute4 =>:19,p_attribute5 =>:20,p_attribute6 =>:21,p_attribute7 =>:22,p_attribute8 =>:23,p_attribute9 =>:24,p_attribute10 =>:25,p_attribute11 =>:26,p_attribute12 =>:27,p_attribute13 =>:28,p_attribute14 =>:29,p_attribute15 =>:30); end;";
String s = (a+b+c);
OracleCallableStatement oraclecallablestatement = (OracleCallableStatement)oadbtransactionimpl.createCallableStatement(s, -1);
oraclecallablestatement.setString(1,getAcctNbr());
oraclecallablestatement.setString(2,getPartNbr());
oraclecallablestatement.setString(3,getPartDesc());
oraclecallablestatement.setNUMBER(4,getPartPrice());
oraclecallablestatement.setNUMBER(5,getBinBulkYn());
oraclecallablestatement.setString(6,getCaseLotYn());
oraclecallablestatement.setString(7,getSerialYn());
oraclecallablestatement.setNUMBER(8,getPartLength());
oraclecallablestatement.setNUMBER(9,getPartWidth());
oraclecallablestatement.setNUMBER(10,getPartHeight());
oraclecallablestatement.setNUMBER(11,getPartWeight());
oraclecallablestatement.setString(12,getUom());
oraclecallablestatement.setString(13,getTransType());
oraclecallablestatement.setNUMBER(14,getHazardClassId());
oraclecallablestatement.setNUMBER(15,getCreatedBy());
oraclecallablestatement.setString(16,getAttribute1());
oraclecallablestatement.setString(17,getAttribute2());
oraclecallablestatement.setString(18,getAttribute3());
oraclecallablestatement.setString(19,getAttribute4());
oraclecallablestatement.setString(20,getAttribute5());
oraclecallablestatement.setString(21,getAttribute6());
oraclecallablestatement.setString(22,getAttribute7());
oraclecallablestatement.setString(23,getAttribute8());
oraclecallablestatement.setString(24,getAttribute9());
oraclecallablestatement.setString(25,getAttribute10());
oraclecallablestatement.setString(26,getAttribute11());
oraclecallablestatement.setString(27,getAttribute12());
oraclecallablestatement.setString(28,getAttribute13());
oraclecallablestatement.setString(29,getAttribute14());
oraclecallablestatement.setString(30,getAttribute15());
oraclecallablestatement.execute();
catch(SQLException sqlexception)
throw OAException.wrapperException(sqlexception);
catch(Exception exception)
throw OAException.wrapperException(exception);
Method added to your AM:
public void createPart()
OAViewObject vo = (OAViewObject)getPartGenerationVO1();
if (!vo.isPreparedForExecution())
vo.executeQuery();
Row row = vo.createRow();
vo.insertRow(row);
// Required per OA Framework Model Coding Standard M69
row.setNewRowState(Row.STATUS_INITIALIZED);
} // end createPart()
Code in your *VOImpl:
public void initQuery()
setWhereClauseParams(null); // Always reset
executeQuery();
}

Similar Messages

  • I have cropped a clip and now want to take other clips from the remaining footage.  But the discarded footage which contains other desirable clips is not in Trash.  So, where did it go so I can access it?

    I have cropped a clip and now want to take other footage from the discarded remains of the clip.  But the discarded footage is not in my iMovie trash.  Where did it go?  And how do I rescue it so I can edit the other short clips from it that I need?

    I don't know how it did it (because I cannot duplicate the results) but one time the finder found a folder on my main hard drive called/Volumes Under that folder are folders called the names of previous external hard drives with numbers following them. /Volumes does not appear on my Mac hard drive. Obviously it is hidden somewhere. But it has content. Most of the time, the file names in that content don't show up in a search, but obviously I have found the content and deleted one huge folder of stuff it has saved. When I found the folder, I immediately opened it, where I found this stuff. But unfortunately when it opened in the search window I went directly to the "drive" folder and had no back arrow, so I couldn't get back to the search that found the content and the mystery /Volumes folder. The finder information window does show /Volumes directly off of the main drive (its not in any other folder). Anybody know where this stuff is hidden or how to get to it.

  • Hi i want to take a sequence from one timeline and drop it in another timelien without having to reedit the sequence. how do i do this thanks

    hi i want to take a sequence from one timeline and drop it in another timelien without having to reedit the sequence. how do i do this thanks

    leeg
    Your new thread was a success.
    Our original discussions on transferring content from one Premiere Elements project to another can be found
    What am I missing?
    in posts 4, 5, 6, and 7 of the above link.
    Good choice in deciding to go with the export from project 1 into project 2.
    Thanks again for your follow up and good work.
    ATR

  • I got the image on the vi,now I want to take rectangle potion from that image and compare with other image

    Hi,
    Now i have a image on VI ,i want to take rectangale postion of the image and compare with the other image(In this image also i need to take a small postionof it) and  show the result.
    Both image are equal or not....if it is equal show pass if the image is not ok fail.
    Regards,
    Sri.

    First i would like to thanks for the inputs,
    I have made one Vi for comparing the two images and display  equal or not.
    Problem:if there is a small change in the picture it is showing false ,but the image is ok only the contract ,clarity ,inclination is the problem... i need your help in controlling that image......like controlling the colors and telling if the color , shade, projection of the image of the image is in between this range show it as ok....
    i started with cluster taking the out put of the BMP file, but i am not able to do....can u help me on this.
    i am attaching the file what i have made...
    Regards,
    Sri
    Color
    Attachments:
    image.ppt ‏52 KB

  • Take an input from the dashboard to the data base

    Hi all
    I need to take a text from the dashboard and insert it to the database
    is there anyone experienced about that ?
    thanks in advance

    Hey Mohammed,
    Dashboard is used to view the industries KPI, I really don't understand the need of pushing the data from reporting side to DB. If the customers are not clear about that, as a developer we need to explain them the process. On top of all this, if its really helpful for the analysis, then go with them.
    I never tested this, though i have heard about this scenario. Below mentioned links can helpful for you to understand the data flow.
    Writing Data from Dashboards to Database using XML
    http://support.dundas.com/Dashboard4.Write_back_to_database.ashx
    How to send data from Xcelsius Dashboard to dat... | SCN
    Hope this helps.

  • I want to send a response from the servlet and then call another servlet.

    Hi,
    I want to send a response from the servlet and then call another servlet. can this happen. Here is my scenario.
    1. Capture all the information from a form including an Email address and submit it to a servlet.
    2. Now send a message to the browser that the request will be processed and mailed.
    3. Now execute the request and give a mail to the mentioned Email.
    Can this be done in any way even by calling another servlet from within a servlet or any other way.
    Can any one Please help me out.
    Thanks,
    Ramesh

    Maybe that will help you (This is registration sample):
    1.You have Registration.html;
    2.You have Registration servlet;
    3.You have CheckUser servlet;
    4.And last you have Dispatcher between all.
    See the code:
    Registration.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
      <HEAD>
        <TITLE>Hello registration</TITLE>
      </HEAD>
      <BODY>
      <H1>Entry</H1>
    <FORM ACTION="helloservlet" METHOD="POST">
    <LEFT>
    User: <INPUT TYPE="TEXT" NAME="login" SIZE=10><BR>
    Password: <INPUT TYPE="PASSWORD" NAME="password" SIZE=10><BR>
    <P>
    <TABLE CELLSPACING=1>
    <TR>
    <TH><SMALL>
    <INPUT TYPE="SUBMIT" NAME="logon" VALUE="Entry">
    </SMALL>
    <TH><SMALL>
    <INPUT TYPE="SUBMIT" NAME="registration" VALUE="Registration">
    </SMALL>
    </TABLE>
    </LEFT>
    </FORM>
    <BR>
      </BODY>
    </HTML>
    Dispatcher.java
    package mybeans;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletException;
    import java.io.IOException;
    import javax.servlet.RequestDispatcher;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Dispatcher extends HttpServlet {
        protected void forward(String address, HttpServletRequest request,
                               HttpServletResponse response)
                               throws ServletException, IOException {
                                   RequestDispatcher dispatcher = getServletContext().
                                   getRequestDispatcher(address);
                                   dispatcher.forward(request, response);
    Registration.java
    package mybeans;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Registration extends Dispatcher {
        public String getServletInfo() {
            return "Registration servlet";
        public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            ServletContext ctx = getServletContext();
            if(request.getParameter("logon") != null) {          
                this.forward("/CheckUser", request, response);
            else if (request.getParameter("registration") != null)  {         
                this.forward("/registration.html", request, response);
    CheckUser.java
    package mybeans;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class CheckUser extends Dispatcher {
        Connection conn;
        Statement stat;
        ResultSet rs;
          String cur_UserName;
        public static String cur_UserSurname;;
        String cur_UserOtchestvo;
        public String getServletInfo() {
            return "Registration servlet";
        public void service(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            try{
                ServletContext ctx = getServletContext();
                Class.forName("oracle.jdbc.driver.OracleDriver");
                conn = DriverManager.getConnection("jdbc:oracle:oci:@eugenz","SYSTEM", "manager");
                stat = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
               String queryDB = "SELECT ID, Login, Password FROM TLogon WHERE Login = ? AND Password = ?";
                PreparedStatement ps = conn.prepareStatement(queryDB); 
               User user = new User();
            user.setLogin(request.getParameter("login"));
            String cur_Login = user.getLogin();
            ps.setString(1, cur_Login);
            user.setPassword(request.getParameter("password"));
            String cur_Password = user.getPassword();
            ps.setString(2, cur_Password);
         Password = admin");
            rs = ps.executeQuery();
                 String sn = "Zatoka";
            String n = "Eugen";
            String queryPeople = "SELECT ID, Surname FROM People WHERE ID = ?";
           PreparedStatement psPeople = conn.prepareStatement(queryPeople);
                      if(rs.next()) {
                int logonID = rs.getInt("ID");
                psPeople.setInt(1, logonID);
                rs = psPeople.executeQuery();
                rs.next();
                       user.setSurname(rs.getString("Surname"));
              FROM TLogon, People WHERE TLogon.ID = People.ID";
                       ctx.setAttribute("user", user);
                this.forward("/successLogin.jsp", request, response);
            this.forward("/registration.html", request, response);
            catch(Exception exception) {
    }CheckUser.java maybe incorrect, but it's not serious, because see the principe (conception).
    Main is Dispatcher.java. This class is dispatcher between all servlets.

  • My iTunes says I owe $5.25 for songs that I have already paid for and am not going to pay for again but I want to get some apps from the store and now there's a hold on my account. Who do I talk to get the hold taken off

    I explained it most in my question but I am getting charged double for songs that I have already paid for and am not going to pay for twice because that is messed up. But I want to get some apps from the store and it wont let me because of $5.25. Who can I talk to about resolving this issue?

    You're right, it would have been covered under warranty. But because of the user damage, chances are there's a 200-something dollar fee . If you explain to them that it had a defect previously, they might replace it for you at no charge. **MIGHT**. But they would have to believe that it had a defect previously.

  • I have been unable to print from FF to Brother HL-1440. print generate pages w/odd bits of text from the page, and sometimes one image. If I want to print off the web, I have to print PDF. Older versions of FF print fine.

    I have been unable to print from FF to Brother HL-1440. print generate pages w/odd bits of text from the page, and sometimes one image. If I want to print off the web, I have to print PDF. Older versions of FF print fine.

    I downloaded OpenOffice and am able to print documents (in particular, the same document I created in MS Word). I guess MS Word is to blame. I believe the issue is concluded, but I'd welcome any comments about the Active Directory, as I might have a problem
    with OpenOffice in the future regarding that.

  • I want to cancel my account from the iTunes and all my bank information

    i want to cancel my account from the itunes and all my bank information

    Contact Apple customer service by sending an email through the Contact Us link at the bottom of the Apple.com iTunes support page. Let them know you want to cancel an iTunes account and they'll contact you for further information. However, note that if you choose this option, it may also hinder your ability to access the purchases you've previously made, particularly on computers that weren't authorized before you cancelled the account.

  • I wanted to download a book from the store and I kind of changed my store site from Ghana to U.S.please where do I go to change it to my country site to be able to download stuffs again

    I wanted to download a book from the store and I kind of changed my store from Ghana to United States. Can't download anything now.please I need help on how to switch my store back to ghana

    Change your country on iPhone, iPad, or iPod touch
    Tap iTunes Store, App Store, or iBooks Store.
    At the bottom of the Featured page, tap Sign In.
    If you're already signed in, skip to step 5.
    Tap Use Existing Apple ID.
    Enter your Apple ID and password and tap OK.
    Tap your Apple ID.
    Tap View Apple ID or View Account.
    Tap Country/Region.
    Tap Change Country or Region.
    Tap the Store menu and tap your country.
    Tap Next.
    Review the Terms and Conditions and Apple Privacy Policy.
    Tap Agree if you agree to the terms and conditions.
    In the prompt that appears, tap Agree.
    Select a payment method and enter your payment information.
    Enter your billing address and tap Next.

  • I want to download an image from the url and image is in byte format

    hi
    i want to download an image from the url
    http://www.tidelinesonline.com/mobile/j2me_v1?reqType=imageJoin&imageCount=1&month=1&day=1&year=2008&id=1&imageWidth=230&imageHeight=216&imageDepth=8&imageUnits=feet&imageType=JPG&msisdn=456
    first 5 digits will be the length of the image,we need to download except first 5 digits and display an image file
    i need to finish this today
    pla reply if any body knows solution for this.
    thanks in advance
    Mraj

    You do not need to do anything - iPhoto always keeps the original and you can revert to it at any time
    If you want to be able to see the original and the cropped version in iPhoto at the same time duplicate the photo (this does not really duplicate but simply starts a new edit stream for the photo - command-d) and crop the duplicate
    LN

  • How do I take .wav recordings from the icloud and store them on my PC so I can share them with others?

    I have recorded several interviews on my ipad, they have also been uploaded to the icloud.  All I want to do now is place them in a drop box so I can get them to the editing studio.
    How do I make this happen?

    Put Dropbox on your iPad, then put the files in Dropbox?

  • To pick up input from Web page and retive data which adapter is to be used

    Hi,
    I need to accept input on a web page . e.g custeorm number. The go to the BW system and pull out transcations for this custoemr and display it on the web page again what adapaters should I use ? how do i pass the screen inptu a parameter to retrive data in BW ?

    if exposed as webservice u can use soap adatper or check with http client example
    Message was edited by:
            Prabhu  S

  • How to take Input from the callers telephone keypad into oracle database

    My client requires to automate a registration task for his customers by telephone. The requirement is the Oracle database should take numeric input from the callers telephone keypad eg 1 or 2 or 3 and the oracle must store this input inside its database and do some required processing with such input and generate a unique numeric id (sequence) and send back this unique numeric ID to the caller who is on hold. Please Note. Is there any electronic device to be installed at the client site to solve the above task eg. any telephone line to be connected to the CPU and etc?
    I completely have zero knowledge. Please can you outline/summarise the instructions how to construct and install to meet my client requirement.
    If this is not possible in Oracle I Can migrate to any database. Please suggest.
    please help me. if you cant help i appretiate if you give me some clues

    You need to start with your telephone system. Normally this situation would involve some sort of PBX or other internal switching equipment. Talk to your vendor. There's likely to be software, etc. available to perform the interaction with the end user.
    It should have programmable "hooks" to interface with various databases. To Oracle it just looks like another program.
    Ken

  • How do i get input from the user?

    For example if i wanted to ask "Whats your favorite number" and then get the input from the user and assign it to a variable how would i go about doing that?

    hi,
    if you want to get input from your console your should work with io(input and output).The BufferedReader class, InputStreamReader class
    you should import "java.io.BufferedReader" and "java.io.InputStreamReader" package, and do something like this:
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    String favoriteNumber;
    System.out.println("Whats your favorite number ");
    favoriteNumber = input.readLine();
    System.out.println ("Your favorite Number Is " + favoriteNumber);
    if its a gui you should import "javax.swing.JOptionPane" and do the following
    String favoriteNumber = JOptionPane.showInputDialog(null, "Enter your favorite Number", "Favorite Number", JOptionPane.INFORMATION_MESSAGE);
    anjiie([email protected]).

Maybe you are looking for