Passing parameters in PL/SQL FOLDER

I've made a structure of content inside a content area.
Inside this structure, I've created som PL/SQL Folders to display information stored in a rempote database.
How can I manipulate the values to submit from the area of the PL/SQL folder,
for instance a value selected from a customize ComboBox and read it in the same PL/SQL folder after the submit?
Thanks in advance,
Gilberto Pe-Curto
[email protected]

This has nothing to do with the SQL and PL/SQL languages - and sounds like you're dealing with a product called Oracle Applications or something or another.
Wrong forum for that. Please have a look at the forum indexes and ask product related questions in the correct forum.
Please close this thread.
Thanks.

Similar Messages

  • Passing parameters to PL/SQL table types

    Hi Everybody,
    I have one question about passing PL/SQL tables types and tabs as IN parameter in procedure.I am working in 11.2.0.2.0 environment. I am stuck on how to pass those values to procedure.Please find below more details:
    Table 1:
    CREATE TABLE ITEMS
    ITEM_ID VARCHAR2(40 BYTE) NOT NULL,
    ITEM_NAME VARCHAR2(40 BYTE),
    SERIAL NUMBER(2),
    ADDED_ON DATE);
    Table 2:
    CREATE TABLE ITEM_ACTIVITY_INFO
    ITEM_ID VARCHAR2(40 BYTE) NOT NULL,
    ACCOUNT_TYPE VARCHAR2(1 BYTE),
    ID_NUMBER NUMBER(3),
    ACTIVATION_DATE DATE);
    Table 3:
    CREATE TABLE ITEM_GROUP
    GROUP_ID NUMBER(2) NOT NULL,
    ITEM_ID VARCHAR2(40 BYTE),
    GROUP_TYPE VARCHAR2(20 BYTE),
    GROUP_DATE DATE);
    Table 4:
    CREATE TABLE ITEM_ADDRESS
    GROUP_ID NUMBER(2) NOT NULL,
    NAME VARCHAR2(60 BYTE),
    ADDRESS VARCHAR2(100));
    Following types are created:
    CREATE OR REPLACE TYPE ITEMS_TYPE AS OBJECT
    ITEM_ID VARCHAR2(40 BYTE),
    ITEM_NAME VARCHAR2(40 BYTE),
    SERIAL NUMBER(2),
    ADDED_ON DATE);
    CREATE OR REPLACE TYPE ITEM_ACTIVITY_TYPE AS OBJECT
    ITEM_ID VARCHAR2(40 BYTE),
    ACCOUNT_TYPE VARCHAR2(1 BYTE),
    ID_NUMBER NUMBER(3),
    ACTIVATION_DATE DATE);
    CREATE OR REPLACE TYPE ITEM_GROUP_COMP_TYPE AS OBJECT
    GROUP_ID NUMBER(2) NOT NULL,
    ITEM_ID VARCHAR2(40 BYTE),
    GROUP_TYPE VARCHAR2(20 BYTE),
    GROUP_DATE DATE
    ITEM_ADDRESS_IN ITEM_ADDRESS_TYPE);
    CREATE OR REPLACE TYPE ITEM_ADDRESS_TYPE AS OBJECT
    GROUP_ID NUMBER(2),
    NAME VARCHAR2(60 BYTE),
    ADDRESS VARCHAR2(100));
    CREATE OR REPLACE TYPE ITEM_GROUP_COMP_TAB AS TABLE OF ITEM_GROUP_COMP_TYPE;
    Create or replace procedure ITEM_ADD_CHANGE(
    ITEM_IN IN ITEMS_TYPE,
    ITEM_ACTIVITY_IN IN ITEM_ACTIVITY_TYPE,
    ITEM_GROUP_IN IN ITEM_GROUP_COMP_TAB,
    ITEM_OUT IN OUT ITEMS.ITEM_ID%TYPE);
    Above are the paramteres we are passing to procedure.
    I need help in how to pass parameters to above procedure. All comments and responses will be highly appreciated. Thanks everyone for going through the post. Please let me know if more more information is required on this problem.
    Regards
    Dev

    Billy  Verreynne  wrote:
    Types used in this fashion, only make sense if the table is based on the type. It makes very little sense to have a table structure and then to duplicate the structure using a type.
    The 2 structures may be defined the same. But they are NOT interchangeable and requires one to be converted to the other to use. This is not sensible in my view. It is far easier in that case to simply use the PL/SQL macro +%RowType+ to create a duplicate structure definition - one that can natively be used for touching that table, without conversions required.
    If you do want to use types, define the type, then define the table of that type, adding the required constraints (pk, fk, not null, check) to the table's definition.Billy:
    Just curious, why do you say it makes very little sense to have a type modeled on a table? I do that a lot. In my case, I am getting the values from an external program, not building them manually, but it makes a lot of sense to me.
    One application where I do this a lot has a java front-end that parses HL7 messages. Each message contains at least minimal information about a variable number of entities (and often several rows for an entity) in the database, and must be processed as a single atomic trasnaction. So, rather than have potentially hundreds of parameters to the "main" driver procedures for different message types I created a set of types more or less identical to the tables representing the entities. The java program parses the mesasge and populates the type, then calls the appropriate stored procedure for the message type passing in the populated types. My stored procedure then does inserts/updates or deletes as appropriate over potentially dozens of tables.
    John

  • Passing Parameters to a discoverer folder using Note 282249.1

    I am creating reports for a multi-lingual environment. My problem is trying to present the headings in the reports in the language required. Since I am creating all the code for the reports in custom folders, I thought I would just hide my column headings using color on color and add a row to my report that is a headings row.
    In order for the headings row to display, it must have the value for the parameter I am using...a type of id. I followed the instructions in Note:282249.1 for passing a parameter to a discoverer folder. It works perfectly...sometimes. I think the 'sometimes' has something to do with caching.
    As the Note says, I created a function 'setparam' and then I created a condition in the report which is 1=SETPARAM(:my_parameter). Here's how I ran the report and the results:
    1. Condition in the report, heading row doesn't display
    2. Remove the condition, use the same parameter, heading row displays
    3. Condition still not in, use new parameter value, heading row doesn't display
    4. Add Condition back in, same parameter value as #3, heading row displays
    5. Remove condition, same parameter value as #3 & #4, heading row displays
    6. Add Condition back in, same parameter value as #3, #4 & #5, heading row displays
    7. Condition in the report, new parameter value, heading row doesn't display
    8. Results same as #2
    and so forth. Which is why I decided it has to do with caching.
    So then I ran the sql in SQL Developer and got this error. "SQL Error: Missing IN or OUT parameter at index:: 1". I googled the error, but the results are outside my scope of knowledge.
    Anyone?
    Thanks so much,
    Tricia

    Hi,
    It is difficult to use this technique with the /BATCH command because you cannot specify the order in which the worksheets will be processed.
    My suggestion is that you change you set_context function so that the value is stored in a table and then create a logon trigger so that the users' contexts are reloaded when the user connects. Your contexts will then effectively be permanent and reset from session to session.
    You will need to create a table to store the contexts:
    CREATE TABLE disco_user_context
    (username VARCHAR2(30), attribute VARCHAR2(30), value VARCHAR2(4000),
    CONSTRAINT disco_user_context_pk PRIMARY KEY (username, attribute));And modify your set context function to store the contexts:
    FUNCTION set_context(p_name VARCHAR2,
                         p_value VARCHAR2) RETURN VARCHAR2
    IS
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    dbms_session.set_context('EUL_DISCO', p_name, p_value);
    INSERT INTO disco_user_context (username, attribute, value)
    VALUES (user, p_name, p_value);
    COMMIT;
    RETURN p_value;
    EXCEPTION WHEN DUP_VAL_ON_INDEX THEN
    UPDATE disco_user_context
    SET value = p_value
    WHERE username = user AND attribute = p_name;
    COMMIT;
    RETURN p_value;
    END set_context;Then create an initialization procedure in your package:
    PROCEDURE initialize
    IS
    result VARCHAR2(4000);
    BEGIN
    FOR contexts IN (SELECT attribute, value FROM disco_user_context WHERE username=user)
    LOOP
        result := set_context(contexts.attribute, contexts.value);
    END LOOP;
    END initialize;And create a logon trigger to call the initialization procedure:
    CREATE OR REPLACE TRIGGER rodwest.disco_logon_trigger AFTER logon ON rodwest.SCHEMA
    BEGIN disco_pkg.initialize; END;
    /Hope that helps,
    Rod West

  • Passing parameters to the SQL Report from a text box in jsp

    Hi All,
    I want to dynamically generate the SQL Server Reporting Services by passing the query parameter from the url like this :
    "http://localhost/Reports/Pages/Report.aspx?ItemPath=%2fDashboardReports%2fHorse_Profile&rs:Command=Render&rs:HorseID=117415"
    Where horseid id my parameter which is needed by report to generate the required data.
    This query paramter value is picked from the text box on my jsp page.
    But my problem is when i go to this url it says the message
    "The 'HorseID' parameter is missing a value ".
    I have done a lot of search on this topic. Everybody says that we can pass the values from the url like i am using. But still its not working.
    Any body has any idea please give me some idea.
    Regards.

    If you receive a picture via email or text message in ios 7 and when you press the action icon to save the picture and you do not get the option to save to your camera roll. Press and hold on the the image and you will get an overlay pop up to save the image. I have no idea why some attachments don't have option in action menu to save in the camera roll but by experimentation and earned frustration I found the above to work in certain situations.
    Be well and have fun and feel rewarded in your frustrations. For without challenges, life would be an utter bore.

  • Passing parameters to pl/sql procedure called in portal

    Hi all,
    I am trying to use a javascript window.open function to create a small popup window that is populated by a pl/sql procedure from inside portal.
    I am trying to pass it a parameter to refine a SQL query running in that procedure, unfortunately I'm not sure of the syntax. The url that I'm trying to open in the new window looks like this:
    http://my.server.com:7777/portal/pls/portal/myschema.mypackage.myprocedure
    If I just run this, it works fine and the popup window opens correctly and displays all results. If I try to pass a parameter, it errors out with a 404 Page Not Found.
    The parameter itself comes from a text field that the user can enter a value into. I am able to get the value of that text field and append it to the url I'm generating, but I can't find the proper syntax.
    I've tried numerous syntax variants, but none of them seem to work. The procedure does have the parameter defined in both the spec and body and properly handles it. Can anyone point me in the right direction?
    Thanks,
    -Mike Markiw

    You said you have a text field where a user enters a value, so I am assuming that you have form...
    you can try following
    <form action="/pls/portal/myschema.mypackage.myprocedure" method="post">
    your text field "inVar"
    your submit button
    </form>
    I am sure your myprocedure has inVar as an input...
    If you just want to pass a value to a procedure you can always do following:
    http://my.server.com:7777/portal/pls/portal/myschema.mypackage.myprocedure?inVar=the value

  • Passing parameters to PL/SQL function called in VO

    Hi,
    I am writing a VO that is calling a PL/SQL function. The VO query looks like this.
    select xx_dummy_func (:1,:2) from dual
    Now, how can I assign these two parameter values at run time?
    Generally when we have a query parameters We do xxVO.setwhereclauseparam. But in the above scenario, its not a whereclause but instead a procedure parameter. Please let me know how to do it.
    Thanks in advance,
    Regards,
    -Abm

    Thats correct, basically, setwherecaluse param api, just replaces bind variables with the index values, whereever they are in the query!
    --Mukul                                                                                                                                                                                                                                                                                                                                                       

  • Passing parameters in pl/sql concurrent request

    hi..
    i want to add parameters in the code of concurrent programe that we are registering from the back end..
    IF p_status = 'CL' THEN*/
    v_id := FND_REQUEST.SUBMIT_REQUEST('AR'
         ,'XRAXINV_SEL'
         ,SYSDATE
         ,FALSE
         ,'TRX_NUMBER','Yes','' ,'' , p_trx_number, p_trx_number, p_cust_trx_id,'' ,'' ,'' ,'' ,'' , 'N', 'N', '', 'SEL', 1, 'N',10, '','' ,''
    this is the registered code for this i want to add parameters..

    This has nothing to do with the SQL and PL/SQL languages - and sounds like you're dealing with a product called Oracle Applications or something or another.
    Wrong forum for that. Please have a look at the forum indexes and ask product related questions in the correct forum.
    Please close this thread.
    Thanks.

  • How to pass parameters to a SQL query or Data template

    Hi,
    The requirement is that my final report will take 'date' as input from the user and print only those records which have date later than the user-supplied 'date'. ('Date' is a field in the database).
    I know the way to achieve this is to use user-defined parameters.
    I have read the user guide, and have created user parameters. From the user guide: "The Report Editor allows you to define your query, define
    the parameters that you want users to pass to the query,..."
    However there is no example given. (I could not find).
    Any guidance?

    Are you using Enterprise Server environment ? If so, you can find a sample report in the Shared Folders under HR Manager - Employee Salary Report. Please revert if you still have confusion.

  • Passing parameters to an SQL method

    Does any one know how could i pass a set of string values and a double to the following method please ??
    public Object executeSQL(final String sql) throws SQLException
                              Object returnValue      = null;
                              Statement statement     = this.connection.createStatement();
                              boolean hasResultSet    = statement.execute(sql);
                              if (hasResultSet)
                              ResultSet rs            = statement.getResultSet();
                              ResultSetMetaData meta  = rs.getMetaData();
                              int numColumns          = meta.getColumnCount();
                              List rows               = new ArrayList();
                              while (rs.next())
                              Map thisRow = new LinkedHashMap();
                              for (int i = 1; i <= numColumns; ++i)
                              String columnName   = meta.getColumnName(i);
                              Object value        = rs.getObject(columnName);
                              thisRow.put(columnName, value);
                              rows.add(thisRow);
                              rs.close();
                              statement.close();
                              returnValue = rows;
                              else
                              int updateCount = statement.getUpdateCount();
                              returnValue     = new Integer(updateCount);
                              return returnValue;
                              }here is the sql statement i want to excute
    INSERT INTO [Receipt$] ([MastInterferenceID], [Name], [Address], [Town], [County], [AmountPaid]) VALUES ('"+mastID+"','"+name+"','"+address+"','"+town+"','"+county+"','"+amount+"');"all these variables are of type String except for amount which is a double ........ and im passing these parameter from another class called "MainMenuGUI"
    The SQL method at the top is part of an connection that enters data to an excel worksheet
    Thanks for taking the time to read this,
    Seanie.

    Does any one know how could i pass a set of string
    values and a double to the following method please ??
    public Object executeSQL(final String sql) throws
    SQLException
    Object returnValue      =
    Object returnValue      = null;
    Statement statement     =
    Statement statement     =
    this.connection.createStatement();
    boolean hasResultSet    =
    boolean hasResultSet    = statement.execute(sql);
    if (hasResultSet)
    ResultSet rs            =
    ResultSet rs            = statement.getResultSet();
    ResultSetMetaData meta  =
    ResultSetMetaData meta  = rs.getMetaData();
    int numColumns          =
    int numColumns          = meta.getColumnCount();
    List rows               =
    List rows               = new ArrayList();
    while (rs.next())
    Map thisRow = new
    Map thisRow = new LinkedHashMap();
    for (int i = 1; i <=
    for (int i = 1; i <= numColumns; ++i)
    String columnName   =
    String columnName   = meta.getColumnName(i);
    Object value        =
    Object value        = rs.getObject(columnName);
    thisRow.put(columnName,
    thisRow.put(columnName, value);
    rows.add(thisRow);
    rs.close();
    statement.close();
    returnValue = rows;
    else
    int updateCount =
    int updateCount = statement.getUpdateCount();
    returnValue     = new
    returnValue     = new Integer(updateCount);
    return returnValue;
    }here is the sql statement i want to excute
    INSERT INTO [Receipt$] ([MastInterferenceID], [Name],
    [Address], [Town], [County], [AmountPaid]) VALUES
    ('"+mastID+"','"+name+"','"+address+"','"+town+"','"+co
    nty+"','"+amount+"');"all these variables are of type String except for
    amount which is a double ........ and im passing these
    parameter from another class called "MainMenuGUI"
    The SQL method at the top is part of an connection
    that enters data to an excel worksheet
    Thanks for taking the time to read this,
    Seanie.Seanie,
    Why dont you use a Prepared Statement ? That way you will be able to input values to the SQL.
    Cheers!
    Jay

  • Passing parameters in an sql call to a function

    hello gurus
    i have a simple function that outputs the first x natural integers..
    create or replace function first_numbers (x number default 10) return varchar2
    is
    var varchar2(100);
    begin
    var := null;
    for i in 1..x
    loop
    var := var||to_char(i)||'-';
    end loop;
    return rtrim(var,'-');
    end;
    i would like to use it in an sql call, like this
    select first_numbers (5)
    from dual --(it works)
    but it doesn't work if i pass the parameter in this way
    select first_numbers (x=>5)
    from dual --(it DOESNT' work)
    i understand that it can't be possible because i am working in a sql environment while the call with the "=>" is typical in a pl sql environment.. would like to know if there is a workaround ..
    thanks in advance
    claudio

    claudioconte wrote:
    i understand that it can't be possible because i am working in a sql environment while the call with the "=>" is typical in a pl sql environment.. would like to know if there is a workaround ..Upgrade to 11g which allows that notation. ;)
    What do you actually need a workaround for? What's actually wrong with doing it without that notation?

  • Passing parameters between PL/SQL and DLL

    A DLL function is defined as below:
    control (unsigned char **objlist) (objlist is a void array where the control function put the output values
    What kind of Oracle variable can accept this function ?
    Thanks
    Giuseppe La Franca

    Hi Romesh,
    You can use one of the following options...
    1) Use SQL*Plus variables to have your session exit with
    the return code from the stored procedure.
    Please remember that you can exit session with only integer
    values. You need to map these values in UNIX script
    to determine true or false.
    2) Use DBMS_OUTPUT in the stored procedure to print
    True or False only and use PL/SQL block in UNIX script
    to capture the value.
    3) Make your stored procedure a function and capture the
    output into UNIX variable using SELECT statement.(if no DMLs
    are there)
    Hope this helps,
    Good Luck,
    rajkiran

  • Parameters to pl/sql pages

    Hi all,
    I installed the pdk examples showing how to pass parameters betweens pl/sql portlets. I saw it but not understand very weel. This is the same way to pass parameters between pl/sql pages? Is there any step-by-step that explain how to make the parameters passing more simple?
    Best regards,
    Joao Vitor.

    Hi Mick,
    Thanks for your reply. However my problem is still not resolved.
    I have created a Omniportlet with lists the staff details. When I click on the staff link I am passing to parameters as follows
    http://servername/pls/portal/url/PAGE/CCM_MIS_PORTAL/TUTOR_HOME/Course_Info?Param1=10017031/M2523&Param2=001434
    on the receving page I have a omni portlet which must receive these 2 parameters and pass it on to the query and filter the results.
    On the received page I have created 2 page parameters (Param1 and Param2)
    I have assigned these 2 paramaters to the portlet paramers through page parameters' section
    on the omni portlet in the query I have created 2 bind variables (p1, p2) and the default value of the bind variable is set using ##Param1## and ##Param2## so the received values from page is passed to to bind variable and hence to the query.
    However the omni portlet is not received the parameters and I can not figure out whats wrong?
    Is there any problem with my URL (guide says I should use relative URL)
    Please help

  • Page Parameters in PL/SQL Pages

    The OAS User's Guide says:
    "You can define page parameters for PL/SQL Pages. Values for these parameters are passed to bind variables in the PL/SQL code. For example, if the PL/SQL page 'myplsqlpage' contains the PL/SQL statement 'a:=:param1'; and a page parameter is specified named 'param1' with the value '123' (param1=123), this URL is used to access the PL/SQL page in Oracle AS Portal:
    http://myportal/myplsqlpage?param1=123
    In the PL/SQL code, the bind variable 'a' is assigned the value '123'."
    But I did that but I have the following message:
    ORA-01008: not all the variables have been binded (WWS-22518).
    Please I have an example.
    Thanks in advance.

    Hi Patrick,
    Your suggestion seems interesting and simplistic and I wonder if you could make it working. Because, I worked on a similar suggestion some months ago and it did not work. unless I am confusing your idea with something else, it is not designed to work - although it was claimed in the documentation to work. On talking to Oracle we were able to pin down that it was a documentation bug and a new note was created to state that.
    You may wanna see the following Metalink Note which says that passing parameters from a PLSQL page is not allowed.
    regards,
    AMN
    Subject:      Unable To Pass Parameters To A PL/SQL Page
    Doc ID:      Note:550373.1
    Cause
    Page parameters were not designed to work with PL/SQL pages. However the Oracle® Application Server Portal User's Guide states that this is possible.
    This is a documentation bug and it is related to the following unpublished bugs:
    BUG 5007570: GET PARAMETERS IN PL/SQL PAGE
    BUG 3473023: PASSING PARAMETERS TO PL/SQL PAGE IS ERRORING OUT - ORA-1008
    Solution
    -- To implement the solution, please execute the following steps::
    PL/SQL pages do not support to pass parameters. If you need to pass page parameters to a database provider components such as forms and reports, then you need to create a simple page and follow notes below:
    Note 265180.1
    Title: How to pass parameters to a form, which is placed as a
    portlet inside a page?
    Note 287545.1
    Title: How Pass Parameter Via URL to a Report Using Page Parameters

  • Passing date parameters to a custom folder

    Is there any simple way to pass date parmeters to a custom folder?

    I think I recognize a question very similar to this recently.
    And it's the same situation, in that - what do you mean by passing a date?
    I understand it to mean that you want a user - at run time - to enter a date or date range that will then return only that data from a custom folder.
    1. You could have all data returned (ie: no date conditions applied to the SQL) and then filter using the Disco tool (ie: plus, viewer, desktop).
    2. If you want to 'pass' those date parameters into the actual folder in the EUL, then there is a method that you can use using functions you write.
    3. Or you could code the actual database SQL view with some kind of hard-coded date parameters (ie: SYSDATE - 30), etc.
    Russ

  • Passing parameters between portlets (PL/SQL PDK)

    I'm new to the PDK, so forgive me if this is a dumb question. I need to develop a portal page containing a single search portlet, and then many other associated portlets which bring back various bits of data based on the result of the search.
    Is it possible to drive the content of other portlets on the same page by passing values from one to another and refreshing the whole page?
    null

    Neil,
    You can definitely pass parameters from one portlet to another in PL/SQL and we actually have a sample that you can take a look at. In the PDK, download the Parameter passing and CSS Example Provider sample. http://technet.oracle.com/products/iportal/files/pdkjan/index.html
    Click on PL/SQL
    One of the portlets demonstrates how to pass parameters to one portlet or all portlets on a page.
    Hope this helps,
    Sue

Maybe you are looking for

  • SQL Developer on Linux hangs when disconnecting after VPN reconnect

    Hello, I have a problem with using connections after general link failure (Cisco VPN disconnect in my case, lost of route to Oracle DB). When I reconnect to a VPN and I'll try to disconnect from a previously opened (before general link failure) conne

  • Weird Error!!cant figure it out

    Good day ppl! i posted in the Vga section of this forum but noone seems to reply with a clear cut answer..someone said memtest and it reported no errors??pls read my post and give me a diagnosis!! ure help is very much appreciated! i have a slight pr

  • How to Install Oracle Data Access Components (ODAC) on Windows Server 2003?

    I recently installed "32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio" on my computer (Windows 7, 64bit). Everything seems fine and I can develop and run my application in Visual Studio 2010 and IIS 7. Now, w

  • Writing request XQUERY with oracle 11G

    Hi, What is exactly the best way to make an XMLTYPE object (column with type XMLType) request with Oracle 11 g ? (Oracle 11g  Release 11.2.0.3.0) In different books, we see a lot of different requests. Simple example : create table contact_file_tbl(f

  • Personnel Development

    Hi, Can pls check with the Requirment i sent wheather these Business Process i prepared is correct or not if not pls do some changes and send me Business Process of Personnel Development If you want to use all the functions in the Personnel Developme