How to Call a procedure for UI5 application ?
Hello experts,
What are the possible ways to call a procedure from a UI5 application?
I am trying to call the procedure created in the blog from a ui5 application. I had an idea of calling a procedure from view and generating odata services from views, but this being a read write procedure , not exactly sure if this would work .
Looking forward for your opinions on this .
Regards
Virinchy
Virinchi,
Go through the below posts. You can get the source code of how to do it.
How to call HANA store procedure with table variables in xsjs?
JSDoc: Class: Connection
Sreehari
Similar Messages
-
How to call plsql procedure or function and getting back the string?
Hi Everyone,
i am using Jdev 11.1.1.5.0.
i have a requirement to call plsql procedure or function from my backing bean java file and get back the returned value from the procedure or function.
what piece of simple code i need to write in my backing bean?
please suggest.
Thanks.As always you write the method to call he pl/sql in the application module, expose this method to the client (so you see it in the datacontroll) then create a operation binding to the method and call this operation from the bean. The result you get by operation.getResult();
You should never call pl/sql from the bean directly!
The doc shows how to call the procedure from an application module: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcadvgen.htm#sm0297
Timo -
How to call Stored procedure in SMP 2.3 ?
HI Experts,
I have stored procedure in SQL Server, in that i have Select query with WHERE Condition, how to call that procedure in SMP Application .Do you want to create mbo from that stored procedure? Not sure if this document helps you Example: Parameters and Stored Procedures
-
Call a procedure in the application. Frank kindly check this
Hi,
I hv downloaded the login screen from the following site. Now I am trying to connect the same with my database. i hv introduced the password field in the application as earlier only username is available in the UI.
[http://blogs.oracle.com/shay/simpleJSFDBlogin.zip]
The problem is that in my database password field is protected with inbuilt oracle encryption. There is a procedure i hv in the database for the password encryption. How can I call the Procedure in the application??? In the application i hv introduced the business components and i hv attached the procedure in the application like "Offline Database Source" I hv to attach each database source like this? is it right way which i am following to call the procedure??
Please guide me
Thanks in advance
Jithesh.Hi,
have a look at the developer guide of how to invoke stored procedures and functions. Instead of basing the query for the login form on a VO you use a stored procedure of function in a client method exposed on the VO or AM
http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcadvgen.htm#sm0297
Frank -
How to call one procedure from another procedure
Hi all,
Could anyone give me clue how to call a procedure contains out parameters
from another procedure.
I had following procedures.
1)
create or replace procedure INS_PUR_ORDER
p_poamt in number,
p_podate in date,
p_poid out number
is
begin
select pkseq.nextval into p_poid from dual;
insert into pur_order(poamt,podate,poid)
values (p_poamt,p_podate,p_poid);
end;
2)
create or replace procedure INS_PUR_ORDER_DETAIL
p_pounits in number,
p_poddate in date,
p_poid in number)
is
begin
Insert into pur_order_detail(podid,pounits,poddate,poid)
values(pdseq.nextval,p_pounits,p_poddate,p_poid);
end;
I need to write a 3rd procedure which calls above two procedures.
like
call first procedure ,basing on the return value
i.e if p_poid != 0 then
we need to call second procedure
in the loop.
thanks in advance.
rampa.Not sure what are you doing, you can not assign cursor to another cursor, may be you are looking for this?
SQL> create or replace procedure proc1 ( result out sys_refcursor)
2 is
3
4 begin
5 open result for
6 select 'HELLO WORLD' from dual ;
7 end proc1 ;
8 /
Procedure created.
Elapsed: 00:00:00.01
SQL> create or replace procedure proc2
2 is
3 l_cursor sys_refcursor ;
4 begin
5 l_cursor := proc1 ;
6
7
8 open l_cursor;
9 fetch l_cursor into l_text;
10 dbms_output.put_line(l_text);
11 close l_cursor;
12
13
14 end proc2 ;
15 /
Warning: Procedure created with compilation errors.
Elapsed: 00:00:00.01
SQL> show error;
Errors for PROCEDURE PROC2:
LINE/COL ERROR
5/4 PL/SQL: Statement ignored
5/16 PLS-00306: wrong number or types of arguments
in call to 'PROC1'
6/4 PLS-00201: identifier 'L_TEXT' must be
declared
6/4 PL/SQL: Statement ignored
8/4 PLS-00382: expression is of wrong type
8/4 PL/SQL: SQL Statement ignored
9/4 PL/SQL: SQL Statement ignored
9/24 PLS-00201: identifier 'L_TEXT' must be
declared
10/4 PL/SQL: Statement ignored
10/25 PLS-00201: identifier 'L_TEXT' must be
declared
---- this is the correct waySQL>ed
1 create or replace procedure proc2
2 is
3 l_cursor sys_refcursor ;
4 l_text varchar2(100);
5 begin
---- procedure call
6 proc1(l_cursor);
7 -- open l_cursor;
8 fetch l_cursor into l_text;
9 dbms_output.put_line(l_text);
10 close l_cursor;
11* end proc2 ;
SQL> /
Procedure created.
Elapsed: 00:00:00.01
SQL> set serveroutput on
SQL> execute proc2;
HELLO WORLD
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> -
How to call a JSP page from Applications menu?
Hi partners,
I am still looking for "how to call a JSP page from Applications menu?", I mean instead of calling a form, I want to call a JSP page which is staying in a OC4J repository which is located in another server.
Any idea will be really appreciated.
Thanks in advance.
Frank Mtz.Hi Frank,
if u know the solution please share it with me. i'm looking for the same scenario.
thanks in advance,
anish -
How to call this procedure in my report to print my procedure output
Hi,
i have a table named letter,it contains 2 columns named as letter_id and letter_content.
select * from letter;
letter_id letter_content
103 Dear MFR
103 This is in regards to the attached DM List
103 Please Credit us after reviewing it.
103 Thanks
103 Regards
103 xxxx
108 Dear customer
108 This is to inform that ur DM List is as follows
108 Credit us according to the Dm after reviewing it.
108 Thanks
108 Regards
108 xxxx
now my requirement is,i need send a parameter as letter_id to a procedure or function in pl/sql in oracle,the output should be as follows:
if we will pass parameter(letter_id) = 103 then it displays as follows:
Dear MFR
This is in regards to the attached DM List.Please Credit us after reviewing it.
Thanks
Regards,
XXXXX.
if we will pass parameter(letter_id) = 108 then it should displays as follows:
Dear customer,
This is to inform that ur DM List is as follows. Credit us according to the Dm after reviewing it.
Thanks
Regards,
XXXXX.
the procedure for my requirement is like below.now my problem is how to call this procedure in my report.so that if i will send a parameter as letter_id then it should get my report stated above.
CREATE OR REPLACE PROCEDURE letter_text ( p_letter_id letter.letter_id%TYPE , p_letter_contents_out OUT SYS_REFCURSOR )
IS
BEGIN
OPEN p_letter_contents_out
FOR
SELECT letter_content
FROM letter
WHERE letter_id = p_letter_id
ORDER BY line_seq;
END letter_text;
which you might call with something like
SQL> var results refcursor
SQL> exec letter_text(103, :results)
PL/SQL procedure successfully completed.
SQL> print :results;
CONTENT
Dear MFR
this is in regards to the attached DM List
Please credit us after reviewing it
thanks
Regards
EXP
6 rows selected.
so, the same out put i need to get it in a report.
ThanksThanks for ur suggestions.
i have 2 select statements.1st query is the main query for the report.so i used it at the time of report created with datablock.
now my 2nd query is
select letter_content
from ( select content_seq,
content || case content_seq
when 2 then
' ' || lead(content) over (partition by letter_id order by content_seq)
end as letter_content
from exp_letter_contents
where letter_id = 103)
where content_seq <> 3;
i had taken 2parameters 1 for the main query and 2nd is for the above query(parameter is letter_id).
now i have to write the above select statement in the report.
so i had taken a field object in the report and then i had written this code in before report trigger.
function letter_contentFormatTrigger return boolean is
begin
select letter_content
from ( select content_seq,
content ||
case content_seq when 2 then
' ' || lead(content) over (partition by letter_id order by content_seq)
end as letter_content
from exp_letter_contents
where letter_id = 103)
where content_seq <> 3;
return (letter_content);
end;
when i tried to compile it.i got an error as follows :
error 103 at line6,column 5
encountered the symbol "CASE" when expecting one of the following:
(- + mod null <an identifier>
<a double-quoted delimited-identifier><a bind variable> avg...etc
so,where can i write this select statement.
i am using oracle reports6i
Message was edited by:
user579585 -
How to call plsql procedure in jasper
Hi,
anybodys know how to call plsql in jasper..
i have try this code in jasper -> select query langiuage = plsql
{CALL STD03_MERIT_PROCESSING($P{std03_studentVal},$P{std03_studentVal})}
but there is error taht said no data found..
any idea
Thnak YouHi,
I know nada of Jasper, but it took a couple of seconds to find out that calling stored procedures aren't supported.
There are number of articles describing work-arounds for that.
This seems to be a good one:
http://brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/
Other suggests Hibername mappers or some bean approach,
Regards
Peter -
How to Call third party Jar into Application
Hi Can any Expert help ?
I want to put third party Jar into my application but i have some problem occur.
1. how to call jar with parameter in application ?
2. when i exit the third party jar task, it will exit my main task too. How to set my main tast exit stats standalone ?
3. I have over 10 jar files in one application, how can i set a classpath for client to call JNLP, instread of load all jar to client before run.
Thanks.
Sanki Poon ([email protected])1) Sounds like you are trying to launch the third party from it's application main instead of using it as an API How does your code interact with it or is that not important?. You don't call a jar, you load a class. You could use a exec http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html to run the java launcher and pass it all it's command line stuff(But this may not be possible security wise via WebStart).
2) if it is launched in the same JVM and it calls a System.exit there is nothing you can do about your app closing too. It would need to be in another instance of the JVM
3) Under the resources tag you can have as many jar tags as needed.
<resources>
<j2se version="1.5.0" java-vm-args="-esa -Xnoclassgc"/>
<jar href="/jsf-wita/apps/MathMLWebEditor.jar"/>
</resources> -
How to capture memory usage for web application
In OATS openscripts, how to capture memory usage for web application? Does it have the exisitng java method that we can call to get the memory data (e.g. peak bytes, private bytes) consumed by web application?
JProbe
-
Hi,
I know this a silly question..but i am not getting how to do.
I have stored procedure with multiple OUT and IN parameters.But i want to use only one parameter to call the procedure, for example:
create or replace
PROCEDURE Get_NN_Distance ( nbrid OUT NUMBER
, nbrTDistOut OUT NUMBER
, nbrRHouse OUT NUMBER
, nbrResDist OUT NUMBER
, nbrBHouse OUT NUMBER
, nbrBdist OUT NUMBER
, nbrSIDIn IN NUMBER
, nbrRefLatIn IN NUMBER
, nbrRefLonIn IN NUMBER
, nbrRadius IN NUMBER := 1000 -- Default to 200 ft.
but i want to use only one parameter nbrSIDIn only.
this parameter represents SITEID, If we give SITEID we can get LAT,Long for that siteid by using another table: i want to put nbrradius as default:
how to call the procedure by using only SITEID:
Can anyone help me in this Plz
Thanksramakrish wrote:
I have stored procedure with multiple OUT and IN parameters.But i want to use only one parameter to call the procedure, The OUT parameters forces you to supply variables to receive these output values from the procedure.
So instead, create a new procedure that serves as a wrapper procedure. Where this provides a single parameter only and makes the call on your behalf using multiple parameters. E.g.
create or replace procedure Do_NN_Distance( sidIn number ) is
.. local variables...
begin
Get_NN_Distance(
nbrSIDIn => sidIn,
.. other params using local variables...
end;BTW, I suggest that you reconsider using prefixes like "+nbr+" to indicate data type. Hungarian notation is dead. Especially in a strongly typed language.. especially in a an explicit variable type definition language.
+"Encoding the type of a function into the name (so-called Hungarian notation) is brain damaged—the compiler knows the types anyway and can check those, and it only confuses the programmer."+
Linus Torvalds -
How to configure release procedure for rate contracts release
Dear all,
How to configure release procedure for rate contract following are the requirements
they are two release codes c1 & c2 <=100000,>=100000
if c1 is not there c2 has to be approved
Change in the value of the rate contract contract
Change in the validity of the rate contract
Addition of deletion of line items
While using a non u2013 released rate contract in the PO an error message should shoot out.
Also the logic should be changed while using the rate contract in the PO.
The usage of the rate contract should be till the validity of the rate contract. i.e. the measurement should be end date of the rate contract and the PO creation date and not the delivery date of the PO. &
It should be possible to refer existing valid rate contracts in purchase orders.
Regards,
bhaskarHi,
In SAP rate contract is known as value contract denoted with wk. The release procedure for rate contract is same as that of other contracts and scheduling agreements. The tables for contracts will vary with SA (Scheduling agreement) .You may try and maintain condition records based on the customer combination and maintian the validity date of condition records as per your requirement.For contract and PO will have the same header/item table as EKKO/EKPO, and the release
class in standard is the same FRG_EKKO, you can use the same for contract.
To distinguish if it's a contract or PO, EKKO-BSART can be used.
For contract EKKO-BSART will be MK or WK, while PO will have NB/UB etc..
You can restrict the document type to set up the release strategy for only contract.
Of cause, you can also create your own release class Z* for contract copying standard
one FRG_EKKO via CL01/Class type 032, and then assign the class Z* to customizing:
OLME:
-> contract
->Release Procedure for Contracts
->Define Release Procedure for Contracts
->Release Groups
If you have already created the PO release class.
Assign a new chracteristic of Document Category -BSTYP
Please check below link for detailed release procedure. I hope this wil help you out .Thanking you.
http://wiki.sdn.sap.com/wiki/display/ERPSCM/RELEASE+PROCEDURE#RELEASEPROCEDURE-TABLESUSEDFORRELEASEPROCEDURES -
How to call hr_location_api.create_location for different address style with only those fields that belongs specific to that address style. It should decide at run time means at run time it will come to know the type of address style and based on that only the fields which belong to address details mapped to calling hr_location_api.create_location.
Thanks in advance.You can create a wrapper package on top of the API (hr_location_api.create_location)
In the wrapper package you set all the values dynamically based on your requirements(say the style and add_line columns are populated on your conditions) and then you call the API.
Does that not work ? -
How to change Apple ID for all applications in iPad2?
I have changed Apple ID via Settings > Store > Apple ID > Sign out my old Apple ID > Sign in with my new Apple ID.... But, by this method, Apple ID in iCloud, Facetime, and iMessage isn't changed follow to my new one! Do I misunderstand about changing ID? and How to change Apple ID for these applications?
PS. I do not want to do hard reset my iPad2
Thank you all for your kindly help ^^Go into Settings > iCloud > Account > Change to your new Apple ID
Settings > Messages > Recieve At > New Apple ID
Settings > Facetime > Change to new Apple ID -
How to call stored procedure in hibernate
hi ,
can any one help me how to call stored procedure in hibernate.Given code in hbm.xml
and also plz tell me what is the use of <return-property/>in given hbm.xml file.
<sql-query name="selectEmployees_SP" callable="true">
<return alias="emp" class="com.centris.Employee">
<return-property name="eno" column="eno"/>
<return-property name="ename" column="ename"/>
<return-property name="address" column="address"/>
<return-property name="salary" column="salary"/>
{ ? = call p_retrieve_employees() }
</return>
</sql-query>Hi,
Your question isn't related to Java Programming and should be asked in a [Hibernate forum|http://forum.hibernate.org/]
Kaj
Maybe you are looking for
-
Accounting doucment not get created for Credit Memo
Hi When creating a cancellation doucment(vf11) for credit memo accounting document not get created.While I go for analysis then it is determining the G/L account.But not getting created the accounting doucment. When i select "Release to accountin
-
Delivery group 001 is not complete
Hi Gurus I created an order with multiple items having different shipping points and transportation groups. When I am creating delivery, I am able to do split the delivery and process it manually because of different shipping points and transportatio
-
Free Keynote templates can be found at the following url: http://etc.usf.edu/presentations/ David Moore eMac/MacBook Pro/ Mac OS X (10.4.9)
-
Dear Adobe-Team, first of all i want to say that i respect your work. i´m following discussions in here for nearly all products, reading wish list, etc. and this leads to my question for now: why everything tooks you so long to improve? i mean there
-
Building Conditional Rules in 2008.3
Building Conditional Rules in 2008.3 Has anyone been able to configure a conditional rule in 2008.3 so that if someone selects the current date (today's date), the rule will display an alert and stop submission. I've tried using several date fields