How return values when the page of the ofa procedure call

Hello

I need to return multiple values in the OPS page calling procedure.i using below code.bt I'm able to return a single value. Please suggest me how to return multiple values.

Co:

-----

If (pageContext.getParameter ("Calc")! = null) {}

Vo1 OAViewObject = (OAViewObject) am.findViewObject ("AddonBillingVO");

System.out.println ("VO");

{if(VO1!=null)}

CNT int = vo1.getRowCount ();

System.out.println ("count:" + cnt);

If (cnt > 0)

{

RowSetIterator rs = vo1.createRowSetIterator("empIterator");

System.out.println ("EMP");

If (rs! = null)

{

While (rs.hasNext ())

{

AddonBillingVORowImpl line = rs.next ((AddonBillingVORowImpl));

System.out.println ("impl");

If (line! = null)

{

String laseid = row.getAttribute("LeaseId").toString ();

System.out.println (laseid);

String billingid = row.getAttribute("AddonBillingId").toString ();

System.out.println (billingid);

[Serializable] param = {}

laseid, billingid

};

String newupc = (String) am.invokeMethod ("callPLSQLProc", param);

System.out.println (newupc);

String myValue = newupc;

OAMessageTextInputBean textBean = (OAMessageTextInputBean) webBean.findChildRecursive ("prorate");

textBean.setValue (pageContext, myValue);

}

}

AM:

--------

public String callPLSQLProc (String laseid, String billingid)

{

OracleCallableStatement callableStatement = null;

Try

{

String callProc = "BEGIN LEASE_PRORATE_PKG. LEASE_PRORATE_PROC1 ' + '.

"(p_lease_id = >: 1,» +)"

' p_billing_id = >: 2 +,

"(p_prorate = >: 3) +;

'END;';

callableStatement (OracleCallableStatement) = getOADBTransaction ().createCallableStatement(callProc,1);

callableStatement.setInt (1, Integer.parseInt (laseid));

System.out.println (laseid);

callableStatement.setInt (2, Integer.parseInt (billingid));

System.out.println (billingid);

callableStatement.registerOutParameter(3,OracleTypes.VARCHAR,255);

callableStatement.execute ();

String resultMessage = (String) callableStatement.getString (3);

System.out.println (resultMessage);

Return resultMessage;

}

catch (System.Exception e)

{

e.printStackTrace ();

System.out.println ("execepn");

throw new OAException (try (), OAException.ERROR);

}

printscreen.PNG

Khalil.

Hello

You are the PL/SQL procedure in a loop on the right? Just assign the value to the attribute appropirate.

if (pageContext.getParameter("Calc")!=null)  {
  OAViewObject vo1 = (OAViewObject)am.findViewObject("AddonBillingVO");
  System.out.println("vo");
  if(vo1!=null) {
  int cnt = vo1.getRowCount();
  System.out.println("count :" + cnt);
  if (cnt > 0){
  RowSetIterator rs = vo1.createRowSetIterator("empIterator");
  System.out.println("emp");
  if (rs != null){
  while (rs.hasNext()){
  AddonBillingVORowImpl row = (AddonBillingVORowImpl) rs.next();
  System.out.println("impl");
  if (row != null){
  String laseid = row.getAttribute("LeaseId").toString();
  System.out.println(laseid);
  String billingid=      row.getAttribute("AddonBillingId").toString();
  System.out.println(billingid);
  Serializable[] param = { laseid,billingid };
  String newupc = (String) am.invokeMethod("callPLSQLProc",param);
  System.out.println(newupc);
  //String myValue = newupc ;
  //OAMessageTextInputBean textBean = (OAMessageTextInputBean)webBean.findChildRecursive("prorate");
  //textBean.setValue(pageContext, myValue);
  row.setAttribute("Prorate",newupc);
  }
  }
  }
  }
  }
}

Check the last lines. If the attribute name is nothing else than "Pro rata", updated accordingly.

See you soon

AJ

Tags: Oracle Applications

Similar Questions

  • How to get the return value of the method by calling the stored procedure in ApplModuleImpl

    Hello

    I use Jdev 10.1.3.4
    JSF, and ADF business components
    I created a service method in the implementing class of module request to execute the strored procedure in the database.
    This breeding returns a string value.
    now, I slipped the method of service of data control palette on my JSF page and chose ADF parameter form when I droped.
    It works very well.
    now, I want to display the string returned by the method of service after the execution on the JSF page as global messages.
    How can I achieve this.
    Help, please

    Thanks in advance

    Kind regards
    Ajit Agarwal

    Hello

    You must run programmatically run the method binding. If I'm not wrong then the following code will allow you to access the return value

    OperationBinding oper = bindings.get("MyPLSQLAccessMethodBinding") (OperationBinding);
    String returnValue = oper.execute ((String));

    Once you have the string in a managed bean you can add it to the stack of messages JSF exposed by the FacesContext

    Frank

  • How to use the current connection when the db procedure call?

    Hi all

    Use Jdevleoper 11.1.1.3.

    I have a java class that calls a database procedure, now everything is fine with me, but a little slow because am open a new connection, I think it would be certainly faster if the current connection is using
    so, how can I re - write my code so I can use the istead of connection today to define a new connection to the DB:

    public void DeleteApp (int PAppNo) {}
    String username, password, thinConn;
    username = "ACC";
    password = "ACC";
    thinConn = "JDBC: thin: @...» »
    try {}
    DriverManager.registerDriver new (OracleDriver());
    Connection Conn = DriverManager.getConnection (thinConn, username, password);
    CallableStatement cs = conn.prepareCall ("{call myprocedure(?,?,?)}");
    cs.setInt(1,PAppNo);
    ....
    }

    Thanks for all,
    MaLa

    I would like here...

    A big problem, it's that you must hard code connection information into the user interface. No change to a different DB server configure it without changing the code and redeployed.

    Next, why don't you put method in the module of the application and call it? This will keep the valid MVC pattern.

    Timo

  • Get the error when the remote procedure call

    When I try to call the child remote database procedure, I am getting error below:

    ORA-02064: operation divided not supported
    ORA-06512: at "NMUSER. NEW_CUST_UPLOAD', line 740


    (P.S. on line no 740 I published "commit" ;))


    I checked rights, synonymous with on all the objects they are very good.

    Santosh Pradhan wrote:

    ...

    (P.S. on line no 740 I published "commit" ;))

    Do validation on the remote database. Do it on the local database. If you have a distributed transaction, then this local validation, will invest also the remote data.

    See also: http://docs.oracle.com/database/121/ADMIN/ds_concepts.htm#ADMIN12118

  • How to get the return value of the activity of the method in the stubborn workflow

    Hi all

    I use Jdeveloper 11 g R2 (11.1.2.3) & Weblogic 10.3.5.0

    I have a stubborn workflow, default activity is a call method than calling a method in the app module
    This method returns an id

    I need this code in my project to do something else
    Is there a way I can access the return value of the method call activity?

    Concerning
    Mohsen

    Set the value of return as #{{pageFlowScope.myBean.returnValue} pageFlowScope.myBean.returnValue} in the method, call the property inspector and get the value in your managed bean.

    String returnParam = (String) JSFUtil.getFromPageFlow ("returnValue");

  • The text element values value when the user clicks a report line.

    The text element values value when the user clicks a report line.

    I have a report based on the EMP table and two elements P911_EMPNO, P911_DEPTNO. When I click on one of the lines the EMPNO and DEPTNO is copied to the text elements.
    It works fine if I leave the EMPNO and DEPTNO as SHOW report, but if I then these clear values are not retrieved the report form (my javascript is very limited).

    I need a method to retrieve the data hidden in the report and display in the text without the reposting of the page elements.

    Also, would be nice if the line was highlighted until another line is clicked but especially is my priority.

    Elements
    P911_EMPNO, P911_DEPTNO (field of disabled text, saves the State)

    Report
    Select * from emp using the model of report below.

    Custom model.
    standard_report_cust_P330-a copy of the standard report with a change model.
    BEFORE EACH LINE
    < tr onclick = "selectRow (this);" #HIGHLIGHT_ROW # >


    * Javascript in the Page Header.*
    < script language = "JavaScript1.1" type = "text/javascript" >
    function selectRow (p_tr)
    {
    var l_deptno = p_tr.childNodes [8] .innerHTML;
    var l_empno = p_tr.childNodes [1] .innerHTML;
    html_GetElement ('P911_DEPTNO'). Value = l_deptno;
    html_GetElement ('P911_EMPNO'). Value = l_empno;
    }
    < /script >

    If anyone has any ideas. Thanks, Pete

    Hello

    When you use this type of report model, you actually control on where the column values are used - and they can be used several times.

    For example, a setting of 'Model line 1' for one such model could be:

    <tr>
    <td class="c1">#1#</td>
    <td class="c2">#2#</td>
    <td class="c2">#3#</td>
    <td class="c2">#4#</td>
    <td class="c3">#5#</td>
    </tr>
    

    #1 # fact refers to the data in the first column, #2 # for the second and so on. So you can do:

    <tr onclick="javascript:dosomething('#1#','#2#');">
    <td class="c1">#1#</td>
    <td class="c2">#2#</td>
    <td class="c2">#3#</td>
    <td class="c3">#5#</td>
    </tr>
    

    For example, by clicking on the line would trigger the dosomething() function and pass in that the values of the first and second columns. Also note that the 4 # does not appear now - this column is 'hidden' (but note that you must check the box to show the column)

    Andy

  • How nagivate values from one page to another page as well assured in different modules like po and pon

    How nagivate values from one page to another page as well assured in different modules like po and pon?

    I tried using the session values, hashmap, and Transaction. But none worked.

    Please help me on this.

    Dilip thanks.

    My problem is solved.

    I solved the issue.using the main concepts of java.

    By importing a package into other package and then instantiate the required class.

    Kind regards

    2793235.

  • When you try to log on, get error - "the system event notification service has no logon. the remote procedure call failed and did not execute. »

    My netbook will not open a session because it can not find a certain file. She won't tell me the file. and when I try to go to safe mode it freezes... is there anyway I can just read another account another point? the message I get is "the system event notification service does not log. the remote procedure call failed and did not execute. "tips anyone? I care is no longer the files it contains. If I could wipe it off somehow to factory settings then would be too cool. his windows 7 starter edition


    Original title: hp netbook to log issue

    You have two options:

    • Perform a factory restore. Check the homepage of the manufacturer for instructions.
    • Start the computer with your Windows XP installation CD, and then follow the prompts. You will have to find the different drivers to match your hardware, for example a driver for SATA hard drive.
  • When you try to create the safety PIN or password photo, get the error "the remote procedure call failed."

    Logon to an account on the Win8 Pro system.  In the PC settings. Your account, try to create a PIN.  You will be asked your password, and when I enter the password, the tracking error.  "The remote procedure call failed."

    In the application event log, we see:

    The failing application name: CredentialUIBroker.exe, version: 6.2.9200.16384, time stamp: 0x5010a22d

    The failed module name: nvwgf2umx.dll, version: 9.18.13.1070, time stamp: 0x50b976f6

    Exception code: 0xc000041d

    Offset: 0 x 0000000000135122

    ID of the process failed: 0 x 1160

    Start time of application vulnerabilities: 0x01cddfd4b4a988ef

    The failing application path: C:\Windows\System32\CredentialUIBroker.exe

    Path of the failing module: C:\Windows\System32\nvwgf2umx.dll

    Report ID: fdf0d095-4bc7-11e2-be7a-e0cb4e8a55c5

    Faulting full name of the package:

    ID of the failed package-parent application:

    I did a search of exhaust gases and am not finding that anything related.

    Action taken:

    ran sfc/scannow and no reported problems.

    Need to stop the application to quit.

    I found the problem for the updated NVidia driver.  Once I disabled the display driver USB 3.0 that acts as a method to connect to a computer USB 3.0 (also tactile) monitor, the driver installed correctly and does not interfere with any of the Windows applications.
    Also, try to remove all the accounts on your system that are not user accounts that some applications will add them without apparent reason.  Applications still work correctly.  It's just less sure there to access your system.

  • Can not change the options in the remote procedure call

    I tried to open the remote procedure call in my Services. It is the value of Autostart and connect as a network system. However, all of these options, including the startup type, the service state, open a session on types and recovery have been grayed out so I can't change anything. I want to change my log on type, because I suspect it might be the reason for the inability of my laptop for install msi files. Is there a reason why I can't change anything in the remote procedure call? The remote procedure call Locator is thin. Any help would be greatly appreciated.

    Hi Logice,

    1. what happens when you try to install msi files? You receive an error message?

    2. did you of recent changes on the computer?

    The remote procedure call service is a very critical service of the system that you cannot change on the computer, as the editing options are disabled by design.

    MSI files are related to the Windows service install on the computer, if you receive an error associated with Windows install installing files msi on the computer I would suggest that you stop and restart the Windows service install on the computer and see if it helps.

    Manage services in Windows Vista

    http://Windows.Microsoft.com/en-us/Windows-Vista/manage-services-in-Windows-Vista-from-Windows-Vista-inside-out

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • "The remote procedure call failed and did not execute." Tried many things, still does not work

    Hello, whenever I try to open a file, the message "the remote procedure call failed and did not execute" appears. I checked that "Remote Procedure Call" began and is on automatic, as well as the RPC Locator is the manual value. I also ran a full system scan of my Norton Antivirus, which picked up nothing.  Can someone please?

    Hello

    You can try to change RPC Locator auto and see if that fixes the problem?

    I recommend that you only perform a scan with the auditor of the filesystem, which will scan your system for missing/corrupted or damaged files and will try to correct them.

    How to run the System File Checker

    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    Also, you can run the check disk to find bad sectors that may be present on your system.

    Check your hard drive for errors

    http://Windows.Microsoft.com/en-us/Windows-Vista/check-your-hard-disk-for-errors

    Thank you

    Legaede

  • The remote procedure call failed and did not run + user problem?

    Good so I have a Sony VAIO with Windows 7 Home Premium 64-bit, 4 GB RAM and 640 GB hard drive. During his first installation, VAIO asks you to name your computer so I called him "CARINA" and everything worked perfectly.

    However, we wanted to change the main username in the 'OSCAR', so I went to the control panel > users and this has changed. I thought that everything was great, because when I open the Start Menu, top-right, he says "OSCAR". After more research in the area of research, two things appears under the name 'CARINA': a 'user profile', I think, who had a small square color sky-blueish. and a folder with a lock on it. I tried clicking on the user 'CARINA' first profile, and it just opened what, in my view, is a Properties window 'CARINA '.

    But when I clicked on the folder "CARINA" with a lock, it opened my libraries. But get this: at the top, he said not "CARINA", but "OSCAR". I thought it was odd he did that so I told the computer to delete the folder with the lock named 'CARINA '. As soon as I realized it was a huge file and a gazillion files were there (real libraries), I canceled it, he wants to immediately restore the Recycle bin. But nothing appears on the trash, or I can't enter either because an error saying "the remote procedure call failed and did not execute".

    But the mistake has been made and now it does not work. The Start Menu appears, but I can't click on anything or use the search box. When I click on my library of records, the same message appears ("the remote procedure call failed and did not execute") or when I enter 'Open action center', he said ': {266EE0668-A00A-44D7-9371-BEB064C98683}\5\::{BB64F8A7-BEE7-4E1A-AB8D-7D8273F7FDB...» The remote procedure call failed and did not execute. " Programs on my toolbar work, such as Chrome or Windows Media, or I can change the volume with the icon in the lower right, but I can not enter in 'Computer', my libraries, or anything else. When I open the the TASK Manager, under processes, they are all under the name CARINA. If I stand on the top of the "explorer.exe" process, and I do a right-click on top of CARINA > properties > Security > there are 4 listed users:

    • SYSTEM
    • Administrators (CARINA-VAIO\Administrators)
    • Users (CARINA-VAIO\Users)
    • TrustedInstaller

    The computer has a backup (if I have a backup of an another VAIO Windows 7 Home Premium 64 - bit if necessary) and I'm afraid to stop in case it does not start again. :(

    Any help? What can I do?

    Hello

    Method 1:

    Follow the steps mentioned below.

    (a) type services in the start menu search box.

    (b) in Services, scroll down to "Remote Procedure Call", and make sure the status 'Started' and set to automatic.

    (c) the second "RPC Locator' must be set to"manual ".

    Method 2:

    I suggest you to scan SFC. Scan SFC will be scans all protected system files and replaces incorrect versions with appropriate Microsoft versions.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    Note:
    I suggest you check manage user accounts to check how many user accounts are present.

    a. Click Start.
    b. go to the control panel.
    c. click user accounts and family safety, and click on user accounts.

    Check how many accounts user is present.

    Method 3:
    I suggest you to create the new user account and check if the problem persists.

    Create a user account
    http://Windows.Microsoft.com/en-in/Windows7/create-a-user-account

    If everything works well in the new user account, then I suggest you to transfer data and settings to the fixed aid corrupt profile.

    Difficulty of a corrupted user profile
    http://Windows.Microsoft.com/en-in/Windows7/fix-a-corrupted-user-profile

  • intermittent connection problem: 'the user profile Service service has no logon. The remote procedure call failed and did not execute. »

    Hello, I'm having intermittent problems with logging in my Windows 7 computer.

    Often after reboot due to applications of Windows Update or any simply restart after the holidays, I have the following message on trying to connect:

    "The service user profile Service has no logon. The remote procedure call failed and did not execute. "

    When I click 'OK', the machine disconnects and try to restart.  This can occur 2 to 5 times before _works_ .  But sometimes it happens at all.  And sometimes he _partially_ connects, but my "reminder" and the "Sidebar Gadgets' not loading not correctly and I get a different RPC error - for example, I lived once a message RPC over Skype cannot work because the remote procedure call failed.

    I'm fairly certain that it is different from the frequently reported issue 'profile of corruption', which was experienced by others.  This problem manifests itself as 'the user profile Service does not log. The user profile could not be loaded "and is reported as a blocking problem consistently reproducible which is set by the 'fixing' of the profile.

    However, the issue I feel is clearly related to an RPC problem is intermittent and not consistent - maybe one of my devices is not reset properly?  Where I can look in the logs of Windows, to provide relevant information on this subject?

    Because my computer was still under warranty, I have raised the issue of Dell and they removed the damaged system file (user account) last week.

    I hope that this will finally fix the problem (previously the error message disappear and reappear after a few weeks later.)  I'll give it a few more weeks to be sure.

  • "search query: = services the remote procedure call failed and did not run".

    My computer crashed two days ago and I'm finally home, but whenever I try to open a window of any folder I keep refusing. In particular the main computer folder. One of the error messages I got is the following:

    search query: = services the remote procedure call failed and did not run

    Followed by this one:

    The remote procedure call failed and did not execute.

    I opened the Task Manager and tried to access the services from there, but whenever I do, the Task Manager window freezes.

    How can I fix it, my computer is so slow running and does hardly anything and guard with all freezing orders that I try.

    Hello

    This error generally, if the system is infected with Virus and malware or system files are corrupt.

    Please, try the methods below and check if the problem persists.

    SFC scanner.

    You can read the following Microsoft article to repair corrupted using SFC tool files. Use the System File Checker tool to repair missing or corrupted system files

    Reference: http://support.Microsoft.com/kb/929833/en-us

    If the problem persists, try a run Microsoft Safety Scanner.

    http://definitionupdates.Microsoft.com/download/definitionupdates/safetyscanner/amd64/msert.exe

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Important: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Do try the suggestions above and let us know the results.

  • Not able to connect to Windows 7-"the remote procedure call failed."

    Hello

    Windows never lets an opportunity to prevent the user. I have problems on my lappy staff & problem appeared all of a sudden.

    When I got the system starts, it of not connection & throws the error message "the remote procedure call failed." What ever I do it is not the same error.

    I tried logging in safe mode but is not connect in SafeMode survey the same error.

    Tried to restore to the last successful boot. Same mistake.

    Really frustrating.

    Looks like only option I have is to format the lappy however I have a lot of data in C:\ which are not saved.

    Any help will be much appreciated.

    Kind regards

    Vigni

    I have a lot of data in C:\ which are not saved.

    Unfortunately, it seems that you belong to the large class of PC users who choose not to back up important data, until disaster strikes. Your data is not lost, but the recovery is much more painful than to use an external backup drive. Here are a few options:

    • If it is a desktop PC: connect the hard drive to some other desktop PC, then recover your data.
    • If it is a laptop: remove the hard drive, then put it in a box for disk 2.5 "USB. You can now connect this case for some other PC and recover your data.
    • Start the computer with a bootable Ubuntu CD and its graphic interface allows you to save your files on an external storage device.

    When you are finished, you get a HDD 2.5 "USB and use it for your regular backups (e.g. weekly). You can also store an image of your new installation, you save the trouble of the reconstruction of Windows where you have another accident.

Maybe you are looking for