Pass the + operator as a parameter

could anybody tell me is there any way that i can pass operators(say +,-,sin,tan) as a parameter to a function

i understand that, everything must be defined.But u
see Math.tan is predefined i just need to callit ,,
now the question is how can i pass a referenceto all
these functions without having to define aseparate
method for each operation.why are you so afraid to define a class or methodto each operation? it don't > cost nuthin'
this is the place where searches for a better code....And defining a method for each operation is that better code!

Similar Messages

  • How can pass the Maximum query String parameter in browser.....?? (URGENT)

    hi Guys,
    i make the application, in which lots of data record with id, whenever i clicked to the SUBMIT button, it wil forwarded to the next page.
    But The problem is.....when we pass the 30 id in a query string parameter that' fine but when it is incresing it is not transfaring to the next page. how i can do this.
    As per the concept EVERY BROWSER HAVING THE LIMITATION..
    hope all of u help me.
    saM

    hey all of you are saying right..!!
    But you know the doPost() method having the limitation, that is
    1 MB. so how can i used this method.
    I know the second way....Like make the hidden control with mantain the session, but i can not use this(Client do't want this).
    so please guys help me........
    saM

  • Passing the xml data as parameter to procedure

    i have table like this
    CREATE TABLE employeeDetails
    EmpName VARCHAR2(50),
    EmpSal INTEGER,
    DeptNo INTEGER,
    JoinDate DATE
    i am getting the i/p data in xml format to extract data i saw the code in net.http://riteshk.blogspot.com/2008/09/sending-xml-string-as-input-parameter.html
    CREATE OR REPLACE PROCEDURE Insert_Employee_Data (ip_emp_details IN XMLTYPE)
    IS
    BEGIN
    FOR i IN
    (SELECT XMLTYPE.EXTRACT (VALUE (a),
    '/Root/EmpName/text()').getstringval
    () AS ipempname,
    XMLTYPE.EXTRACT (VALUE (a), '/Root/EmpSal/text()').getstringval
    () AS ipempsal,
    XMLTYPE.EXTRACT (VALUE (a), '/Root/DeptNo/text()').getstringval
    () AS ipdeptno,
    XMLTYPE.EXTRACT (VALUE (a),
    '/Root/JoinDate/text()'
    ).getstringval () AS ipjoindate
    FROM TABLE (XMLSEQUENCE (ip_emp_details.EXTRACT ('/EmployeeData/Root')
    ) a)
    LOOP
    INSERT INTO EMPLOYEEDETAILS
    (empname, empsal, deptno, joindate
    VALUES (i.ipempname, i.ipempsal, i.ipdeptno, i.ipjoindate
    END LOOP;
    END Insert_Employee_Data;
    i want to test the procedure in database itself.
    how to call the procedure in database to test that procedure by passing sample data.how to pass paratmeters while cakking that procedure in database itself to test that the procedure is working or not
    /

    Thats the way you would test it:
    SQL> create table employeedetails
       empname    varchar2 (50),
       empsal     integer,
       deptno     integer,
       joindate   date
    Table created.
    SQL> create or replace procedure insert_employee_data (ip_emp_details in xmltype)
    is
    begin
       for i
       in (select   xmltype.extract (value (a),
                                     'Root/EmpName/text()').getstringval ()
                       as ipempname,
                    xmltype.extract (value (a),
                                     'Root/EmpSal/text()').getnumberval ()
                       as ipempsal,
                    xmltype.extract (value (a),
                                     'Root/DeptNo/text()').getnumberval ()
                       as ipdeptno,
                    xmltype.extract (value (a),
                                     'Root/JoinDate/text()').getstringval ()
                       as ipjoindate
             from   table(xmlsequence (
                             ip_emp_details.extract ('/EmployeeData/Root')
                          )) a)
       loop
          insert into employeedetails (empname,
                                       empsal,
                                       deptno,
                                       joindate)
            values   (i.ipempname,
                      i.ipempsal,
                      i.ipdeptno,
                      to_date (i.ipjoindate, 'dd-mon-rrrr', 'nls_date_language=english'));
       end loop;
    end insert_employee_data;
    Procedure created.
    SQL> begin
       insert_employee_data(xmltype('<?xml version=''1.0'' encoding=''utf-8'' ?>
    <EmployeeData>
    <Root>
    <EmpName>Ritesh</EmpName>
    <EmpSal>10000</EmpSal>
    <DeptNo>1010</DeptNo>
    <JoinDate>03-Apr-2006</JoinDate>
    </Root>
    <Root>
    <EmpName>Rajiv</EmpName>
    <EmpSal>20000</EmpSal>
    <DeptNo>2020</DeptNo>
    <JoinDate>05-May-2007</JoinDate>
    </Root>
    </EmployeeData>'));
    end;
    PL/SQL procedure successfully completed.
    SQL> select   * from employeedetails
    EMPNAME                  EMPSAL     DEPTNO JOINDATE
    Ritesh                    10000       1010 03.04.06
    Rajiv                     20000       2020 05.05.07
    2 rows selected.Much better and more efficient is of course to completly avoid the loop and just use:
    insert into employeedetails
       select   xmltype.extract (value (a),
                                 'Root/EmpName/text()').getstringval ()
                   as ipempname,
                xmltype.extract (value (a), 'Root/EmpSal/text()').getnumberval ()
                   as ipempsal,
                xmltype.extract (value (a), 'Root/DeptNo/text()').getnumberval ()
                   as ipdeptno,
                to_date (
                   xmltype.extract (value (a),
                                    'Root/JoinDate/text()').getstringval (),
                   'dd-mon-rrrr',
                   'nls_date_language=english'
                   as ipjoindate
         from   table (
                   xmlsequence (ip_emp_details.extract ('/EmployeeData/Root'))
                ) a;
    ....

  • Passing the sequence as a parameter to a procedure.

    I want to use the sequence value in the call to a procedure.
    Something like :
    EXEC sp_Calling(SEQ_PASS.NEXTVAL);
    but this isnt allowed as the parameter declaration is a number.
    Can anyone tell me how I can resolve this.
    plus i dont wanto use a variable like :i
    as want to run this EXEC a couple of hundred times. So i'll have to take the nextval in 'i' before every EXEC statement.
    Is there any preprocessing alternative.
    Thanx.

    You could create a loop outside the procedure, something like :
    SQL> declare
      2     seq_num number;
      3  begin
      4     for i in 1..<N> loop
      5             select <sequence name>.nextval into seq_num from dual;
      6             <procedure name>(seq_num);
      7     end loop;
      8  end;
    SQL>

  • Pass the variable from timeline to one of my classes !?

    Hello !
    The title says it all.
    I need to pass a boolean variable initially set to false to one of my classes called "EasyGame".
    It is than changed to true when one of the function in this class is runned.
    I tried some different ways but had no luck.
    Anyone have an idea ?

    If you instantiate the class in the timeline, you can just call a method in the class - passing the variable as a parameter.
    easyGame.setTimelineVar(myVar);
    And have another method that lets you retrieve the value:
    myVar = easyGame.getTimelineVar();

  • Unable to pass the parameter to other portlet

    Hi,
    I am trying to pass the parameter from one portlet to other portlet using the convention below...
    Example say you have two reports on a page dept and employee. You want to refresh employee report by clicking on
    the dept in the department report in the same page.
    (1) Create the first report based on the query
    SELECT htf.anchor('http://domain/servlet/page?&_pageid=97&_dad=portal_dad&_schema=portal_schema&_mode=3&dept_code='||DEPTNO,DEPTNO) Department,
    dname FROM scott.dept;
    (2) Create a 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) In the the additional pl/sql code section before display page on the 2nd report do this
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    In point (4) I am not getting the value of selected deptno in 'dept_code'. It is always taking the default value as '10'...
    I like to have the quick solution for this so that I can show the demo to my client...
    Thanks in Advance
    Sudheer

    Hi Ali,
    We can add parameterized queries to any TableAdapter (and controls to accept parameter values and execute the query) using the
    Search Criteria Builder Dialog Box. 
    For detail information, please refer to the following article to create a Windows Form to Search Data:
    http://technet.microsoft.com/en-us/library/hbsty6z7.aspx
    In addition, this issue is more related to Windows Form. I would suggest open a new thread in Windows Form forum if you have any more qestions:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
    Regards, 
    Elvis Long
    TechNet Community Support

  • Passing the database name as a PL/SQL procedure parameter

    How do I pass the name of the database as a parameter to a procedure?
    If dbs is the variable name to which I pass the database name as shown in the example,
    CREATE OR REPLACE PROCEDURE Extract_gl_acct_Tbl(dbs varchar2)
    and I use dbs in the code as follows,
    SELECT ACCOUNT,
    SETID
    FROM SYSADM.PS_GL_ACCOUNT_TBL@dbs
    It gives me an error saying 'ORA-04054: database link DBS does not exist'.

    You will need to use dynamic SQL to handle this:
    create or replace ...
    is
    type rc is ref cursor;
    v_rc rc;
    begin
    open v_rc for 'select ... from sysadm.ps_gl_account_tbl@' || dbs;
    fetch v_rc into ... -- some variables
    -- if multiple rows, you'll need to do the fetch in a loop and exit when v_rc%notfound.
    close v_rc;
    end;

  • Web link to pass the parameter to custom web app then update the field

    Hi,
    I have created the web link in service request object to refer Account Object. I want to let user able to select the account from web link then base on the current SR no and account that have created update the record in CRMOD. My question is how to pass the parameter out to my external web app so that they can update my SR correctly?
    Thank you

    Hi Messer,
    I have put in the syntax as below :-
    https://secure-ausomxega.crmondemand.com/OnDemand/user/AssocAccountPopup?mapBC=Service+Request&OACTRL=Account&ophi=PopupNewForm.Account+Id&pfid=PopupNewForm&OMTHD=AssocPopup&OMTGT=PopupSearchList&assocInit=Y&opht=4&OAOBJ=Service+Request&mapField=Account&ophd=PopupNewForm.Account&ophpd=3&disableclear=Y&ophr=AssocAccountPopup&assocval=&ParentType=Edit
    This pop up screen wil let the user to select the account then i will pass the account and the SR to external web app to update back the CRMOD. I am not too sure the above syntax is correct or maybe can you give some example.
    I am new in CRMOD, hope that you can advice on this.
    Thank you,
    SK

  • How to pass the parameter of a stored procedure to iReport

    Hi... i don't know how to pass the parameter of the stored procedure to the iReport.
    In the Report Query, i tried
    1. sp_storedprocedure ' value'
    2. sp_storedprocedure +''''+$P{parameter}+''''+
    3. sp_storedprocedure +$V+$P{parameter}++$F($F is a variable having a value of ' (a single quote))may you enlighten us please? thank you

    For M$ SQL server I find that it only works when U use the fully qualified name...
    e.g. catalod.dbo.my_procedure_name 'variable'
    My full query in the Report Query window is something like this:
    EXEC arc.dbo.jasper_Invoice 1000
    Note that you may find that selecting from VIEWS / TABLES fails for no apparent reason and iReport will prompt you with the usual very unhelpful (we have what we "pay" for) prompt, stating that "The document is empty".
    To work around this issue, where a statement like "SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id=1000" does not work, simply create a PROC, something like:
    CREATE PROC jasper_MyProc (@my_rec_id integer) AS
    SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id= @my_rec_id integer
    ...to wrap your SELECT statement, then call the PROC
    Edited by: Sylinsr on Apr 22, 2008 4:23 PM

  • How to pass the multiplevalue parameter into SSRS by data driven subscription

    Hi All,
    I create a table and show it in the SSRS by table
    EmID Name
    AA1, A
    BB1, C
    CC1, E
    And set one parameter EmID for the user to filter the record and that Parameter Accept multiple values and the type is text.
    And I create a another table for the data-driven subscription to send the report to user by email.
    EmailTitle EmID  EmailComment
    TestEmail  AA1,BB1,CC1    TestComment
    And I set the subscription and set the EmID parameter is from EmID column, then test the subscription, it failed...
    However, when I only put AA1 into the table, then the subscription works well
    EmailTitle EmID  EmailComment
    TestEmail  AA1    TestComment
    So How I can config the above table to support subscription?
    Thanks.

    Hi Bimaster,
    When specify a column for the parameter value in a data-driven subscription, it will be regarded as a single value. So when specify the value "AA1,BB1,CC1" as the parameter value, the subscription will fail.
    The work around for this issue clear the "Allow multiple values" for the report parameter, and then change the filter
    From
    Expression:[ParameterName]
    Operator   :In
    Value         :[@ParameterName]
    To
    Expression:[ParameterName]
    Operator   :In
    Value         :Split(Parameters!ParameterName.Value,",")
    In this case, we can specify a value like "AA1,BB1,CC1" from database to the data-driven subscription. I have tested it on my local host environment, it works fine.
    Regards
    Charlie Liao
    TechNet Community Support

  • Changing the value of a parameter that has been passed into an SSRS 2008 R2 report

    I support 200+ reports that all use stored procedures and have many drill downs with built in URLs.
    I want to do the below to avoid creating a brand new parameter that I will have to add to literally hundreds of places.
    We have what I'll call Param1 that receives a value from the user.  That Param1 is passed to the stored procedure(s) for the report and also embedded in any Action URLs for drill downs to other reports from that report.  All works great.
    Now I have a need to concatenate a string to whatever value they supplied which provides context for the environment in which they are running.  The reason I want to do this instead of creating a new parameter is because I need this in all my reports
    and as stated above I would have to make 100s of changes to make that happen.  If I can figure out a way to concatenate a value to the existing Param1 value I can greatly reduce the number of changes.
    I can't seem to be able to find a way to modify the value on an existing parameter that is passed into the report prior to report execution.
    I get an error when I simply try to concatenate something to the parameter in its Default property.
    I can't find a way to update a parameter value in the Report Code block.  There don't appear to be any methods available on the Parameter Collection to set the value of a parameter.
    Any ideas?
    Thanks!
    Nathan 

    Create a new parameter. Mark it internal, set it's value by expression to:
    =User!UserId+"MyNewValue"
    and pass it to the proc?
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • How to pass the  variable value to reports as a parameter

    hi
    i have facing a problem that i want to pass the value of a variable that i had calculate in a procedure like
    SELECT nvl(BASIC_PAY,0) INTO v_basic FROM EMP WHERE EMP_ID=P_EMP_ID;
    so i want to send the variable value v_basic as a parameter through form to report...and simlarly other variables values which i have calculate in procedure....
    need ur help to solve this problem
    thanks in advance

    it's the exact posting from your last post. Please don't duplicate the postings, so that we can help you in one thread and not so many different threads

  • How can I pass the gt_outtab for cl_salv_table via a form parameter?

    Hello,
    I have put everything displaying the alv into a form routine and want to pass the gt_outtab-table, which contains the data to be displayed, as a table parameter. Then I receice the error CX_SY_DYN_CALL_ILLEGAL_TYPE regardless if it is a typed parameter (the actual structure, table) or untyped parameter.
    Does anyone have an idea, what to do? Of cause refering to a global variable will do, but the readability of the programm I want to have it as a parameter.
    Thank you,
    Peter

    Hi,
    you must use your table as a global object in the program. If you try to pass the values to the subroutine as a parameter with TABLES, then you´re altering the properties of the output table; that´s why you get the exception.
    .... and don´t worry about the readability of your program.

  • How do I pass the exact datetime parameter in a procedure.

    How do I pass the exact datetime parameter in a procedure.
    Hi All,
    I have a datetime problem which is driving me crazy.
    I need pass a datetime field as a parameter in an oracle procedure exactly as below with timestamp.
    Example: '6/01/2005 5:25:24 AM'
    SQL > exec myprod(‘value1’,’value2’,’value3’, to_date('6/01/2005 5:25:24 AM','dd-mm-yyyy hh24:mi:ss'));
    I get an error “INVALID MONTH”
    Next Changed to_date to to_char
    SQL > exec myprod(‘value1’,’value2’,’value3’, to_char('6/01/2005 5:25:24 AM','dd-mm-yyyy hh24:mi:ss'));
    I get a different error, “INVALID NUMBER”
    Next pass the datetime as it is.
    SQL > exec myprod(‘value1’,’value2’,’value3’, '6/01/2005 5:25:24 AM');
    I get an error “INVALID MONTH”
    Here is the my procedure.
    CREATE OR REPLACE PROCEDURE myprod (
    p_value1 varchar2,
    p_value2 varchar2,
    p_value3 varchar2 ,
    p_value4 date )
    IS
    filehandler UTL_FILE.FILE_TYPE;
    va_currentdate DATE;
    BEGIN
    SELECT sysdate
         INTO va_currentdate
    FROM dual;
    END;
    Do you know any solutions for this problem.
    Thanks

    What is your NLS_DATE_FORMAT value?
    There seem to be some implicit data conversions in your arguments.
    SQL> select parameter,value from nls_session_parameters where parameter like '%DATE%';
    PARAMETER                                                    VALUE
    NLS_DATE_FORMAT                                              YYYY-MM-DD HH24:MI:SS
    NLS_DATE_LANGUAGE                                            AMERICAN
    SQL> select to_date('6/01/2005 5:25:24 AM','dd-mm-yyyy hh24:mi:ss') from dual;
    select to_date('6/01/2005 5:25:24 AM','dd-mm-yyyy hh24:mi:ss') from dual
    ERROR at line 1:
    ORA-01830: date format picture ends before converting entire input string
    SQL> select to_date('6/01/2005 5:25:24 AM','dd-mm-yyyy hh:mi:ss am') from dual;
    TO_DATE('6/01/20055
    2005-01-06 05:25:24

  • How to pass the dynamic request parameter value $fieldName:IsSelected for framework folder service FLD_PROPAGATE?

    Hello All,
    I created a WSDL for Framework folder service FLD_PROPAGATE  and FLD_PROPAGATE service has following two required request parameter:
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate
    So, I am facing issue in passing the parameter $fieldName:isSelected.
    I tried to pass the request parameter as mentioned below in SOAP UI request payload but still this is not working and error message is: "Unable to propagate. Please select at least one field to propagate"
    <csx:fSecurityGroup:IsSelected>1</csx:fSecurityGroup:IsSelected>
    <csx:fFolderGUID>C7F5CBB4E54A790E21E18CE378B16EEB</csx:fFolderGUID>
    <csx:fSecurityGroup>Public</csx:fSecurityGroup>
    Could you please suggest for the correct way to pass these parameter values? If anyone have sample WSDL for this service please share?
    Here is the complete service definition:
    FLD_PROPAGATE
    Service that propagates metadata down through the folder structure in Folders.
    Service Class: intradoc.folders.FoldersService
    Location: IdcHomeDir/resources/frameworkfolders_service.htm
    Required Service Parameters
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate

    Hello All,
    I created a WSDL for Framework folder service FLD_PROPAGATE  and FLD_PROPAGATE service has following two required request parameter:
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate
    So, I am facing issue in passing the parameter $fieldName:isSelected.
    I tried to pass the request parameter as mentioned below in SOAP UI request payload but still this is not working and error message is: "Unable to propagate. Please select at least one field to propagate"
    <csx:fSecurityGroup:IsSelected>1</csx:fSecurityGroup:IsSelected>
    <csx:fFolderGUID>C7F5CBB4E54A790E21E18CE378B16EEB</csx:fFolderGUID>
    <csx:fSecurityGroup>Public</csx:fSecurityGroup>
    Could you please suggest for the correct way to pass these parameter values? If anyone have sample WSDL for this service please share?
    Here is the complete service definition:
    FLD_PROPAGATE
    Service that propagates metadata down through the folder structure in Folders.
    Service Class: intradoc.folders.FoldersService
    Location: IdcHomeDir/resources/frameworkfolders_service.htm
    Required Service Parameters
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate

Maybe you are looking for

  • Using colors in ical

    Is it possible to use different colors for different events within a day on ical and/or between days. So far I've only been able to change a color and then it affects the entire calendar. I'd like to use different colors for different events. Thanks

  • Crystal Reports Job Server - Default destinations not available

    Greetings, Currently I'm installing Crystal Reports XI onto a new server. When scheduling reports they are stuck in a 'pending' status which records the following error in the windows event log: Transport System exception for backend plugin DLL type

  • Problems with IISProxy Module (IIS and EP6.0 on different servers)

    Hi I am trying to configure IIS 6, I have followed all the instructions outlined in the document "Installing the IIS Proxy Module" and followed the note 715303. When i try to access the the link http://ep6idc91.***.com I get the under construction ma

  • About:search items In BOM by find

    Dear Sir, From few day we are getting in searching item in BOM through search in CS11 Trans. Suppose i want search an item which is in the above line where my curser in clicked so now the searched item is not found by search commend & if item is belo

  • Cannot copy file: The specified network name is no longer available

    After several tries stretching over weeks or months, I finally solved this problem. Internet sharing and transferring small files worked fine over the wireless network, but files over about 50 - 100 MB would fail giving the message "Cannot copy : The