Search Method by more one parameter

Hi All,
I am trying to use search method (LOV) which has three parameters..
How can let the user search by one parameter or two or all..

Are you asking how to write the SQL for the VO for this?
How about:
Where field1=nvl(:p1,field1)
and field2=nvl(:p2,field2)....

Similar Messages

  • [CS3] Script method in a plug-in code: More than one parameter?

    Hello!
    I am writing a scriptable plug-in. I want to use a script method with two parameters. But odfrz is only accepting one parameter.
    This accepts odfrz:
    Event
    kImportCandleChartEventScriptElement,
    e_ExportData,
    "import data",
    "Load a candle chart from comma separated file",
    VoidType,
    c_Param1, "from", "A file to import candle data", StringType, kRequired,
    This not:
    Event
    kImportCandleChartEventScriptElement,
    e_ExportData,
    "import data",
    "Load a candle chart from comma separated file",
    VoidType,
    c_Param1, "from", "A file to import candle data", StringType, kRequired,
    c_Param2, "from", "A file to import candle data", StringType, kRequired,
    What do I wrong?
    Alois Blaimer

    Try declaring both parameters within the same curly braces.
    Event
    kImportCandleChartEventScriptElement,
    e_ExportData,
    "import data",
    "Load a candle chart from comma separated file",
    VoidType,
    c_Param1, "from", "A file to import candle data", StringType, kRequired,
    c_Param2, "from", "A file to import candle data", StringType, kRequired,
    - Amit Gupta
    InDesign Consultant
    www.metadesignsolutions.com

  • Error using JAX-WS to consume a WS that has more than one parameter

    I am trying to create a web service proxy in JDeveloper using JAX-WS for an OAM web service from a WSDL (identity/oblix/WebServices/CompositeWebServices/WSDL/um_view_interface.wsdl). I received the following error when I try to run the proxy:
    Exception in thread "main" com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: SEI test.profile.OblixIDXMLPortType has method oblixIDXMLUmView annotated as BARE but it has more than one parameter bound to body. This is invalid. Please annotate the method with annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
    at com.sun.xml.ws.model.RuntimeModeler.validateDocBare(RuntimeModeler.java:1267)
    at com.sun.xml.ws.model.RuntimeModeler.processDocBareMethod(RuntimeModeler.java:1256)
    at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:628)
    at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:416)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:267)
    at com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel(WSServiceDelegate.java:715)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.buildRuntimeModel(WLSProvider.java:427)
    at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:703)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:347)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:409)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:330)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:312)
    at javax.xml.ws.Service.getPort(Service.java:92)
    at test.profile.OblixIDXMLService.getOblixIDXMLPort(OblixIDXMLService.java:79)
    at test.profile.OblixIDXMLPortClient.main(OblixIDXMLPortClient.java:23)
    Process exited with exit code 1.
    It seems like the OAM web service (um_view_interface.wsdl) is not WS-I BP 1.1 compliant. It expects two elements under the body. WS-I BP 1.1 specifies that there should be only one child in the body of the element.
    The expected request body would look like this, there are two elements under the body:
    <soapenv:Body>
    <authentication xmlns="http://www.oblix.com/">
    <login>loginname</login>
    <password>pass</password>
    <domain>dc=test,dc=org</domain>
    </authentication>
    <request application="userservcenter" function="view" mode="dataonly" version="NPWSDL1.0" xmlns="http://www.oblix.com/OblixXMLLocalSchema">
    <params xmlns="">
    <ns1:uid xmlns:ns1="http://www.oblix.com/">cn=tester,cn=Users,dc=test,dc=org</ns1:uid>
    </params>
    </request>
    </soapenv:Body>
    Has anyone encountered the similar problem? Is there a solution to this problem?
    Your help is appreciated!

    Can u pls share ur solution if u have found a way 2 create a web service with 2 ports.I have not yet found a solution so far and nobody reacted to all my posts in the different fourms. It seems nobody is implementing web services with two ports using the EJB annotations technology.

  • How to pass more than one parameter using common...

    Hi,
    I am using ODP.NET with my 2005 VB
    I want to create function from where I can pass more than one parameter to execute SP, or query just like i created for SQL SERVER as below
    Public shared Function CreateParameter(ByVal paramname As String, ByVal paramvalue As Object) As DbParameter
    Dim param As DbParameter
    param = New SqlParameter
    param.ParameterName = paramname
    param.Value = paramvalue
    Return param
    End Function
    Public Shared Function ExecuteQuery(ByVal sql As String, ByVal commtype As CommandType, ByVal ParamArray parameter As DbParameter())
    Dim cmd As DbCommand = New SqlCommand()
    cmd.Connection = OpenConnection()
    cmd.CommandType = commtype
    cmd.CommandText = sql
    cmd.Parameters.AddRange(parameter)
    Dim RetVal As Integer = cmd.ExecuteNonQuery()
    Return RetVal
    End Function
    specially part is in bold to be converted
    I tried like but oracleCommand.parameters doesnt support AddRange
    please help me out
    Regards

    Hello,
    I used the following way:
    pCommand.CommandText = "Update " + sDataTable + " set "
    + sColumnName + " = :1 ";
    pCommand.Parameters.Add("ValueToDb",
    this.DefaultDbType,
    this.m_Value,
    System.Data.ParameterDirection.Input);
    Of course, you can add :2,... to your command text, too.
    The way back is:
    sEndOfTheClause += " RETURNING " + sDataTable + "." + sColName + " INTO :iNewValue";
    pCommand.CommandText = ... + sEndOfTheClause;
    pCommand.Parameters.Add("iNewValue", this.DefaultDbType,
    ParameterDirection.Output);
    bool bReturn = (pCommand.ExecuteNonQuery() != 0);
    if ((bReturn == true) && (pCommand.Parameters.Count > 0))
    this.Value = DataService.Convert<DATA_TYPE>(pCommand.Parameters[0].Value);
    ....

  • How to pass more than one parameter

    Hello,
    This is my code.
    How to pass more than one parameter:
    SELECT:responsibility_name responsibility_name,
    LPAD(' ', 6*(LEVEL-1))
      || menu_entry.entry_sequence sequence ,
      LPAD(' ', 6*(LEVEL-1))
      || menu.user_menu_name SubMenu_Description ,
      LPAD(' ', 6*(LEVEL-1))
      || func.user_function_name Function_Description ,
      LPAD(' ', 6*(LEVEL-1))
      || menu_entry.prompt prompt
      ,menu.menu_id ,
      func.function_id
      --menu_entry.grant_flag Grant_Flag ,
      --DECODE( menu_entry.sub_menu_id , NULL, 'FUNCTION' , DECODE( menu_entry.function_id , NULL, 'SUBMENU' , 'BOTH') ) Type
    FROM fnd_menu_entries_vl menu_entry ,
      fnd_menus_tl menu ,
      fnd_form_functions_tl func
    WHERE menu_entry.sub_menu_id    = menu.menu_id(+)
    AND menu_entry.function_id      = func.function_id(+)
    AND MENU.LANGUAGE(+) = 'US'
    AND FUNC.LANGUAGE(+) = 'US'
    --AND func.user_function_name LIKE '%Primary Care Providers%'
    AND grant_flag                  = 'Y'
      START WITH menu_entry.menu_id =
      (SELECT menu2.menu_id
      FROM fnd_menus_tl menu2,apps.fnd_responsibility_vl resp
      WHERE menu2.menu_id=resp.menu_id
      and resp.responsibility_name= :responsibility_name
      --and menu2.user_menu_name = ('ATCO HR INQ USER'
      AND LANGUAGE = 'US'
      CONNECT BY MENU_ENTRY.MENU_ID = PRIOR MENU_ENTRY.SUB_MENU_ID
       and menu_entry.function_id not in (select func.function_id
                                       from --fnd_form_functions_vl fnc,
                                       apps.fnd_resp_functions exc,
                                       apps.fnd_responsibility_vl res
                                      where func.function_id = exc.action_id
                                      and res.responsibility_name =:responsibility_name
                                      and res.responsibility_id=exc.responsibility_id)
      and menu_entry.sub_menu_id  not in (select menu.menu_id
                                       from --fnd_menus_vl imn,
                                       apps.fnd_resp_functions exc,
                                       apps.fnd_responsibility_vl res
                                       where menu.menu_id = exc.action_id
                                       and res.responsibility_name =:responsibility_name
                                      and res.responsibility_id=exc.responsibility_id)
    ORDER SIBLINGS BY menu_entry.entry_sequence;
    Thank you for your help
    Shuishenming

    Hi, Ming,
    One way is to put the "parameters" in a table, and join to that table in your query.  If you make it a Global Temporary Table, then multiple sessions can run the query at the same time, and each can be seeing different responsibilities.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.  Since this problem involves parameters, you should give a couple of different sets of parameters, and the results you want from the same sample data for each set.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to send more than one parameter from FORM to REPORT?

    Dear all,
    i can send one parameter from FORM to REPORT. but when i send more than one parameter it gives error: frm 41214 unable to run report.
    here is the code i think the error is in the following line of procedure:
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_date_from='||v_date_from||'p_date_to='||v_date_to);
    where to place the parameters and is there any space is required?
    Thanks
    Muhammad Nadeem

    Dear Saeed Iqbal,
    thanks for you reply.
    dear i am using Form 10g run_product is not supported in this version.
    i am using RUN_REPORT_OBJECT.
    PROCEDURE rep_gl_ledger IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    v_date_from date;
    v_date_to date;
    v_detail_id_from varchar2(100);
    v_detail_id_to varchar2(100);
    v_voucher_type varchar2(100);
    --req_no char(17);
    BEGIN
    v_date_from :=      :ledger_para.p_date_from;
    v_date_to :=      :ledger_para.p_date_to;
    v_detail_id_from :=      :ledger_para.p_detail_id_from;
    v_detail_id_to :=      :ledger_para.p_detail_id_to;
    v_voucher_type :=      :ledger_para.p_voucher_type;
    repid := find_report_object('gl_ledger');
    --repid := find_report_object('REPORT80');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_online_FRHome');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_date_from='||v_date_from||'p_date_to='||v_date_to);
    --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /* Display report in the browser */
    WEB.SHOW_DOCUMENT('http://'||:GLOBAL.G_IP||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?','_blank');
    ELSE
         message('Error when running report');
    END IF;
    END;
    Regards:
    Muhammad Nadeem

  • Use of layout when more than one parameter - Error Missing Parameter Values

    Hi,
    Is it possible to use a crystal report which has more than one parameter as the layout for the bill of materials report.
    I have 3 parameters
           1. DocKey@       The Bill of Materials to be printed
           2. Number of levels to be printed
           3. type of levels to print.
    When I try to print it gives me the error Missing Parameter Values.
    I have tried changing the DocKey@ to CodeKey@ but the same error.
    Does anyone now where to find a list of these tokens?
    Thanks
    Chris

    I looked at the crystal report conversion to try to find what parameters it used and found none.
    I have managed to create and use a crystal report to replace the production order using DocKey@ as the parameter.  This works within SAP.  However I have converted the system production order to crystal reports and from the converted report I cannot see any parameters at all.
    How and where can you find out what paramters you need to use to replace any PLD report?  Several reports have multiple selection criteria before the report prints.  How can you find out what their tokens are called?  I am starting to pull my hair out.  I am getting great help from this forum, but do you know any documentation which actually explains this area.
    Thanks
    Chris

  • Can a url referencing an Application Process pass more than one parameter?

    Hello,
    I have a page in an application that uses pl/sql to generate a list of links.
    The purpose of each link is to call another pl/sql procedure which in turn opens/runs a report external to the APEX application (either a call to Oralce Application Server generate live or pull clob stored in database). If the URL calls the pl/sql procedure directly I lose session state and no longer know who the user is. To maintain session state the URL references an APPLICATION_PROCESS. I would like to pass a number of parameters, but can only seem to pass one, using javascript to pass the value to a hidden item which is then accessed in the procedure called by the APPLICATION_PROCESS.
    Can I pass more than one parameter?
    My URL:
    https://<server>/pls/apex/f?p=V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS=MY_PROCESS:NO::P1NAME:P1VALUE
    I could pass all the parameters in P1VALUE and using a special character delimiter break it up again in the javascript, but would prefer not to.
    Thanks for any help,
    Jock

    Did you mean something like this?
    https://<server>/pls/apex/f?p=V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS=MY_PROCESS:NO::P1NAME,P2NAME,P3NAME:P1VALUE,P2VALUE,P3VALUE
    Best Regards, Kostya Proskudin

  • Can a method return more than one value?

    I was studying for my biology exam and I got bored and I started thinking and then I wandered if a method can return more than one value...?
    For example, if I want a method to return a row a column, I make a method that returns an int. But what if I want to return two ints? Or what If I want to return an integer and a string? Is it possible or do I have make two methods, each returning one thing?
    What I always did until now is is I want for example to return a few integers, I would store them in a String and then when I return the string, I parse the numbers out using stringtokenizer... but it doesn't look like the best way... and it's pretty annoying...

    I'm weak on terminology, hence I don't even know what
    AFAIK means...As Far As I Know
    This doesn't really make sense for me. It's more
    efficient to make a whole class just for two
    integers, than having two methods? Efficiency is not the point. The flow is.
    If you have two methods, the caller must be aware of both of them. The other way it's up to the callee.
    Just because the
    two integers are related to each other? Doesn't
    making a class require more memory usage than just
    making two one-line methods?The memory usage is not wholly irrelevant, but there are ways to handle that (caching, inlining, etc.).
    It's a bit hard to counter your point for me, but if you had done a lot of GUI painting stuff, you'd see all those Points, Dimensions, Rectangles, you name it, are quite invaluable.

  • One parameter to search two fields

    Hi
    Is it possible to have one parameter set up to search 2 fields e.g.
    forename+surname like @Name so that the parameter value can search both forename and surname boxes. This is so you can either put in a forename or surname or part of a forename or surname and the correct results will appear.
    Thanks

    Hi dev-13,
    After testing the issue in my local environment, we can try the query which is modified from Olaf like below:
    SELECT *
    FROM myTable
    WHERE FirstName LIKE @Name OR LastName LIKE @Name OR FirstName + ‘ ‘ + LastName LIKE @Name
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Pass more than one parameter to ITS link

    Hi all,
    I have a requirement where I have a report and a tx code assigned to it. Now, I have to open this tx code through ITS, where I have to pass 6 parameters.
    When I am trying to pass more than one parameter to the url, it does not work. It only takes the first parameter.
    How do I resolve this?
    Plzz help!!
    Thanks,
    Debolina

    Hi all,
    I have a requirement where I have a report and a tx code assigned to it. Now, I have to open this tx code through ITS, where I have to pass 6 parameters.
    When I am trying to pass more than one parameter to the url, it does not work. It only takes the first parameter.
    How do I resolve this?
    Plzz help!!
    Thanks,
    Debolina

  • Having problems passing more than one parameter with html:link tag

    Hi guys,
    for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
    For ex: I have in the database User1, User2 and User3. I would like to have a result like:
    User1
    User2
    User3
    Instead of it I have the result like:
    User1
    User2
    User3
    User1
    User2
    User3
    User1
    User2
    User3
    What I�m doing wrong? Could somebody help me please?
    Thank you in advance
    There is a snippet of the code, which I�m using in jsp:
    <code>
    <logic:iterate id="root" name="user">               
                   <%
                        java.util.HashMap users = new java.util.HashMap();
                        params.put("user",root);
                        pageContext.setAttribute("usersName", users);
                   %>
                   <html:link name=" usersName " scope="page" page="/name.do">
                        <logic:iterate id="folder" name="user">
                             <bean:write name="folder" /><br>
                        </logic:iterate>
                   </html:link><br>
                   </logic:iterate>
    </code>

    Suggestion: next time you post code use the "CODE" button to put code tags around it. It formats much nicer that way :-)
    You have a nested loop structure here.
    <logic:iterate id="root" name="user">
      <%
        java.util.HashMap users = new java.util.HashMap();
        params.put("user",root);
        pageContext.setAttribute("usersName", users);
      %>
      <html:link name=" usersName " scope="page" page="/name.do">
        <logic:iterate id="folder" name="user">
          <bean:write name="folder" /><br>
        </logic:iterate>
      </html:link><br>
    </logic:iterate>Both loops iterate over your "user".
    Your first loop loops over each user.
    Then your second loop also loops over each user - hence you get number of users * number of users = 3 groups of 3.
    If you have 4 users, you would have 4 groups of 4.
    I only see you setting one parameter: "usersName" What other parameters do you need to pass?
    At a guess, the inner loop is unnecessary, and you want to write the users name as the text for the link, and also use it as a link parameter.
    <logic:iterate id="root" name="user">
      <%
        java.util.HashMap users = new java.util.HashMap();
        params.put("user",root);
        pageContext.setAttribute("usersName", users);
      %>
      <html:link name="usersName" scope="page" page="/name.do">
          <bean:write name="user" /><br>
      </html:link><br>
    </logic:iterate>

  • Problem with passing more than one parameter to a function

    Dear Experts,
    I have a strange problem while trying to pass parameters to a function in Csharp :
    On my database I have a function like
    function fooo (parameter1 varchar2, parameter2 varchar2) returns number {
    I want to write a csharp function which can execute those functions with varying numbers and types of parameters and returning always a number (see below).
    My problem is, that I always pass only one parameter, the second parameter seems not to reach the database-function although I can see
    all parameters within the OracleCommand structure (dbcommand) in the debugger.
    Can you give me a hint why my function does not work ?
    Best regards,
    Desperately Daniel
    This is my function :
    public override int insertDataSetwithReturn(String ProcCall, ArrayList Parameters, ArrayList ParameterTypes, ArrayList ParameterNames)
    int ReturnValue = 0;
    try {
    //Check for compliance of Arraylength
    if (!(Parameters.Count == ParameterTypes.Count)) {
    //falsche Eingabe !! TODO !
    DBConnection myDBConnection = new DBConnectionORA();
    DBPOOL.getConnection(out myDBConnection);
    OracleConnection myOracleConnection;
    myDBConnection.getConnectionout(out myOracleConnection);
    OracleCommand dbCommand = new OracleCommand(ProcCall, myOracleConnection);
    dbCommand.CommandType = CommandType.StoredProcedure;
    //Nun die Parameter aus der Parameterliste füllen.
    for (int ParameterCounter = 0; ParameterCounter < Parameters.Count; ParameterCounter++)
    OracleParameter myParameter = new OracleParameter();
    myParameter.ParameterName = (String) ParameterNames[ParameterCounter];
    myParameter.OracleDbType = convertdotNetVariableTypesToDBVariableTypes((String) ParameterTypes[ParameterCounter]);
    myParameter.Direction = ParameterDirection.Input;
    myParameter.Value = Parameters[ParameterCounter];
    dbCommand.Parameters.Add(myParameter);
    OracleParameter returnParameter = new OracleParameter();
    returnParameter.ParameterName = "ref_ret";
    returnParameter.OracleDbType = OracleDbType.Int16;
    returnParameter.Direction = ParameterDirection.ReturnValue;
    dbCommand.Parameters.Add(returnParameter);
    dbCommand.ExecuteNonQuery();
    catch (Exception e)
    string MessageStr;
    MessageStr = "Error insertDataSet (DBConnection_ORA insertDataSet). " +
    Environment.NewLine +
    e.Message + "." +
    Environment.NewLine;
    MessageBox.Show(MessageStr, "Error in getArrayListfromProcedureNIP",
    MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
    } //catch
    return ReturnValue;
    Edited by: danielwetzler on Dec 15, 2010 4:23 PM

    Hi,
    Can you give exactly the error generated by the application?
    You can try to reverse the invoking of the parameters. That means, try to invoke the returnValue parameter first and then the others ( IN Parameters ) in the same order that you declared them in your stored procedure.
    in PLSQL you have,
    Create or replace function ( parm1 IN varchar2, parm2 IN varchar2, parm3 OUT varchar2)
    In your application, you must write first:
    bla bla bla parm3.direction=parm3.returnvalue
    and then
    bla bla bla parm1.direction= parm1.input
    bla bla bla parm2.direction= parm2.input
    Hope this helps you
    Walid

  • How to create Search Help using more than 1 table

    Hi all,
    I need to create a search help using more than 1 table.
    Eq:-   Itable1 contains the data and Table2 contains the description of a field.
    In my search help i require A field from Table1 and For the corresponding field description from Table2.

    Hi,
    You can do this with the help of collective search help.
    Collective search helps:- Combination of elementary search helps. When we need to fetch data based on multiple selection criteriau2019s. More than one tables are Selection from multiple tables 
    Steps for creating collective search help.
    1) Enter the search help name and click on create.
    2) Choose Collective search help radio button option as the search help type.
    3) Enter the search help parameters.
    Note that there is no selection method to be entered for a collective search help.
    4) Instead of the selection method, we enter the included search helps for the collective search help.
    5)We need to assign parameters for each of the included search helps.
    6) Complete the parameter assignment by clicking on the push button.
    7) Collective search help offers the user to obtain F4 help using any of the included search helps.
    Hope this will help you:
    Reagrds:
    Alok

  • Java JNDI Search method performance

    Hi,
    My requirement is i have more than 10 unique values for single a attribute. i need to retrieve all 10 records mathing it from LDAP using Java JNDI. But in LDAP there are more than 100 unique record in LDAP i need only 10 record that mathes my values.
    For example the attribute ou in LDAP has 10 unique values. the values could be retrieved in two ways
    Method one: Single Search
    I could use a single search to LDAP with all the 10 values in filters
    and retrieve all the value
    Ex:
    String filter = "(|(ou=1)(ou=2)(ou=3)(ou=4)(ou=5)(ou=6)(ou=7)(ou=8)(ou=9)(ou=10))";
    NamingEnumeration answer = ctx.search(BASE_SEARCH, filter, ctls);
    Method Two: Multiple Search
    I could use a multiple search to LDAP for each value of ou
    Ex:
    String[] inputou ={"ou=1","ou=2","ou=3","ou=4","ou=5","ou=6","ou=7","ou=8","ou=9","ou=10"};
    int inputSize=inputou.length;
    for (int j=0;j<inputSize;j++){
    Attributes matchattribs = new BasicAttributes(true);
    matchattribs.put(new BasicAttribute("ou", inputou[j]));
    NamingEnumeration answer2 = ctx.search(BASE_SEARCH,
                   matchattribs, returnAttrs);
    Query:
    which method is more efficient single search or multiple search.
    is it efficient to have mutiple search based on one specific ou or it is efficient to have single search with multiple ou using OR clause.
    is it less efficient when executing an OR clause and searching with multiple ou.
    Thanks

    Hi,
    They are equivalent becuase second method does not use a filter and for each iteration it creates new mathcing attributtes and executed the search to LDAP. My query is in method one the number of hit to LDAP is one in second method the number of hit to LDAP is 10 based on the number of ou.
    I have checked this program and tracked through System.currentTimeMillis() using more than 1000 ou's. the time taken for method one is 3.2306666 mins and the time taken for method two is 4.61735. so it is clear that method one is more efficient in terms of time but still i need more detail answer because some say using OR clause in filter is less efficient than using ou=1.
    Thanks

Maybe you are looking for

  • How do I clear environment variables in 10.6

    I am having some difficulty in configuring custom paths with my environment variable, environment.plist.  In setting up some of my software, I am trying to configure custom paths so that I can eventually store preferences on the server for all users

  • Problem about InfoObject locked by conversion

    Hi Experts:    Now I am doing BW Upgrade Project and one task is to check all infoobjects consistency (RSUPGRCHECK). And one infoobject 0MATERIAL is inconsistent. 1. I have used RSD1 to repair it, but it failed 2. When I tried to activate manually, b

  • Nokia N900 Update Required

    I'm running Maemo5,Version : 20.2010.36-2 which is a Global Firmware if I haven't mistaken,could someone please help me out with an update to this post a link,email me,inbox me d link.Anything Help will be appreciated thank you Solved! Go to Solution

  • Weird thing when I build project

    Hey guys, I got everything right...everthing well connected, the in the out, the first play, the end links, everything. When I build my movie and open de ISO file with a Blu Ray Player (so I don't spend a disc and I check it first) my main movie star

  • 865 pro and mce 2005

    Has anyone try Microsoft MCE 2005 on the new 865 PRO? Can you use a mce-certified tv card in combination with the "power off" radio function? Is the onboard graphics card 128mb and mce compatible? thanx