Passing Parameters to Oracle Function

Hi,
I am very new to BI Publisher and have following concern,
I have a Procedure in a Oracle Package which would return a Number, I need to use that as a Form field in my .RTF template, Could you please let me know whether I can use like this.
<group name="G_ITEM_DETAILS" source="Q_Container_Item_Query">
<element name="DISPLAY_WEIGHT" value="PKG_REPORTS_FUNCTIONS.Display_Weight_formula(:catch_weight,:pick_type,:item_weight, :container_weight, :item_weight number,:unit_qty number))" function=""/>
</group>
the parameters which i am passing will all come from Q_Container_Item_query Query.
Regards,
Ashoka BL

I managed it myself...
<sqlStatement name="Q_DISPLAY_WEIGHT">
               <![CDATA[
Select PKG_REPORTS_FUNCTIONS.Display_Weight_formula(:catch_weight,:pick_type,:item_weight, :container_weight, :item_weight ,:unit_qty) G_DISPLAY_WEIGHT from dual
]]>
</sqlStatement>
Created a SQL Statement and used a group like following.
<group name="G_DISPLAY_WEIGHT" source="Q_DISPLAY_WEIGHT">
                    <element name="DISPLAY_WEIGHT" value="G_DISPLAY_WEIGHT"/>
</group>

Similar Messages

  • Passing parameters to oracle query

    Hi Everyone,
    I'm a newbie to oracle and need help passing parameters to an oracle query. For example, I need to show all the employees in a certain department.So a list of "DEPT_CODE"'s will be displayed on a webpage and then the selected value will be passed to the query. I currently have this query in MS Access and use the bracket for user input ("[Dept]"). But how can this be done in oracle?
    I am using ASP.NET 2.0 and Crystal Reports XI. Basically I have a webform where users can select the date range and department from a listbox. When the submit button is clicked, the values are passed to the query in crystal reports. For example, I have a query with "DEPT" as a parameter. So I pass the value of the selected listbox item from the webform to the crystal report. But now I have to select data from an oracle database and provide parameters. This is where I need help.
    Thanks in advance
    -Sam

    Duplicate post.
    Refer to this thread
    Passing parameters to oracle query

  • How to pass parameters to planning function in WAD

    Hi All,
    I want to pass parameters to planning function in WAD. Pls suggest how can I do that.
    Thanx
    Amit Jain

    Hi Amit,
    insert your planning function as a command in WAD ("EXEC_PLANNING_FUNCTION"). In the screen where you enter the technical name of your planning function you can also insert Data Bindings. There you can do a selection binding for a special characteristic or a variable value. If you want to assign a static (fix) value to a variable for example you can do a variable binding (technical name of variable/variable type "Variable Input String"/Variable Input String: set the required value).
    The same thing can be done executing planning sequences within WAD.
    Brgds,
    Marcel

  • Passing parameters to oracle rports from oracle forms

    Dear all,
    Can anyone tell me how to pass parameters from oracle forms 10g to oracle reports 10g ,i want to hide my connection string and parameteres while open the report through web
    can anyone plese help me out to solve this problem.

    Hi,
    I had trail as advised, but anticipated results were not observed.
    Here is the named configuration in formsweb.cfg
    [NMPT]
    form=D:\NMPT\FORMS\FHOPENFORM.fmx
    userid=hmsprod/hmsprod@hindalco
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    imageBase=CodeBase
    separateFrame=True
    lookandfeel=oracle
    logo=none
    splashScreen=no
    pageTitle =Test Application
    background=no
    colorScheme=blue
    archive_jini=f90all_jinit.jar,icons.jar,frmwebutil.jar,jacob.jar
    archive=f90all.jar
    height=768
    width=1024
    envFile=nmpt.env
    otherparams=useSDI=yesLOCATIONID=NMPT # new parameter which I want to access in my form
    the URL is as follows:
    http://MyPC:8888/forms90/f90servlet?config=NMPT
    But I am unable to open the login page

  • Pass parameters to a function in main class from loaded SWF?

    I've got a main.as that loads SWF to the stage.
    the loaded SWF seppoused to pass a link to the main.as and trigger a javascript function to popUp that photo from that link.
    I know there are two ways:
    ((root as MovieClip).parent.parent as Object).somefunction(parameters);
    and to dispatch an event.
    inorder to pass parameters throug the event i need to extend it with another class.
    isnt the (root as... )  more efficient if all i need is to pass a link?

    when a photo from the gallery is selected a javascript popUp shows it enlarged with additioan editing options (kinda like in facebook).
    in that popUp ther is also a next button so its kinda bidirectional. (the next calling the loaded SWF throug main to get the next link in the photo array)
    the photo is a grandchild of a grandchild of the stage and the loaded swf is a grandchild so using:
    ((root as MovieClip).root as MovieClip).ExternalInterface.call("ShowPic", link);
    is discusting ><

  • How to pass parameters to ABAP function in Crystal report

    Hi All,
    I am creating a Crystal report on top of SAP ECC 6.0. I am trying to call ABAP functions. But I am not able to see an option to pass any parameters to the function.
    Can you please help with how to pass a parameter to a ABAP function?
    Thanks
    Chetan

    Hi there,
    we thought we found the problem. But the ABAP function is now RFC compatible and i still do not see the export parameters of the ABAP function in Crystal.
    Question: The ABAP function does not deliver columns as the result but a table instead. Could this be the problem? Regarding to this we will have to change the output functinality of the ABAP-function to teliver colums instead of a table.
    Thanks for your help,
    regards
    Sebastian

  • How to pass parameters to Responder functions?

    Hi guys,
    Im using AMFPHP, and would like to pass some paramteres to Function in Responder, how can i do that?
    new Responder('success', 'fault'); // I would like to pass few simple parameters to success function.
    Saludos
    marcin

    try following, you may provide the type for event argument in function(event)
    new Responder(function(event):void{actualFunction(evnet,yourParam);}, 'fault');

  • Passing parameters from oracle form to html

    Hello,
    I have an application that requires me to take data from an oracle web form and pass many fields as parameters into an html table.
    Is this possible?

    Hi Rose,
    There is a specific sample form for this kind of actions in the Oracle9i Forms Demos. It is called Save2HTML.
    from the help file: F90Write.Write_HTML Description
    Writes the data from the specified block to a file in HTML format.
    Maybe you can alter the code for your own use.
    succes,
    Mark

  • Passing parameters from oracle form to the outside Environment ??

    i hava an application in
    c:\program files\sms app\sms.exe
    this application can run in command prompt and accepts parameters to send sms to customers
    example of command to send sms from command prompt(cmd) ,
    - i navigate to application path c:\program files\sms app\sms.exe and run command below
    sms.exe /p:+1012121212 /m:"message body goes here" /l /t
    my question is how can i implement a form contains two text box items & one button
    in button press trigger i want code that can pass the textbox1.text to the
    command line application sms.exe /p:textbox1.text in the parameter position which accepts the phone_number like above example
    and pass the textbox2.text to the other parameter in application which accepts message_body with "" _Double caution marks around the message body
    so the final command line will look like this :
    Application_Path\sms.exe /p:+1012121212 /m:"message body goes here" /l /t
    Notes:
    textbox1.text = parameter_data_type = number
    textbox2.text = parameter_data_type = varchar2
    Oracle Developer Suite 10g , OS:Windows 7
    Thanks you very much

    thanks for replay poelger ,
    can y tell me the full command which i'll use ????
    the problem is to escape the "",/ characters ,, so the final result will look like this
    Application_Path\sms.exe /p:+1012121212 /m:"message body goes here" /l /t
    the host needs to check for the operating system??
    Again Thanks..

  • How to pass parameters to a function ?

    I defined successfully a function like
    CREATE OR REPLACE FUNCTION my_func (inparm IN TEST.COL1%TYPE) RETURN NUMBER
    When I try to call this function with
    EXEC my_func 1;
    I am getting an error:
    ORA-06550 resp. PLS-00103 Found "0" when expection of of := . ( @ % ;
    So how to I pass parameter values otherwise?

    SQL> create or replace function my_func(inparm test.c1%type) return number
      2  as
      3  begin
      4    return 1;
      5  end;
      6  /
    Function created.
    SQL> set serveroutput on
    SQL> exec dbms_output.put_line(my_func(1));
    1                                                                              
    PL/SQL procedure successfully completed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Passing parameters to oracle stored procedure in business objects universe

    Hello,
    Wanted to create a web intelligence usind oracle stored procedure.
    Create the  following SP
    create or replace procedure proc_name1
        proc_freq in number,
        proc_cur1 in out sys_refcursor
    as
    begin
        INSERT INTO
                cc    VALUES
                ( 'Frequency Value = ' || proc_freq, SYSDATE) ;
        COMMIT ;   
        --daily
            if(proc_freq = 2) then
            open proc_cur1 for SELECT
                        EVENT_DATE
                    FROM rqm_mapsigng_dly_stats;
            end if;
    end;
    tried using the above SP in universe, it is needed to pass the parameter for proc_freq, when i pass value 2 , in oracle it is passed as 0(is being traced in rqm_checkpoint  table)
    Hence the table cannot be inserted in the universe.
    Can anyone tell why the value is not being passed correctly

    I believe when you're doing it with an insert, you're saying "execute this insert statement a bunch of times, here's all the values in advance", which is different than passing an array to a stored procedure where you want it to execute once.
    Oracle's ODBC driver doesnt support Associative Arrays (aka index-by tables).
    Hope it helps,
    Greg

  • Passing parameters to the function in doCodeEx

    Hi,
    I am trying to override an existing Action where the JAVA funtion takes a string parameter E.g:
    3:performThisAction:idcService=MyService::
    In the above example, the funtion "performThisAction" takes "idcService=MyService" as a parameter. I want to override "performThisAction" method.
    The problem is that in my custom JAVA method where I am overriding this Action, I want to append some more text to the parameter and call "doCodeEx" function to call the "parent" method and pass this modified parameter. I am not sure how can I pass that parameter. The example code snippet is:
    void performThisAction(String strMyParameter)
    strMyParameter = strMyParameter + "AppendSomeMoreTextToIt";
    // Not sure how to pass "strMyParameter" into "performThisAction"
    doCodeEx("performThisAction", this);
    Any help would be greatly appreciated.
    Regards

    Probably this data is stored in the binder? Try printing the m_binder variable to see what's in there. You can change things with the putLocal() method for example.
    Stijn

  • Form Personalization - Custom Function - How to pass parameters?

    Hi,
    My requirement is to call a custom mod pl/sql program (html page) from purchasing when the "approve" button is pressed. I have it working, but don't know how to pass parameters to my function.
    I have my function defined and registered. In the definition under "Web HTML" tab, I have my pl/sql procedure call under "HTML Call". Where do the parameters go?
    On the customization of form POXPOEPO, I am using Builtin - Launch a function. I want to pass the po_header_id, so under "Parameters", I did "Insert Item Value" of :PO_HEADERS.PO_HEADER_ID
    My custom HMTL page is popping up, but the parameter is not being passed. Is there something in the Function Definition where I can define the incoming paramaters?
    Thanks.
    Paul

    Hi paul;
    There are many usefull link avaliable if you googling
    http://www.google.com.tr/#hl=tr&biw=1259&bih=793&&sa=X&ei=4wxQTZmYEISRswaNktWSDQ&ved=0CC4QBSgA&q=How+to+pass+parameters%2Bform+personalization&spell=1&fp=64d53dfd7a69225a
    Regard
    Helios

  • Form personalization - new custom function - how to pass parameters?

    Hi,
    My requirement is to call a custom mod pl/sql program (html page) from purchasing when the "approve" button is pressed. I have it working, but don't know how to pass parameters to my function.
    I have my function defined and registered. In the definition under "Web HTML" tab, I have my pl/sql procedure call under "HTML Call". Where do the parameters go?
    On the customization of form POXPOEPO, I am using Builtin - Launch a function. I want to pass the po_header_id, so under "Parameters", I did "Insert Item Value" of :PO_HEADERS.PO_HEADER_ID
    My custom HMTL page is popping up, but the parameter is not being passed. Is there something in the Function Definition where I can define the incoming paramaters?
    Thanks.
    Paul

    Post your question in below forum:
    General EBS Discussion
    -Anand

  • Calling a function and passing parameters via Variables

    I've got an XML file that is loading in data and is calling functions.
    I've figured out how to call the methods from classes with variables set from the XML file:
    var functionToCall:String = xml.functions.func[0].to_fire.toString();
    myClass[functionToCall]();
    This calls the function perfectly.
    I was wondering if there is anyway to pass parameters into the function as well through variables.  Some functions may have no parameters, some functions could have 5... so the xml could be like this:
    <functions>
       <func>
        <to_fire>function1</to_fire>
        <param>
         <value>true</value>
         <type>Boolean</type> <!-- Must be set to Boolean, String or Number -->
        </param>
       </func>
       <func>
        <to_fire>function2</to_fire>
        <param/>
       </func>
       <func>
        <to_fire>function3</to_fire>
        <param>
         <value>false</value>
         <type>Boolean</type> <!-- Must be set to Boolean, String or Number -->
        </param>
        <param>
         <value>My String Value</value>
         <type>String</type> <!-- Must be set to Boolean, String or Number -->
        </param>
        <param>
         <value>10</value>
         <type>Number</type> <!-- Must be set to Boolean, String or Number -->
        </param>
       </func>
    </functions>
    whats the best way to set something like this up?

    how would I set something like that up?
    in the class:
    public function myFunction(_param1:String, _param2:Number):void {
    then to call it, would ParamTypes be cast as an array or object or something?
    var functionVariable:String = "myFunction";
    myClass[functionVariable](??);
    Or do I structure the XML file in some way to pass in the information?

Maybe you are looking for

  • ?iphone 4  wont turn on after ios update

    Hi folks, I updated my iphone 4 with the ios5 or 6 update, and when it powercycled it would not turn back on. when I try to turn it on, i get the standard apple icon, then a usb symbol will appear with an arrow above it, and the i tunes symbol above

  • Flex chart how to put distance between x-axis data

    hello i am using flex chart line series and column series. i want to display 100 data points, with different dates along the x-axis, but i don't want all 100 points to be displayed at the same time as the x-axis dates will not be readable. i want to

  • Java EE 5 Tools Bundle download, XP Pro only?

    Hi, I was going to download the "Java EE 5 Tools Bundle" from http://java.sun.com/javaee/downloads/index.jsp on an XP home machine here. However, when I get to the download page I see the OS details for Winodws are 2000 SP4/Windows XP Professional SP

  • Session trace files not generated

    Hai all, Am tracing a session as follows : EXEC DBMS_SUPPORT.start_trace_in_session(sid=>2166, serial=>30629, waits=>TRUE, binds=>FALSE); EXEC DBMS_SUPPORT.stop_trace_in_session(sid=>2166, serial=>30629); but,no trace files are getting generated ?..

  • Apple Remote Desktop 3.2.1 Connection failed and Macbooks

    Hi All. Anyone see this where you can't control/observe into a Macbook? I'm able to copy files and update the ARD software, but I get the "Connection failed" message when trying to control/observe. I went through the "Removing ARD" process and re-ins