Entity of PL/SQL object - how to access the PARAMETERS in the OA Page

Hello

I have the following pl/sql code that takes 4 entry and inserts values in the database table.

create or replace procedure is xxfwk_emp_create (p_person_id NUMBER, p_first_name IN VARCHAR2, p_last_name IN VARCHAR2), p_sal in NUMBERS, p_error_msg OUT VARCHAR2
cursor c1 is select EMPLOYEE_ID of fwk_tbx_employees;
v_status varchar2 (1): = ';
BEGIN
for v_c1 looping c1
If v_c1.employee_id = p_person_id then
p_error_msg: = "nobody with this id already exists."
v_status: = 'e ';
end if;
When exit c1% notfound GOLD v_status = "e";
end loop;
If v_status = 'e' then
GoTo error;
end if;
INSERT INTO FWK_TBX_EMPLOYEES (EMPLOYEE_ID,
FIRST NAME,
LAST_NAME,
FULL_NAME,
SALARY,
CREATION_DATE,
CREATED_BY,
LAST_UPDATE_DATE,
LAST_UPDATED_BY,
LAST_UPDATE_LOGIN)
VALUES (p_person_id,
p_first_name,
p_last_name,
P_first_name | » '|| p_last_name,
p_sal,
SYSDATE,
fnd_global.user_id,
SYSDATE,
fnd_global.user_id,
fnd_global.login_id);
< < error > >
null;
END xxfwk_emp_create;
/


I have the code in the EO Impl class

Public Sub::InsertRow()
{
Try
{
OADBTransactionImpl oadbTrans = (OADBTransactionImpl) getDBTransaction ();
String s = "start xxfwk_emp_create (p_person_id = >: 1, p_first_name = >: 2, p_last_name = >: 3, p_sal = >: 4, p_error_msg = >: 5); end; » ;
OracleCallableStatement oraCall (OracleCallableStatement) = oadbTrans.createCallableStatement (s,-1);
oraCall.setNUMBER (1, getEmployeeId ());
oraCall.setString (2, getFirstName ());
oraCall.setString (3, getLastName ());
oraCall.setNUMBER (4, getSalary ());
* < /Comment access the setting Out the procedure > *.
oraCall.execute ();
}
catch (SQLException sqlException)
{
throw OAException.wrapperException (sqlException);
}
catch (System.Exception Exception)
{
throw OAException.wrapperException (exception);
}

}
This insertRow, I want to get the error message (on param) and remove this message as exception in page OA.

What changes I need to make in my page?

Kind regards
RAM

Hi Ram,

You must first set the out parameters as follows:
((OracleCallableStatement) oraCall) .registerOutParameter (5, OracleTypes.VARCHAR, 0, 10);

Then execute the callable statement. After that, you can get the value as
String value = oraCall.getString (5);

Hope that helps.

Thank you
Sumit

Tags: Oracle Applications

Similar Questions

  • I bought jointly, Priemer elements and Photoshop elements. I downloaded photoshop successfully. How to access the Web page download for elements of Prime Minister?

    I bought jointly, Priemer elements and Photoshop elements. I downloaded photoshop successfully. How can I get access to the

    Download the Web page for the elements of Prime Minister?

    Garyl21385743 what version of Premiere Elements you are wanting to download?  You can download the latest versions of Premiere Elements to products download Premiere Elements | 10, 11, 12, 13.  You can also find links to the installation files for most retail securities of Adobe Creative Software to to other downloads.

  • Cannot access the settings page for adobe flash player for installation

    Hi guys, I have a Samsung android Tablet and I used to use adobe flashplayer until a recent update a few days ago. After the upgrade, I found that I can not see the pages on preview versions https://settings.adobe.com/flashplayer/mobile/f books on Google books. Briefly been searching the net I found that I need Flash for this function.

    I manually downloaded flash player from the flash player Web page archives 11.1.  Even if flash player is now installed, everytime I try to open it, I am directed to a page online - https:// settings.adobe.com/flashplayer/mobile. This page is still empty.

    I would be grateful if someone could guide me on how to access the settings page

    Kind regards

    Roman.

    Changed using Flash Player as it is irrelevant to the beta.

    Adobe no longer manages the Flash Player for Android, and he received no security updates in ages.  We strongly recommend that uninstall you it.  In addition, there a lot of malicious software distributed as a player from sources who are not Adobe Flash.  To minimize your risk of malware, only install applications directly from Adobe or through Google.  The vast majority of Android malware infections from the summary use third-party app store.

    If you absolutely need Flash Player for your mobile device, there are a few browsers that operate a Linux Flash Player based in a data center and broadcast content to your phone.

    Puffin Web browser - the fastest mobile browser with Flash support on cloud on iPad, iPhone and Android.

    Flash Player photon & browser - Android applications on Google game

    Thank you!

  • How to access the BPM 11 g load useful or process varibles in the workflow of ADF

    I'm trying to view/edit the data in a user interface that is linked to a database by using a foreign key, requestId. The foreign key comes from a BPM process where it is spent in the workflow, a human task. The foreign key comes process variables or values of payload. I know that I can simply load the payload in BPM with the data in the tables, but I'm looking for a better solution use the ADF business components to view and edit data directly in the user interface.

    The BPM process uses a web service to start the process. Web services takes a primary key as a parameter to reference a column in the database table. The data is pre-filled with content and a primary key reference. The first activity is an activity of the user. I want the workflow behind the user activity to accept this primary key and use to locate the line in the database, so related views of the database delimited ADF business components can work to present the data in the user interface.

    I tried two approaches to the problem. The first uses the setCurrentRowWithKeyValue operation. The other changes the SQL where clause, used by the ADFbc iterator only returns one row for the given requestId. Both of these approaches fail to work because I don't know how to access the load BPM or variable data entering the workflow. Here is the piece of code that I used to try to define the row using the value of setCurrentRowWithKey:

    public String setRequestId() {}

    FacesContext context = FacesContext.getCurrentInstance ();
    Object requestObj = context.getApplication () .evaluateExpressionGet)
    context, "#{bindings."(, Number.class) RequestId.inputValue "};
    If (requestObj is nothing)
    Returns a null value.
    RequestId number;
    requestId = (number) requestObj;

    ITR DCIteratorBinding = (DCIteratorBinding)

    getBindings () .get ("PatfRequestHdrView1");

    itr.setCurrentRowWithKeyValue (requestId.toString ());

    Returns a null value.

    I didn't get very far with the second approach, change SQL where clause, because I do not know Groovy. I think I need something like:

    adf.object.viewObj.RequestId. but it is not a viewObject associated with BPM data, so I don't know that this particular expression will not work.

    Any help you can give me is greatly appreciated.

    Kind regards
    Mark

    Try this code in your method:

    FacesContext context = FacesContext.getCurrentInstance ();
    String ctx = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistContext}", String.class);
    String tskId = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistTaskId}", String.class);
    IWorkflowServiceClient workflowSvcClient = WorkflowService.getWorkflowServiceClient ();
    ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService ();
    IWorkflowContext wfContext = wfQueryService.getWorkflowContext (ctx);
    Task myTask = wfQueryService.getTaskDetailsById (wfContext, tskId);
    XMLElement xmlPayload = (XMLElement) myTask.getPayloadAsElement ();
    get the payload as a string simple, useful for debugging
    java.io.StringWriter writer = new java.io.StringWriter ();
    xmlPayload.print (writer);
    String payloadAsString = writer.toString ();
    extract payload values: use methods in Oracle XDK

    See also this post:

    The task of reading by program details

  • How to access the attributes of VO through binding...

    I have a lookup table that has 2 columns namely encode and attrib.

    I created a ViewObject with SQL like:

    SELECT THE CODE, REFER TO THE STUDY_TYPE_CODES

    And he stated in an Application Module.

    Now I want to post it to the end-user as part of a selection
    that should show REFER to but returns the value CODE.

    I want to iterate the elements and generating the choices myself.
    So I tried this on my page:

    < af:selectOneChoice label = "Test" required = "true" >

    < af:forEach elements = "#{bindings." Var StudyTypeCodesVVO1.allRowsInRange}"="row">

    "< af:selectItem value =" #{row.code} "label =" #{row.describ} "id ="si3"/ >

    < / af:forEach >

    < / af:selectOneChoice >

    It gives an error. Looks like how I use
    "#{row.code}" or "#{row.describ} ' is false.  If I ' # {line} "then
    It's OK, and I could see that the line is a

    ViewRow [oracle.job.Key []]

    But I do not know how to access attributes by name 'Code' and ' means ".". " I also tried
    "#{rank." Code}"with the capital and it does not work.

    How to access the attributes 'code' and 'describe' of each line?

    Kindly help.

    Thank you.

    Check the RangeSize property on the iterator to pageDef.

    Dario

  • !! How to access the hidden settings *.

    HI guys,.

    How to access the settings hidden,
    LATCH WAIT_POSTING

    LATCH SPIN_COUNT


    spin count

    Thank you
    Vijay

    The column NAME in V$ PARAMETER is of type VARCHAR2.

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17110/dynviews_2087.htm

    Weapon of this knowledge, how would you rewrite your sql above statrement so that it runs without error?

    Srini

  • How to access the checkbox in mx:list

    I'm trying to access check boxes in my list

    < mx:List itemRenderer = "mx.controls.CheckBox" x = "0" y = "153" id = "listVocab" height = "297" width = "313" > < / mx:List > "

    but I can't find a way. That's what I do

    for (var i: int = 0; i < listVocab.numChildren; i ++)
    {

    If (I want to access the box here to see if she checked and then create the below but I don't know how to access the boxes?)

    {

    This gives me access to the text, but

    var password: String = listVocab.dataProvider [i] m:System.NET.SocketAddress.ToString ();

    }
    }

    Problem is with dataProvider your assignment to dataGrid is of type array of strings, which is why its saying selected there is no property to the string.

    Code given above by will work me for collection arrayCollection whose objects are of the following type instead of simple strings:

    public class CustomClass
    {

    public var data:String; Here id, you can store
    label public var:String; here Word you can store
            public var selected: Boolean;
    }

    You can make the change to

    public class CustomVocabulary
    {
    public var sentence: String;
    public var type: String;
    public var dbId:String;
    public var words: ArrayCollection collection; This will contain objects of type CustomClass.
    }

  • How to access the features of the APP from SessionBroker/UnitOfWork application?

    How to access the features of the APP from SessionBroker/UnitOfWork application (legacy TopLink APIs)?

    For example, how can I get similar APIs like em.createNativeQuery (managed object query return native) when you use the UnitOfWork API?

    Not JPA-coded on top of UnitOfWork or UnitOfWork on top of JPA?

    SessionBroker can an EntityManager is running?

    How can I execute JPQL via UnitOfWork?

    The answer would be no. We put only support flush multiples for the use of the APP.

    A more detailed inside the code look will show that we have actually created a RepeatabaleWriteUnitOfWork that offers extended support to match the requirements of the Joint Parliamentary Assembly. I have not tried using this subclass directly with our API native and the SessionBroker. I will review the developers to see what we believe, this is the best way forward for SessionBroker users looking to use JPA and our extended features associated with JPA.

    Doug

  • How to access the info in my iCloud account

    How to access the info in my iCloud account?

    You can access much of the iCloud.com on a computer or through specific applications on your mobile device such as contacts, calendars, iCloud Drive, Photos. What exactly you were looking for and what type of device.

  • How to access the bios?

    I am trying to install a new OS, how to access the bios on my HP Pavilian dv8?

    Hello:

    You should be able to access the BIOS by pressing the F10 key as soon as you see the HP welcome screen.

    Paul

  • How to access the BIOS on a Pavilion Elite e9237c with mouse and keyboard wireless?

    I have a desktop computer Pavilion Elite e9237 with a wireless keyboard and mouse. I tried to access the BIOS by pressing F10 at startup with no luck, and I can't access any of the other menus for the start-up eiither. I don't have a PS/2 port on my computer, so I can't get a wired keyboard and mouse. Does anyone know how to access the BIOS with this configuration?

    I bought a USB keyboard and he answered in the same way... No bios access. I then studied why it did not work and discovered that it was the way in which he has been connected to the computer. I had initially plugged into a USB hub when he was not working and I moved it directly into a USB port and it works! I plugged my keyboard wireless directly into the USB port and it works too! Thanks for your help... I wouldn't have thought of it if it wasn't for to recommend you the USB keyboard.

  • How to access the firefox on laptop Office keeping all the features?

    How to access the firefox on laptop Office keeping all tabs and bookmarks?

    Hello

    You may be able to do this in Firefox Sync configuration on both devices. Please see for detailed instructions.

  • Qosmio G30-126 - how to access the bios!

    I have a laptop Qosmio G30-126 and I don't know the key to enter the bios to change real estate for the HARD drive or something... then how to access the bios? What is the key for the bios?

    Hello

    Try pressing the F2 key by turning on the device.
    The Toshiba notebooks supported the ESC and then F1 button
    If these two options are possible

  • Re: How to access the BIOS on Satellite Pro A120

    Can someone tell me how to access the BIOS on my SAT Pro A120?

    Hello

    You must press ESC and then F1 key immediately after the laptop has been powered!

    The laptop seems to be to use the Toshiba BIOS and ESC key should be the right one!

    Good bye

  • How to access the BIOS on Satellite A110-195 settings?

    How to access the BIOS settings (CPU, video memory ect). I have http://eu.computers.toshiba-europe.com/innovation/jsp/SUPPORTSECTION/discontinuedProductPage.do?service=EU&PRODUCT_ID=1 18639

    At the start when the Toshiba start screen appears press F2 repeatedly and you should be able to enter the BIOS settings.

Maybe you are looking for

  • Find the IMEI number

    Hello. IBought my IPhone of the Korea. I lost my Iphone 5. But I don't have the IMEI number. You can help me find my IMEI number

  • C50-A-1HF satellite will turn off by itself after 2 seconds

    Hello the laptop turns off by itself after 2 seconds when I turn it on. This happens if I shutted down or choosed hibernate before (Win8.1). This means hibernation is not at all useable. The next time I turn it on it works quite normal! Sleep mode wo

  • The system has recovered from a serious error. Error checking.

    IBM ThinkCentre. Windows XP Pro My computer restarted on its own several times the last 2 weeks. I have the following error after logging in: The system has recovered from a serious error. A log of this error was created. Please tell this problem to

  • LaserJet M125nw MFP Pro: Printer refuses to print the text Document

    Cannot print text in any application on two computers (Windows 7 X 64). (According to request) error messages appear, or at all, nothing happens. Print images, but if the text added to the page (such as WordPad) and then nothing. Print test pages OK

  • Invoke built in App Photo Editor BB10

    Hi all I downloaded an application today and I noticed that the app has invoked the BB10 integrated image editor. Anyone know how? The name of the application's filter Mama http://appworld.BlackBerry.com/WebStore/content/27283379/?countrycode=us Than