Display with the Table function in pipeline object

I try to use a read only View object with a pipeline function table which takes in and defined by the user returns the objects. I work with an OraclePreparedStatement, but want to use a view object.

This is the query:
SELECT test_pkg.test_function(?,?) FROM DUAL;

How can I configure the input parameters of the View object? The only method I can find available is setWhereClauseParam, but there is no where clause.
Is it possible to use an object view in this situation?

Any help is greatly appreciated. Thank you.
S

This can be done very easily. The query of your view object should be:

SELECT *
  FROM TABLE(test_pkg.test_function(:bind1, :bind2))

Then create variable bind for both parameters.
You will set the bind variable in the same way that you define bind variables for any other question.

Published by: jflack on April 9, 2013 16:28

Tags: Java

Similar Questions

  • columns to display with the aggregate function

    Hi all
    I have two sql queries. When I run them I get these results.
      SELECT DISTINCT fiscal_year, lvl_6_id, a.grp_id, segment1
         FROM ops_cv_extract a, fdev_group b
         WHERE a.grp_id = b.grp_id(+)
         AND lvl_6_id = 5694
         AND fiscal_year = 2009
         ORDER BY A.grp_id;
    
    sum(product_bkg) grp_id period_num segment1
    2009     5694     -999     
    2009     5694     777     
    2009     5694     888     
    2009     5694     61493     11555
    2009     5694     61495     11555
    2009     5694     62322     11555
    2009     5694     62537     11555
    2009     5694     62772     11555
    2009     5694     62773     11555
        SELECT SUM(product_bkg), grp_id, period_num
            FROM ops_cv_extract
            WHERE lvl_6_id = 5694
            AND  fiscal_year = 2009
            GROUP BY grp_id, period_num
            ORDER BY grp_id;
    
    sum(product_bkg) grp_id period_num
    1151105.97     -999     1
    1828943.89     -999     2
    1074665.97     777     1
    1061934.5     777     2
    -10750.1     888     1
    51484.12     61493     1
    9582.79     61493     2
    51404.67     61495     1
    -187.57     61495     2
    1123     62322     2
    9069.6     62537     1
    1353.42     62537     2
    18026.8     62772     1
    104.4     62772     2
    17251.68     62773     1
    600     62773     2
    I am writing two sql queries in a single request to get this result
    fiscal_year lvl_6_id sum(product_bkg) grp_id period_num segment1 
    2009 5694 1151105.97     -999     1
    2009 5694 1828943.89     -999     2
    2009 5694 1074665.97     777     1
    2009 5694 1061934.5       777     2
    2009 5694 -10750.1     888     1
    2009 5694 51484.12     61493     1  11555
    2009 5694 9582.79     61493     2 11555
    2009 5694 51404.67     61495     1 11555
    2009 5694 -187.57     61495     2 11555
    2009 5694 1123             62322     2 11555
    2009 5694 9069.6     62537     1 11555
    2009 5694 1353.42     62537     2 11555
    2009 5694 18026.8     62772     1 11555
    2209 5694 104.4     62772     2 11555
    2009 5694 17251.68     62773     1 11555
    2009 5694 600             62773     2 11555
    How is it possible.
    Thank you

    Published by: polasa on November 5, 2008 12:22

    We don't even have group sets to achieve this result:

    SQL> select a.lvl_6_id
      2       , a.fiscal_year
      3       , sum(a.product_bkg)
      4       , a.grp_id
      5       , a.period_num
      6       , b.segment1
      7    from ops_cv_extract a
      8         left outer join fdev_group b on (a.grp_id = b.grp_id)
      9   where a.lvl_6_id = 5694
     10     and a.fiscal_year = 2009
     11   group by a.lvl_6_id
     12       , a.fiscal_year
     13       , a.grp_id
     14       , a.period_num
     15       , b.segment1
     16   order by a.grp_id
     17  /
    
      LVL_6_ID FISCAL_YEAR SUM(A.PRODUCT_BKG)     GRP_ID PERIOD_NUM   SEGMENT1
    ---------- ----------- ------------------ ---------- ---------- ----------
          5694        2009            2398,32       -999          1
          5694        2009            2300,23       -999          2
          5694        2009            2543,55        777          1
          5694        2009               2390        777          2
          5694        2009            9834,92        888          1
          5694        2009           12132,46      61493          1      11555
          5694        2009            3209,23      61493          2      11555
    
    7 rijen zijn geselecteerd.
    

    Kind regards
    Rob.

  • Integrate the Table function in the package

    Hey everybody,

    I had a problem with my table function. I don't have it created in a package as a function table on the database. Now I have to integrate it in my package,

    but it does not work. What I have to put the type and Assembly in the package_spec? I always get the error: "each cursor or subprogramm in the package_spec statement must have a corresponding definition in the package body.

    But I already joined the funtion in the body. Maybe someone can help me? I would be very grateful!

    It's my spec package: (sorry, I don't know how to insert the code in this forum, maybe you can tell me)

    The search_type is declared, but so far not in the package:

    ----------------------------------------

    create or replace package test is

    TYPE search_set IS TABLE OF THE schema.search_type;

    function search (.)

    Return search_set;

    end test;

    ----------------------------------------

    create or replace package test body is

    function search (.)

    return search_set

    pipelined is

    ..

    search for late;

    ----------------------------------------

    create or repplace type search_type as object

    (..);

    ---------------------------------------

    If I lump the search_type package specifications, it will not accecpt the 'object '.

    It would be great if you can help me! I would also like to update my post I have someone tell me how to integrate the code correctly in this post.

    Many thanks!

    In your message the definition of function in the SPECIFICATION does not PIPELINED keyword, but your BODY plan has it.

  • How to find the number of data items in a file written with the ArryToFile function?

    I wrote a table of number in 2 groups of columns in a file using LabWindows/CVI ArrayToFile... Now, if I want to read the file with the FileToArray function so how do I know the number of items in the file. during the time of writing, I know how many elements array to write. But assume that I want the file to be read at a later time, then how to find the number of items in the file, so that I can read the exact number and present it. Thank you all

    Hello

    I start with the second question:

    bytes_read = ReadLine (file_handle, line_buffer, maximum_bytes);

    the second argument is the buffer to store the characters read, so it's an array of characters; It must be large enough to hold maximum_bytes the value NULL, if char [maximum_butes + 1]

    So, obviously the number of lines in your text tiles can be determined in a loop:

    Open the file

    lines = 0;

    While (ReadLine () > 0)

    {

    lines ++;

    }

    Close the file

  • CVI suggested help update on 'programming with the Table controls.

    Hello

    May I suggest adding a sentence to the chapter 'Programming with the Table controls', 'Creation and deletion of cells' section help of CVI.

    After the sentence "use the following functions to control the number of rows in a table control...". "I would like to add a suspicion that the number of lines is also affected by (programmatically) adjustment of the height of the table.

    Now that I've discovered, it's obvious ;-)

    Hi Wolfgang,.

    I think you might be misunderstanding this sentence in aid. It does not refer to the size of the table, in regard to the number of lines go in the table. It is in fact the number of real lines exist in the table. And the total number of rows in the table is absolutely not affected by the height of the table.

    Luis

  • Problems with the Row_Number function

    I have problems with the Row_Number function. I use to assign line numbers to records where a student has a note of passage on a module and the exclusion of the modules failed (I want to show her a 0 as the line number for the modules failed). The problem is that when I try to use a condition, the report still assigns a line number to a defective module if it does not display it (it shows a 0 I wanted to show him). The results are displayed as follows:

    Line number Module Grade
    1ModuleAPass
    2ModuleBPass
    0ModuleCIn case of failure
    4 (instead of 3)ModuleDPass

    How can I make him jump to assign a line number to all the modules failed? Please help.

    Thank you.

    Thank you very much, Melanie. I made changes to query as per your suggestion, which is a union of the modules failed and passed (using row_number on success modules). Thanks for the solution.

  • Problem regarding the display of the Table

    Hello

    I have a problem with a Table in OAF... According to the condition if we have no action on the Table we should display the same view in the table... (Because let's assume that we are in the fifth of the Table Page, even after the implementation of the action to submit we must stay on the same Page)... now when I play an action after the action is completed, we see the first view (Page) of the Table...


    Please suggest me what needs to be done on this issue... I saw that the page is refreshed after submit action


    Kind regards
    Doris

    Hello

    Capture the event associated with the table column and returns the primary key of the row in the params of the event.

    If ("rowevent". Equals (PageContext.GetParameter ("Event"))
    {
    obtain the primary key of this line
    Chain of rowid = pageContext.getParameter ('primary key');
    get the existing lines of the range
    OAViewObject vo = (OAViewObject) am.findViewObject ("vo name");
    Rank [] rows = vo.getAllRowsinRange ();
    for (i = 0; i<>
    {
    Corresponds to the primary key that is captured with all the lines to find the corresponding row
    If ("rowid".equals (lines.getAttribute("rowid").toString (()))
    {
    you get the line on which event has been triggered just out of the loop

    break;
    }

    }

    This way navigation will be won on the same range, as the event is triggered.

    Thank you
    Gerard

  • If I have the first generation iWatch I'll be able to get the update for new applications and look at faces?  I know that I couldn't display or the waterproof function to the water.

    If I have the first generation iWatch I'll be able to get the update for new applications and look at faces?  I know that I couldn't display or the waterproof function to the water.

    Hello

    The next operating system update, watch OS 3, will be available for all Apple Watch models, including the first generation watches.

    We should go out on 13 September, after which it can be installed by following the steps detailed here:

    More information:

    http://www.Apple.com/Watchos/

  • When I print a table (multiple pages) the text box under the table seems to be moving under the table and prints with the table of this overlap. My only solution is to push the text box further down the page before printing... Any advice?

    Im having problems shaped a text box so that my table does not print right on top of it. I want it inside of my table (it's 'tems and conditions' budget)

    Any advice would be great.

    I face the same problem as well. Would like to know if there is a better way to get the text box to move with the table instead of the effect that overlap. Have to manually adjust the layout, whenever I want to get a reasonable print of a document (or export it to PDF) seems counterintuitive, especially when it causes the document seem ill-disposed on screen.

    I am running version 3.6.2 of the numbers in the case where that matters.

  • Satellite A100-220: is it possible to extend with the WLan functionality?

    As in the title: is it possible to extend the Satellite A100-220 - without builtin WLAN - with the WLAN functionality?

    Hello

    It is not a problem to use the WLAN option on the unit without internal WLAN card. You can also use the little USB WLAN stick. It is very small and easy to configure. Before you buy something to pick up the info from your local dealer.

  • Using Vista Home Premium 64 x. In Windows Explorer how to group by name to display with the simple letters like A, B, C, D, etc. instead of A - H, P, Q - Z?

    Original title: group Windows Explorer by name

    Using Vista Home Premium 64 x.  In Windows Explorer how to group by name to display with the simple letters like A, B, C, D, etc. instead of A - H, P, Q - Z?  In XP, it could be sorted by simple letter, which makes it easier in a folder with many files.  Thanks in advance.

    Hi kmcmi,

     

    Welcome to Microsoft Answers Forums.

    Well this feature is not available in Windows Vista.

    It only works on Windows XP.

    I've added a useful link

    Behavior and change folder views

    http://windowshelp.Microsoft.com/Windows/en-us/help/3a3bfe59-5268-4FB3-81c5-7972c28939cd1033.mspx

    Hope this information is useful.

    Let me know if it worked.

    All the best!

    Thanks and greetings

    Halima S - Microsoft technical support.

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

  • I want to send an email manually with the fields email drives custom object? Is this possible?

    I want to send an email manually with the fields email drives custom object? Is this possible?

    Hey,.

    Yes, however, the object record Email custom fields only fill with default values. For the custom field object Record is filled, it must be sent via the event Actions or a generating program so that he knows in which case it is associated.

    Thank you...

  • Adobe PDF Reader Plugin DC cannot disable with the ID of Group Policy object class

    Adobe PDF Reader Plugin DC cannot disable with the ID of Group Policy object class

    Our school district recently upgraded to Acrobat Reader DC - in the past, we have disabled the plugin IE via GPO for Internet Explorer - manage ad - ons with the class ID of the ad-on/plugin

    The class ID is the same on computers {CA8A9780-280D-11CF-A24D-444553540000}, and the object GPO is applied and turns off the plugin

    result with the new version - PDF opens in Internet explore - it is a problem for a lot of reason / especially we have many applications that require the full version and we have seen a lot of reports being pulled from IIS based sites that fail to print.

    It works if I disable the GPO and manually disable the plugin.

    That is the question

    Is there a way to disable the ad-on/plugin for IE centrally from an IT management perspective?

    While what you do must have worked, you can try these: create one of the following keys:

    1.

    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\15.0\Originals]

    "bBrowserIntegration" = DWORD: 00000000

    2.

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\ {CA8A9780-280D-1 1See-A24D-444553540000}]

    (just to create the key is sufficient)

  • Is it possible to create the icon PDF format display with the cover of the document image, when sending via "Mail" on a mac?

    Is it possible to create the icon PDF format display with the cover of the document image, when sending via "Mail" on a mac?

    InDesign has no control on how Apple Mail displays a PDF it creates.

    My experience is that Mail displays a preview of a single PDF page, but not a multiple page PDF. In addition, for a single page PDF, the user may tip if the PDF shows a preview by right-clicking the icon/preview.

  • Problem with the GetParameter() function in IScript

    Hello

    I am facing a problem with the GetParameter() function in IScript. I created a URL below and appellant IScript

    GenerateScriptContentURL ("EMPLOYEE", "MFC", Record.WEBLIB_REPT_SJ, Field.ISCRIPT1, "FieldFormula", "IScript_GetAttachment"). "? FileName =' | & AttachUserFileURL;

    before generating URLS, I'm just encrypt the name of the ZIP file & assignment in the variable string & AttachUserFileURL I concatenated in link above.

    and try to take the value encrypted text of decryption by %Request.GetParameter("FileName") in IScript who isn't able to get special characters such as +, is.

    Please get this.

    Thank you

    Edited by: 936729 may 25, 2012 03:35

    + and = are allowed in URLS. You just have to URL encode like this EncodeURLForQueryString(&AttachUserFileURL) before adding them to your URL:

    GenerateScriptContentURL("EMPLOYEE", "HRMS", Record.WEBLIB_REPT_SJ, Field.ISCRIPT1, "FieldFormula", "IScript_GetAttachment") | "?FileName=" | EncodeURLForQueryString(&AttachUserFileURL);
    

    Here is the entrance of PeopleBook for EncodeURLForQueryString:

    http://docs.Oracle.com/CD/E28394_01/pt852pbh1/Eng/psbooks/TPCL/htm/tpcl02.htm#_6453b1b1_1355ab71343__503e

Maybe you are looking for