How to pass the variable in a procedure as parameter
CREATE OR REPLACE PROCEDURE APPS. "" QFJS_LMO_TIMESLOT_PROC ".(
a_std IN VARCHAR2,
TYPE str_table IS TABLE OF CLOB directory INDEX;
timeStr OUT str_table;
)
It's in error!
Help, please!
That's what you're looking for? (you can also create the type of your database)
CREATE OR REPLACE PACKAGE APPS.MY_PACKAGE AS
PRAGMA SERIALLY_REUSABLE;
TYPE str_table IS TABLE OF CLOB INDEX BY BINARY_INTEGER;
PROCEDURE "QFJS_LMO_TIMESLOT_PROC"(a_std IN VARCHAR2,
post_std IN VARCHAR2,
a_time IN VARCHAR2,
post_hc IN NUMBER,
pre_hc IN NUMBER,
ods_schedule_date IN DATE,
timeStr IN OUT str_table);
END MY_PACKAGE;
/
CREATE OR REPLACE PACKAGE BODY APPS.MY_PACKAGE IS
PRAGMA SERIALLY_REUSABLE;
PROCEDURE "QFJS_LMO_TIMESLOT_PROC"(a_std IN VARCHAR2,
post_std IN VARCHAR2,
a_time IN VARCHAR2,
post_hc IN NUMBER,
pre_hc IN NUMBER,
ods_schedule_date IN DATE,
timeStr IN OUT str_table) IS
v_clob clob;
BEGIN
FOR i IN 1 .. timeStr.COUNT LOOP
v_clob := timeStr(i);
-- ...
END LOOP;
END "QFJS_LMO_TIMESLOT_PROC";
BEGIN
NULL;
END MY_PACKAGE;
/
BEGIN
APPS.MY_PACKAGE.QFJS_LMO_TIMESLOT_PROC('1','2','3',4,5,sysdate,APPS.MY_PACKAGE.str_table('clob1', 'clob2', 'clob3'));
END;
/ -- Hugs, Philips
Tags: Database
Similar Questions
-
How to pass the variable in the table?
Hello. I try to pass the variable created in RTF and after I enter in the table.
In RTF:
<? xdoxslt:set_variable($_XDOCTX,_'var',500)? >
After the table:
chart:
.....................
< DataValues >
< RowData >
[< xsl: for each groupe-select=".//ROW[Edad16]" group by = "Edad16" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" > ".
< cell >
xdoxslt:get_variable($_XDOCTX,_'var')
< / cell >
< / xsl: for each group->
< / RowData >
< RowData >
[< xsl: for each groupe-select=".//ROW[Edad16]" group by = "Edad16" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" > ".
< cell >
50
< / cell >
< / xsl: for each group->
< / RowData >
< / DataValues >
< / LocalGridData >
< / chart >
And it isn´t work :-(
Any ideas?Hi, Benito,.
It wil work
-
How to pass the variable to bind page ADF view object
Would appreciate your help on this.
Set up a view with a variable binding object: param1 in where clause.
I want to pass the value of the variable to link from a page of the ADF (.jspx)
I know that one Option using executeWithParams() method binding in the ADF page.
But, I want to pass a pageFlowScope parameter (which is already set when loading the page) to the variable binding VO, and the VO should also display the results filtered on the page the first time itself.
Could someone help me understand with a code, how to achieve the same. (Is there a groovy expression to access the param pageflowscope?)
Thank you
Published by: user5381160 on August 12, 2010 20:01You should also consider dragging operation executeWithParams on your workflow and of wiring to occur before your page instead of in the definition on the page itself - so it is more clear what is happening and is the approach recommended for 11 g applications. When drag-and you - drop operation, you can use the dialog box bind the parameter to your page flow - scope variable by providing the good EL there.
There is no expression Groovy in the model layer to access the workflow variable scope page (which is in the controller layer) because this would violate the separation of concerns inherent in an MVC application.
John
-
How to pass the variable in the lov using like operator SQL
Hello.
I want to use a lov I pass a variable using like operator.
my query is
Select empno, name of the table where empno as ': ed %';
I want to show a % or B empno % so my empno is A001 to A199 AND B001 to B199
How can I do this?
regardsSet the property default_where to the block and run the query
set_block_property ('myblock ', default_where,' like upper (Ename)' |: mybind |) » %');
-
How to pass the variable to a swf into another swf
I declared a variable in the one.fla file
I open another file swf on a button.
the code is as follows
name = 'personName ';
myButton.onRelease = function () {}
trace ("liberation" + name); personName
loadMovie ("mainPage.swf", _root);
_root.loadMovie ("mainPage.swf");
}
I want the variable 'name' of access to another swf file. IE (mainPage.swf)
How do I do that?
You want to use the MoveClipLoader class (using loadClip() and addListener methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it. You can create an empty movieclip to load the SWF in, and in this way the loaded file can be targeted using the empty movieclip instance name.
-
How to pass the return value of VO1 VO2 parameter?
Hi friends,
I have two of VO, in a page.
In the first VO1 I pass 2 parameters, then this vo return a value unique ex: 1234
Now my second VO2 I want to pass the parameter, the value of first result VO1.
How to get there.
But I don't want to capture VO1 result in the form value.
Could you please any body explain how to achieve this requirement.
Thanks in advance.
Jocelyne.RAMU
//Modify the code as per your requirement String position = null; //First VO OAViewObject vo = (OAViewObject)findViewObject("EmployeeVO1"); if(vo!=null) { vo.executeQuery(); OARow row = (OARow)vo.first(); position = (String)row.getAttribute("PositionCode"); } //Pass the same value to the new VO as your value returned will be into position variable OAViewObject vo = (OAViewObject)findViewObject("ManagerVO1"); if(vo!=null) { vo.setWhereClauseParam(0,position ); vo.executeQuery(); }
Kind regards
GYANPublished by: Gyan on February 23, 2011 01:30
-
How to pass the value of the variable record type in the procedure
Hai All
My Question is
I have a table named Emp and the structure
ID Varchar2 (25)
Name varchar2 (25)
Number of salary
And now, I created a folder named Rec_Emp
Like this
Type Rec_emp is made
(Rec_Id varchar2 (25),)
rec_name varchar2 (25).
Number of Rec_salary);
rec_emp emp_record;
I created a SQL type
Now how to pass the value type in the procedure
Thanks and greetings
SrikkanthMYou are looking for something like this
create table my_emp (id integer, name varchar2(100), sal number) / create type my_emp_obj as object(id integer, name varchar2(100), sal number) / create or replace procedure insert_into_my_emp(pEmp_Obj in my_emp_obj) as begin insert into my_emp (id, name, sal) values(pEmp_obj.id, pEmp_Obj.name, pEmp_obj.sal); end; / begin insert_into_my_emp(my_emp_obj(1,'karthick',1000)); end; / select * from my_emp /
-
How to pass the PHP variable to menu jQuery Modal popup
Hello
Need help to find how to pass a variable in php (which is recovered in a while loop) in a modal window.
There is a list of users on the page (shown with a while loop), with buttons Remove next to each of them.
When the administrator clicks the button Delete for that specific user, a modal window appears confirming their action.
I can't find a simple way to communicate the id of the user to be removed the modal (where the query is performed, once 'Yes to confirm deletion' is clicked).
I deleted the jQuery, seeing as how this could change how the modal opens and closes.
This is the modal:
< div class = "modal" >
< div class = "modal_wrapper" >
< div class = "modal_title" > are you sure you want to delete this user? < / div >
< div class = "modal_content" >
< div class = "modal_button_no" > n < / div >
< div class = "modal_button_yes" > Yes, delete it < / div >
< / div >
< / div >
< / div >
< div class = "delete_btn" > delete user < / div >
The variable with the user name is:
$user_id
Any help would be much appreciated!
Thank you
It is a fairly simple procedure. Personally I'm not sure that its worth the effort for a box of administration but good we all have different opinions - there is no wrong or it.
Suppose that your buttons delete on your page are anchor tags and you have locked down your database of names to create anchor tags. The value of dir below has been inserted via php through loop and is your RegID.
When you click the anchor tag (that class name "delete") opens a lightbox. You also have to collect the value of "dir" at the time the lightbox opens - happening of value to a hidden in the lighbox code entry field.
$(document).ready(function() {
$('.delete').click(function(){
var record_id = $(this).attr('dir');
$('.record_id').val(record_id);
});
});
The value of the "dir" command is passed to the light table in a hidden form field:
"You have a delete button in the light table with the class of ' delete_record ':
Delete the record
When the user clicks on the button Delete in the light table the value of hidden form field is harvested and forwarded to your page of delete_record.php via the jquery/ajax script below, were also on the same page.
$(document).ready(function() {
$('.delete_record').css('cursor','pointer').click(function(){
var record_id = $('.record_id').val();
;
$.ajax({
type: "POST",
url: "delete_record.php",
data: {
record_id: record_id
}
}).done(function() {
alert( "Record was deleted");
});
});
});
Your delete_record.php would look like below, assuming that you use mysqli or if you are using mysql then you would follow the same delete procedure as usual.
<>
$conn = new mysqli ('localhost', 'root', 'root', 'name');
{if ($conn-> connect_errno)}
echo $conn-> connect_error;
Die (' sorry, can not connect to the moment, try again later ');
}
?>
<>
delete the record
$record_id = $conn-> real_escape_string (stripslashes (trim($_POST['record_id'])));
$conn-> query ("' DELETE FROM names WHERE record_id = ' $record_id ' '");
$record_deleted = "true";
?>
An alert box will appear at the end, confirming that the record has been deleted. You do not have to deploy an ugly alert box - you sends the data to the device of light therapy from the delete_record.php page in a few nice melted in
If you want to be more subtle about it. -
How to pass the value of the run-time file .sh by Oracle procedure
I have a file test.sh that contain
#1/bin/bash
exp test/test@orcl file=/home/oracle/dump/test.dmp log=/home/oracle/dump/test.dmp grants = Y = index constraints Y = Y = (test) owner statistics = none
Exit 0
I craete a work called Create_job_proc in this work, I want to pass the value of job_action is the location of the file test.sh to
/U01/home/Oracle/dump/test.sh and want to spend the test/test@orcl as a variable...
Please suggest me... how to pass the value of Job_Action which will replace the .sh file content test/test@orcl to the value of the time of execution as scott/tiger@hr
Thank you much Parth... It works perfectly...
Thank you all for your help...
-
How to pass a variable to a swf file in another using the Loader?
I'm loading a swf file from another swf using the method as follows:
var myLoader:Loader = new Loader();
addChild (myLoader);
var url: URLRequest = new URLRequest ("myExternalMovie.swf");
myLoader.load (url);
How to pass a variable to the first SWF in the second?
I'm not sure that "passage" is a term there, given that this generally applies to what happens with functions that can host variables to pass as arguments in the.
When using the charger, you can assign an event listener to determine whether the activity of loading is complete and have an event handler that targets its contentLoaderInfo property to the event.currentTarget.content, which in your case would be the loaded swf file. At this point, you can assign a value to a variable in this swf file by targeting...
var myLoader:Loader = new Loader();
addChild (myLoader);
myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadComplete);
myLoader.load (url);
var loadedSWF:MovieClip;
function loadComplete(evt:Event):void {}
loadedSWF = MovieClip (evt.currentTarget.content);
loadedSWF.someVariable = ';?
}
It is probably possible you may also have the loaded swf the value rtrieve by targeting to the parent swf file, which would be both parents away because of the charger is the relative of the SWF loaded... unevariable = MovieClip (parent.parent) .someValue;
-
by passing the variable char in the sliders
HI I try to move the tank for the cursor variable, but it is not taking, if I hardcode the values of the slider that he takes
Here's detailed... any body can say why it is not taken and tell me how to pass the values through it...
declare
v_Name tank (6);
cursor c1 (c_name tank) is
Select name, parent, child, relationship status
First name = '% '.
Connect prior parent child =
Union
Select name, parent, child, relationship status
First name = '% '.
connect by prior child = parent
order by 2;
v_c1 c1% rowtype;
Start
v_Name: = ('A');
Open c1 (v_name); - here the value of v_name does not... If like hard-code open c1('c'); then work... I need to pass - value not hardcode
Fetch c1 in v_c1;
dbms_output.put_line (v_Name);
dbms_output.put_line (' name ' |' parent ' |' child ' | ' status "");
While c1%
loop
dbms_output.put_line (v_c1.name |) » '|| v_c1.parent | | » '|| v_c1. Child | | » '|| v_c1. Status);
Fetch c1 in v_c1;
end loop;
Close c1;
enTry it with a varchar2 variable (6)
declare v_name varchar2(6) ; cursor c1(c_name varchar2) is select name, parent,child,status from relation start with name='%' connect by prior parent=child union select name, parent, child , status from relation start with name='%' connect by prior child=parent order by 2; v_c1 c1%rowtype; begin v_name :=('A'); open c1(v_name);---Here the v_name value is not taking.. if hardcode like open c1('c') ; then working.. i need to pass -- value not hardcode fetch c1 into v_c1; dbms_output.put_line(v_name); dbms_output.put_line('name '||'parent '||'child '||'status '); while c1%found loop dbms_output.put_line(v_c1.name||' '||v_c1.parent||' '|| v_c1.child||' '||v_c1.status); fetch c1 into v_c1; end loop; close c1; end
-
How to pass the Visa Resource Name parameter to labview dll in labwindows/cvi
Hello world
I build a dll of labview, the prototype is: double getchannelpower (double f, uintptr_t * VISAResourceName);
I don't know how to go from VISAResourceName to this function.
Is it related to the ViPSession paremeter in function viOpen(REES ViSession, rn ViRsrc, ViAccessMode am, ViUInt32 ti,ViPSession vi)?
BRs,
lotusky
Hey, guys:
I figured out how to pass the parameter.
In labview, you must replace the control of visa with string control. In this way, the generated dll function at the entrance of the string type.
I hope this will help others!
lotusky
-
How to pass the session IMAQ to the Subvi
Hello
My experience with LabView is neither very good nor extended. I am a scientist and I'm with IMAQ data acquisition. My current problem is that the people who wrote the script is modular, versatile, or clear initially structured. So I try to reduce the ridiculous number of tests in a simple flowchart to a level that people can actually understand it... and to make the more versatile script for future experiments.
I'm introducing quite a few subVIs to be executed repeatedly. However, I can't know how to pass the IMAQ session on the Subvi. I constantly get the error messages. In this case, I want to acquire images with OIDE_CollectFrame.vi controlled by OIDE_TrialPhaseCollect.vi. I couldn't understand how to assign the refnum IMAQ session class, either.
It is probably a newbie question, but usually I program with LabView.
Dennis
-
HOW TO PASS THE HEX OF THE MAIN PROGRAM VI ENUM, SUB VI ENUM VALUE
HOW TO PASS THE HEX OF THE MAIN PROGRAM VI ENUM, SUB VI ENUM VALUE.
HOW THEN IT WILL CHOOSE CORRECT ON SUB VI HEXAGONAL ENUM VALUES.
Enum values are strings, you must first convert the hexadecimal value to a hexadecimal value chain represtation.
Then that convert from the enum.
-
Hello.. I'm creating an application of streaming, in which I have a list field in a screen like this...
1
--------
2
--------
3
--------
and when the item 1 is selected means a url must be passed to the video player...
I created the list field screen in a package and a video player in other package... but I do not know how to pass the value of the field from the list to the player... Help, please... its URGENT...
You can get the index selected by the listname.getSelectedIndex () method and compare that value with Vector data (data store URL) .that you will give a correct value from the URL and pass it.
Maybe you are looking for
-
Update of HP Z620 BIOS causing the disc start plu
Dear Sir I updated the system of workstations HP Z420/Z620 (International) BIOS to 03.69 Rev.18 June 2014 to my windows 7 Professional. After the reboot, it could not find my boot drive. In the Bios, the order of boot to SATA drive name list is total
-
Cannot start after upgrading Windows 10 Dolby Home Theater
Hi, I use a Z50-70 and one of my favorite things to this topic is the function Dolby Digital Plus. But after the upgrade to Windows 10, I can't run it more. All I have is this driver audio Conexant sucky. Is there a solution for this in the future? I
-
The one you suggest a fix?
-
cannot get rid of "free aol" supplied with the computer.
When I try to uninstall in Control Panel will not work
-
CD drive icons disappeared after I installed the Norton Recovery tool
Original title: My CD drive icons disappeared after I installed the Norton Recovery tool I downloaded Norton Recovery tool, created the rebootable disc. Tested, everything OK. Then found all my readers of DVD disc including a player clone of Ebly, di