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';
package.proc_item_number(v_stmt);
elsif conditions2 then
v_stmt := 'and item_number >= 1000';
package.proc_item_number(v_stmt);
elsif
v_stmt := 'and item_number <= 2000';
package.proc_item_number(v_stmt);
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:
Anonymous
Message was edited by:
Anonymous

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
    Suhasini

    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:
    erase('global_var')
    Greetings,
    Sim

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

    Hi,
    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.
    ~dan

  • 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.
    Regards,
    Magesh

    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
    Bhupal

  • 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.*" %>
    <html>
    <head>
    <title>Print a month page.</title>
    </head>
    <body bgcolor="white">
    <%
                  boolean yyok = false;
                  int yy = 0, mm = 0;
                  String yyString = request.getParameter("year");
                  if (yyString != null && yyString.length() > 0)
                      try
                          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">
                      <tr>
                  <td>
                       <form method=post action="calendar.jsp">
                          Enter Year : <select name="year">
    <%         
                 for(int i= yy;i<=2010;i++)
    %>
                  <OPTION VALUE= <%=i%> > <%=i%> </option>
    <%       
    %>
              </select>
                      <input type=submit value="Display">
                      </form>
                      </td>
                    </tr>
    <tr>
                     <table>
    <%!
    String[] months = {"January","February","March",
                    "April","May","June",
                    "July","August","September",
                    "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">
    <tr>
    <td halign="centre" colgroup span="7" style="color:#FF0000;">
    </colgroup>
    <tr>
    <td>
    <%
              GregorianCalendar calendar =null;
              for(int j=0;j<12;j++)
                        calendar = new GregorianCalendar(yy, j, 1);
                  int row = 1 ;
                  row = row + j;
        %>
              <table>
                <tr>
              <colgroup span="7" style="color:#FF0000;">
              </colgroup>
                </tr>
              <tr align="center">
              <th colspan=7>
                  <%= months[j] %>
                  <%= yy %>
              </th>
              </tr>
    <tr>
    <td>Sun</td><td>Mon</td><td>Tue</td><td>Wed</td><td>Thu</td><td>Fri</td><td>Sat</td>
    </tr>
    <%
        leadGap = calendar.get(Calendar.DAY_OF_WEEK)-1;
        int daysInMonth = dom[j];
        if ( calendar.isLeapYear( calendar.get(Calendar.YEAR) ) && j == 1)
        ++daysInMonth;
        out.print("<tr>");
        out.print(" ");
          for (int h = 0; h < leadGap; h++)
           out.print("<td>");
          out.print("</td>");
        for (int h = 1; h <= daysInMonth; h++)
          out.print("<td>");
          out.print("<a href=desc.jsp>" + h + "</a>" );
          out.print("</td>");
        if ((leadGap + h) % 7 == 0)
            out.println("</tr>");
    out.println("</tr></table></div>");
    if( row%3 != 0)
    out.println("</td><td>");
    else
    out.println("</td></tr>\n<tr><td>");
    %>
    </html>I need to pass the value in 'h' to the desc.jsp page.
    my code for desc.jsp is :
    <html>
    <head>
    </head>
    <body bgcolor="lightblue">
    <form method=post action="Calenda.jsp">
    <br>
    <%= request.getParameter("h") %>
    <h2> Description of the event <INPUT NAME="description" TYPE=TEXT SIZE=20> </h2>
    <BR> <INPUT TYPE=SUBMIT VALUE="submit">
    </form>
    </body>
    </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 11.1.1.5.0 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
    http://opreview.blogspot.in/2011/07/adf-how-to-pass-parameters-between.html
    Regards

  • 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.
    Thanks

    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.
    thanks

    Hi,
    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.
    Thanks,
    Abhishek

  • 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
    http://support.apple.com/kb/ht1751

  • 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
    marc

    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.
    Otherwise:
    PowerTunes - http://www.fatcatsoftware.com/powertunes/ (commercial software)
    syncOtunes - http://homepage.mac.com/oligrob/syncOtunes/syncOtunes.html

  • 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
    http://support.apple.com/kb/HT2519
    Or do you mean this...
    Old Phone to New Phone
    http://support.apple.com/kb/HT2109
    Also...
    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

  • How do you re-encode h.264 video without artifacts?

    Hi I have a video that was exported out of Premiere using h.264 at max 20mbps. All is good. Since the export takes 10+ hours I now want to create a version for Vimeo and Youtube. Becuase of the file size I don't want to upload the entire 2GB file to

  • I updated my iPod and now it won't download any apps?

    Soo I wanted to get more out of my iPod so I formatted it. (YIKES!) Anyway, thee iPod was formatted without backup and then I realized, after adding 300 songs and 19 app, that my two favorite apps, iBooks and Temple Run, weren't installing! Why, beca

  • Return Links at top of Report?  Legend Labels on Bar Chart Rollovers?

    Hi, I have two questions. 1. Is there a way to easily put the 'Return' links at the top of all reports? i.e. is there a template I can edit to do this to all my reports? I have hundreds of reports and changing them all by hand by putting a static tex

  • Kernel refuses my usb microphone after update

    I guess the latest (or one of the latest) kernel update crashed the usb driver for my Blue Yeti USB microphone, it doesn't show up anymore in pulseaudio and isn't shown as a recognized usb device anymore: leandros@archlinux ~ % lsusb !7939 Bus 005 De

  • Need to create 6 sub reports in Crystal Reports 2008 - Advise Required

    Hello All, I am trying to create a report with 6 sub reports in Crystal Reports 2008.Each sub-report is filtered by a filed called Error Status.Finally i need to parameterize the report based on Rec Date ( This is also i field in table from where i a