How ?? Pass value from one procedure to the others.

I'm thank you everyone visited my Thread.
This is my abbreviate program. I've a procedure "proc_check_item" that have many conditions and "proc_item_number" get value (v_stmt)from "proc_check_item".
-- proc_check_item --
v_stmt varchar2(100);
If conditions1 then
v_stmt := 'and item_number between 1000 and 2000';
elsif conditions2 then
v_stmt := 'and item_number >= 1000';
v_stmt := 'and item_number <= 2000';
end if;
-- proc_item_number(p_stmt in Varchar2) --
cursor cur_01 is
select item_01, ....
from table_a
where ...
and ...
&v_stmt <--- this point!!!
How can i do to passed v_stmt from
"proc_check_item" to "proc_item_number".
I'm used &,||, ... its does not work pls. help me
---- If its right it should be -----
cursor cur_01 is
select item_01, ....
from table_a
where ...
and ...
and item_number between 1000 and 2000
cursor cur_01 is
select item_01, ....
from table_a
where ...
and ...
and item_number >= 1000
It's look like at REPORT that i can used 'place holder parameter' to support this query but in this procedure !!
How can i do..
Thank you for your kindness ...
Message was edited by:
Message was edited by:

Something like this:
-- proc_item_number(p_stmt in Varchar2) --
cursor cur_01(v_stmnt varchar2) is
select item_01, ....
from table_a
where ...
and v_stmt = ...
open cur_01(p_stmt)

Similar Messages

  • How to pass Data from one form to the other

    Hi all
    Can any one suggest me how to pass data from one form to the other form, which i zoomed from the original one?
    I tried to do this by passing parameter in Event Procedure but i am getting error msg when i am opening the zoomed form.
    If any one of u have any idea, give me a reply
    Thank you

    If you choose the second alternative you should erase these global variables after the second form is opened
    You can erase the global variable using:

  • UIX- How to populate values from one view to the other- JDev10.1.2

    I have an enquiries table shown in a uix page.
    Once a user selects a particular enquiry, some of the details should be passed on to the Student Master table which is on a seperate UIX page.
    Could some one tell me how to achieve this.

    This is way my pages are displaying when i select first row "mady" another page display detail but not showing anything but when i click back navigation it shows that selected row on list page...
    see my code i have posted... i think i missed something....please help me!!

  • Passing values from one .mxml file to other

    Hi all,
    I am a flex newbie, and I have to admit I like flex very much. I have the following question:
    I am trying to make a really simple example, where I have a simple mxml application containing some radiobuttons. the radiobuttons simply change the color of several graphic shapes (circles,etc) on click. I am trying to add a new state (represented as a new mxml module) that contains different shapes. Still, I want to pass the value of the originally created radiobuttons to my new state (aka interface view) so that the new shapes inherit their color according to the radiobuttons value (selected:true || false). I am using flex 4 and in order to load my new interface (module) I use the SWFLoader.
    Any help would be greatly appreciated. Also, if my (above) description doesn't make sense, I can easily paste my code (it's just a few lines anyway).
    Thank you.

    I'm not the most experienced flex user, but in other programming languages, each class is usually kept separate and can interact with each other using public functions. You might need to create a function in class B called setColorOfObject(object:object, color:color). Then in class B you can use those values to manipulate objects contained within class B. You would need to call the function contained in class B using class A.

  • Passing value from one program to another

    Dear All,
    I have to pass one value from one program to the standard selection screen .But there is no paramter id .how can i pass the value.

    Hi Magesh,
    See the help for these
    - EXPORT obj1 ... objn TO DATA BUFFER f.
    - EXPORT obj1 ... objn TO MEMORY.
    - EXPORT (itab) TO ... .
    - IMPORT obj1 ... objn FROM DATA BUFFER f.
    - IMPORT obj1 ... objn FROM MEMORY.
    - IMPORT (itab) FROM ... .
    Important thing is that these work correct in same session only.
    awrd points if useful

  • Passing value from one jsp to another?

    how to pass value from one jsp to another? i have a value assigned in the link, i want to pass that value to another jsp page?
    please help with code?

    Instead of the value being passed, i am getting a null value.
    Here is my calendar code:
    <%@page import="java.util.*,java.text.*" %>
    <title>Print a month page.</title>
    <body bgcolor="white">
                  boolean yyok = false;
                  int yy = 0, mm = 0;
                  String yyString = request.getParameter("year");
                  if (yyString != null && yyString.length() > 0)
                          yy = Integer.parseInt(yyString);
                                  yyok = true;
                       catch (NumberFormatException e)
                          out.println("Year " + yyString + " invalid" );
                  Calendar c = Calendar.getInstance( );
                  if (!yyok)yy = c.get(Calendar.YEAR);  
                         mm = c.get(Calendar.MONTH);
                  <table align="center">
                       <form method=post action="calendar.jsp">
                          Enter Year : <select name="year">
                 for(int i= yy;i<=2010;i++)
                  <OPTION VALUE= <%=i%> > <%=i%> </option>
                      <input type=submit value="Display">
    String[] months = {"January","February","March",
                    "October","November", "December"
    int dom[] =     {
                        31, 28, 31, 30,
                        31, 30, 31, 31,
                        30, 31, 30, 31
                int leadGap =0;
    <div id="t1" class="tip"><table border="4" cellpadding=3 cellspacing="3" width="250" align="center" bgcolor="lavender">
    <td halign="centre" colgroup span="7" style="color:#FF0000;">
              GregorianCalendar calendar =null;
              for(int j=0;j<12;j++)
                        calendar = new GregorianCalendar(yy, j, 1);
                  int row = 1 ;
                  row = row + j;
              <colgroup span="7" style="color:#FF0000;">
              <tr align="center">
              <th colspan=7>
                  <%= months[j] %>
                  <%= yy %>
        leadGap = calendar.get(Calendar.DAY_OF_WEEK)-1;
        int daysInMonth = dom[j];
        if ( calendar.isLeapYear( calendar.get(Calendar.YEAR) ) && j == 1)
        out.print(" ");
          for (int h = 0; h < leadGap; h++)
        for (int h = 1; h <= daysInMonth; h++)
          out.print("<a href=desc.jsp>" + h + "</a>" );
        if ((leadGap + h) % 7 == 0)
    if( row%3 != 0)
    </html>I need to pass the value in 'h' to the desc.jsp page.
    my code for desc.jsp is :
    <body bgcolor="lightblue">
    <form method=post action="Calenda.jsp">
    <%= request.getParameter("h") %>
    <h2> Description of the event <INPUT NAME="description" TYPE=TEXT SIZE=20> </h2>
    </html>But i am not able to pass the value. The 'h' value contains all the date. i want to pass only a single date, the user clicks to the other page. please help

  • Pass values from one Taskflow to another

    JDev ADF BC
    Use case: Need to pass values between two bounded taskflows. There are two different pages on two different taskflows and I need to pass values from one to another.

    Hi sahar
    you can set the value you want to pass to another taskflow in pageFlowScope
    and create input params in the another taskflow and set this pageFlowScope valu into that
    Params of TaskFlow
    you can refer the following link

  • How to make a JDialog scrolling from one position to the other.

    Hi all,
    I want to move a JDialog from one position to the other(actually I want to scrolling/moving as messenger notification appear on top of the system tray) on the desktop.
    Anyone of you can give me a clue.

    Ok here what I have try up to now. First make the initial position of the JFrame as follows.
        private void SetWindowLocation()
            final int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height;
            final int screenWidth = Toolkit.getDefaultToolkit().getScreenSize().width;
            final int frameHeight = this.getHeight();
            final int frameWidth = this.getWidth();
            int _y = (screenHeight - frameHeight - 32);
            int _x = (screenWidth - frameWidth);
    // Initial location
            this.setLocation(_x, _y); 
    }This code place my Frame in the lower-right corner on top of the system-tray.
    Then as you guys says, try to work on a Timer. Now I'm stuck with the action listener. I try to move the frame to upper-right corner.
        private void SetWindowLocation()
            final int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height;
            final int screenWidth = Toolkit.getDefaultToolkit().getScreenSize().width;
            final int frameHeight = this.getHeight();
            final int frameWidth = this.getWidth();
            int _y = (screenHeight - frameHeight - 32);
            int _x = (screenWidth - frameWidth);
    // Initial location
            this.setLocation(_x, _y); 
            _timer = new javax.swing.Timer(100, incrementYPosition);
    ActionListener incrementYPosition = new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                       while(_y > 0){
                            // do the processing here.
                            // reduce the _y value and set the new location with _x
                    };I'm stuck with that how to involve with the ActionListener here. :(:( After set the initial location how to deal with the ActionListener.
    Any help.

  • Is there any way to pass value from one SWF to another ?

    I am doing project using flash, now I cant pass a value from one SWF to another, is there any way to pass value from one SWF to another.

    Just to confirm here do you simply want to communicate between two SWFs without involving Flash Media Server. If this is the case one good way of doing it is to use a local connection. It can be used for direct communication between two separate instances of the flash player. However if you want to involve multiple clients sharing a common variable then you may have to use Shared Object for this. Please let me know what is the actual use case, is it multiple clients sharing a common variable or different player instances communicating between themselves.

  • How can I move apps from one computer to the other?

    How can I move apps from one computer to the other?
    (preferably without iCloud)

    Backup your iTunes library to an external drive and onto the other computer

  • How do i copy stickies from one mac to the other

    how do i copy stickies from one mac to the other?
    or are they stored in a file i can just copy them over ? if so what is the file name path?
    thanks in advance

    yes, they are stored in the file /users/username/library/StickiesDatabase. just copy it over to the corresponding location on the new computer.

  • How can I import my iphotos from one account to the other?

    Someone knows step by step iphoto from one account to the other. I am admin but still I do not know how to bring my iphotos to a different account
    thanks for help

    Just the Photos?
    Export them from iPhoto to a folder on the desktop
    Put that folder in the Users/Shared folder.
    Switch User.
    Drag the folder from the Shared folder to whereever you want it.
    Share the Library?
    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder (but note: some users find ongoing permissions issues with the Library in this location. It might be better to use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • When I use Home sharing, I can see the library I want to copy, but when I highlight the library, the import button does not show up. Also, it will not let me drop and drag. How do I get music from one computer to the other computer?

    When I use Home Sharing, I can see the library I want to copy under Shared, but I can't get it save on the computer under the regular library. I go to edit and "select all" but there is no import button that is in the right hand corner. Also, it will not let me click and drag the music. How do I get it from one computer to the other?

    Since both computers are connected via the network, you could simply copy the ENTIRE iTunes folder from one computer to another via the network.
    If both computers are running Windows, use the Easy File Transfer Utility built into Windows to move iTunes and all other user media/data.

  • I have a new iMac and i created two libraries on iTunes. how do i copy songs from one library to the other?

    I have a new imac. I created two libraries, one for me, one for my kids. how do I copy songs from one library to the other library?

    Not easy unless you're just content with adding some files to the other as new files but lose playlists for those files, and playcount, and ratings, etc.  If you're okay with that, you can drag the media folder from one library to the other. If you use default settings and want to duplicate the media, just drag it. If you want to add the media but leave it where it is currently located, hold down the option key while dragging to the library window.
    PowerTunes - (commercial software)
    syncOtunes -

  • How do I transfer music from one iPhone to the other without using a laptop and will I be billed?

    How do I transfer music from one iPhone to the other without using a laptop and will I be billed?

    Download Past Purchases
    Or do you mean this...
    Old Phone to New Phone
    It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID

Maybe you are looking for

  • Need help sharing photos.

    Any attempt to share photos via photo mail or email attachment through share menu causes Elements 12 to crash.

  • Future of knowledge management development

    Hi All, I heard that there is a great future and demand  for knowledge management development because only few resources are available in the market and we can expect more projects in the future in KM development. Am i right and am i going in the rig

  • Error with Transition / Instance has No Properties

    I'm having trouble making transitions in Adobe Flash CS3 Professional. Here's the error message: Exception in exportPreviewSWF: TypeError: instance has no properties Error opening URL 'file:///C|/Users/Lindsey/AppData/Local/Adobe/Flash CS3/en/Configu

  • How can I validate a field on a Flash web form?

    I'm trying to create a Flash web form. I have many fields like Email, username and so on. I would like to add a code to validate the email, How can I program the Flash to report an error if the Email is invalid? or if the username is empty? Thank you

  • POE on Aironet 1130ag failes

    Hi, I am trying to enable POE on our three new Aironet 1130ag but they fail to get the power from 6500 switches which have WS-X6348 modules and WS-F6K-VPWR sub modules. I disabled power injector and tried power negotiation and pre-standard compatibil