Dynamic Search

Hello, I have to make a search form and I want to return the columns from a table in a selectOneChoice, but fails to show. I use JDeveloeper 11.1.1.2.0. And one more query: how to send a parameters of my search form to the next function
public void buscarClientes(String columna, String texto){
ClienteVOImpl vistaCliente = this.getClienteVO();
int numeroColumnas = vistaCliente.getAttributeDefs().length;
AttributeDef[] attrDefs = vistaCliente.getAttributeDefs();
for(int i=0; i<numeroColumnas; i++){
//System.out.println("columnas:"+attrDefs.getName());
if(attrDefs[i].getName().equals(columna)){
if(texto != null){
vistaCliente.searchView(columna, texto);
this.getDBTransaction().commit();
The code of my page is
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:pageTemplate viewId="/mytemplate1.jspx" id="pt1">
<f:facet name="general">
<af:toolbar id="t1">
<af:selectOneChoice label="Buscar" id="soc1">
<af:forEach var="attrName" items="#{bindings.ClienteVO.attributeDefs}">
<!-- Here is my problem, I can not display the columns from a table -->
<f:selectItem id="si1" itemValue="#{attrName}" itemLabel="#{bindings.ClienteVO.labels[bindings.ClienteVO.attributeNames]}"/>
</af:forEach>
</af:selectOneChoice>
<af:inputText id="it1"/>
</af:toolbar>
</f:facet>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
</jsp:root>
Thanks for the help

Did you consider using the built in quickQuery component? If I understand what you are trying to achieve it looks quite similar and would be much easier to implement.
demo:
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/quickQuery.jspx
details:
http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_search_bc.htm#CIHEIJBI

Similar Messages

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          exceptions
            parameter_error = 1
            no_values_found = 2
            others          = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

  • Dynamic Search Object for Payment Terms

    Hi,
    May i know the Dynamic Search Object for Payment Terms. I have to create a Advanced Search Page with Payment terms. I could not find the dynamic search object for Payment terms. Any help is appreciated
    Thank you.
    -Siddharth

    Hi,
      The search help for the payment terms is not coming from the DDIC search help..
      It is coded in the process on value-request event...
      The function module FI_F4_ZTERM is called for this..you have to change this function module in case if you want the values from a different table..
      OR do implicit enhancement in the subroutine FORM HELP_ZTERM in the include MF02DFH0 to call your search help instead of the function module FI_F4_ZTERM ..And do the same for the sales order also..
    Thanks
    Naren

  • Dynamic Search-help in Selection Screen Parameter

    Hi,
    Please can you provide some solution for the below requirements.
    I have 2 fields ( Organization channel and Team ) in my selection screen. Under one organization channel there can be many teams.
    And I am trying a  dynamic search help on both the fields using event AT selection-screen on Value request and
    FM 'F4IF_INT_TABLE_VALUE_REQUEST'.
    But I am facing the below issue .
    First I am giving some values in field 'Organization channel' . Then I am clicking on F4 button on my  2nd field 'Team' .
    and in debugging mode under the event  'At selection-screen on value request', Select option SO_Team is blank.
    The value provided in the Organiozation channel is not being captured in SO_TEAM-Low
    Please have a look on the below codes.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_team-low .
    if not  so_orgchannel-low  is  initial.      "Here so_orgchannel-low  value is coming as Zeros.
    select  * from HRP1001 into table GT_HRP1001
              where objid = so_orgchannel-low.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
                  retfield        = 'ORGID'
                  value_org       = 'S'
                  dynpprog        = 'ZTEST'
                  dynpnr          = '1000'
             TABLES
                  value_tab       = gt_hrp1001
             EXCEPTIONS
                  parameter_error = 1
                  no_values_found = 2
                  OTHERS          = 3.

    Hi,
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_team-low .
    "Add This  Begin
      CLEAR t_dynpfields.
      REFRESH t_dynpfields.
      t_dynpfields-fieldname  = 'SO_ORGCHANNEL-LOW'.
      APPEND t_dynpfields.
      w_repid = sy-repid.
    * reading Screen variables and Values
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname     = w_repid
                dynumb     = sy-dynnr
           TABLES
                dynpfields = t_dynpfields
           EXCEPTIONS
                OTHERS.
      READ TABLE t_dynpfields INDEX 1.
      so_orgchannel-low = t_dynpfields-fieldvalue.
    "Add this End
    if not  so_orgchannel-low  is  initial.      "Your code is here
    select  * from HRP1001 into table GT_HRP1001
               where objid = so_orgchannel-low.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
              EXPORTING
                   retfield        = 'ORGID'
                   value_org       = 'S'
                   dynpprog        = 'ZTEST'
                   dynpnr          = '1000'
              TABLES
                   value_tab       = gt_hrp1001
              EXCEPTIONS
                   parameter_error = 1
                   no_values_found = 2
                   OTHERS          = 3.
    Regards,
    Prabhudas

  • How to make dynamic search items in a report?

    Hi all,
    I have two questions.
    1. How to make dynamic search (i.e without GO button) field above report to provide dynamic search by words in one field of report query?
    2. How to make similar multiply dynamic search fields on report to provide individual search by selected fields of report with refine capability (i.e any search conditions in different fields must work together as complex WHERE clause)
    Thanks in advance

    hey yuri--
    if i'm understanding your questions correctly, the easiest way to achieve the functionality you're after is to have your query criteria fields submit the page when values are entered/selected. the page should then branch back to itself using the submitted criteria in the query. because you're asking about dynamically adding in your where clause predicates, you should consider using a report region of type "SQL Query (Pl/sql Function Body Returning SQL Query)". that way you can use pl/sql to piece together your query based on the provided criteria.
    so the part of your question i'm not sure of is when your page should submit itself ("without a GO button" as you said). for your first question, it seems to be a simple matter of javascript. you want users to be able to enter search criteria into a field and have that criteria be using in the report. to facilitate that we have a few self-submitting item types such as "SelectList with Submit" and "Text Field (always submits page when Enter pressed)". for your second question, it seems that you should have a Go button for the user to indicate he's done entering in his query criteria. anyhow, that's up to you, i suppose. hopefully this response will give you the concepts you need to implement this as you'd like.
    regards,
    raj
    ps-after re-reading your post, i now realize there's a chance that you wanted users to not have to submit the page at all when filtering their result sets. if that's the case, you'd have to use javascript for that cumbersome feat. google would be a good place to go for that code.

  • Enhancing BtQact Dynamic Search

    Hi All,
    I want to know the class name for BTQAct which is triggered while getting the query result.
    Also it will be needful if the database table name I can get from where all the Business Object and corresponding Implementation class names are maintained.
    Thanks in Adv.

    Hello there.
    Let me explain how to trace the same.
    1. Lets take an example of dynamic search object in the model used in your component. BTQAct.
      Select the name of Model used in your component say ABC( Can be found in Runtime repository browser of Component in Models)
    2. Go To SPRO-> SAP Reference IMG-> CRM-> Cross Applicatiaon components-> Generic Interaction Layer->Basic Settings
    3. Select the option of Component Set definition and search for ABC here found in Step1.
    4. In this check the name of Components assigned responsible for Activities.
    5. Check in the same customizing the Component name thus picked in Step4 and then you will find three entries corresponding one component.
    Object Table   : Defines all objects in a component with their type ( eg search, root,child etc)
    Model Table: Defines relationship table --All relationships available amongst the objects of the component with the possible cardinality.
    IL class: This class will have all basic methods which gets called whenever any operation is performed on WEB UI of even on GENIL_BOL_BROWSER.
    I think this class name is the class you are looking for.
    Please reply if this helps.
    Best Regards,
    Vinamra.

  • Is it possible to enhance the dynamic search with Option field with custom

    Hi All,
    is it possible to enhance dynamic search with OPTION parameter like Equals to , Between etc, instead of these are we able to add our own? If yes, then which are steps need to perform.
    Thanking you.
    Regards,
    VjMHyd

    Just to test is this possible i wrote a sample program
    data: lr_dquery type REF TO cl_crm_bol_dquery_service.
    data: lv_status TYPE CRMT_PROCESS_DESCRIPTION.
    data: mv_bol_core type REF TO cl_crm_bol_core,
            lr_result_obj type ref to if_bol_bo_col,
            lv_opp_id type string,
            lr_entity type ref to cl_crm_bol_entity.
    MV_BOL_CORE = CL_CRM_BOL_CORE=>GET_INSTANCE( ).
    MV_BOL_CORE->START_UP( 'BT' ).
    *data: lv_opp_id type string.
    lr_dquery = cl_crm_bol_dquery_service=>GET_INSTANCE( 'BTQOpp'  ).
    if lr_dquery is bound.
    *   prepare the selection paramters
      lr_dquery->add_selection_param(
        exporting
          iv_attr_name =  'OBJECT_ID'   " Component name
          iv_sign      =   'I'  " Inclusion/exclusion criterion SIGN for range tables
          iv_option    =   'PI'  " Selection operator OPTION for range tables
          iv_low       =   lv_opp_id
    *   Get the dynamic result object and read the opportunity status from there
      lr_result_obj ?= lr_dquery->get_query_result( ).
      lr_entity ?= lr_result_obj->get_first( ).
      if lr_entity is bound.
        lr_entity->get_property_as_value( exporting iv_attr_name = 'STATUS'
                                    importing ev_result = lv_status ).
      endif.
    endif.
    BREAK-POINT.
    No syntax error but junk values returned as I had not written the logic for retrieval based on this operator. This means that if you add the selection_param to the dynamic query and then handle that same thing in the GENIL class for the component then you would be able to retrieve the values based on this.
    On the UI , you would be retrieving all the operators for the parameters. There for that particular field you have to add the new operator for your case. And this would be send to the Dquery class and added as a selection param. When the query is executed, if the genil class has been updated to handle this parameter, you should be able to retrieve the results.
    Regards
    Kavindra
    Edited by: joshi_kavindra on Jan 19, 2012 2:45 PM
    Edited by: joshi_kavindra on Jan 19, 2012 2:53 PM

  • Dynamic Search - Upper/lower case of Search Criteria

    Hi,
    If I enter a search criterion in lower case in the text box field of my dynamic search, the string gets automatically converted to upper case when I press 'Search'. Is there any way to retain the case of the search parameter value?

    Hi,
    the data types for the input fields of the search mask are of type STRING. There is no conversion done there.
    If the case changes it has to be done in the applicatgion logic of the view controller, most probably the EH_ONSEARCH().
    Another hot option is the data element that is used for the parameter. Does it allow lower case values?
    cheers Carsten

  • What incorrect syntax found in this query for dynamic search

    I make this stored procedure for dynamic search by date from date to employee no employee name
    but it give me error why
    Create proc CollectsearchData15
    @StartDate datetime,
    @EndDate datetime,
    @EmployeeID NVARCHAR(50),
    @EmployeeName nvarchar(50)
    as
    Begin
    DECLARE @SQLQuery as nvarchar(max)
    SET @SQLQuery = N'SELECT * from ViewEmployeeTest Where (1=1)'
    If @StartDate Is Not Null
    SET @SQLQuery = @SQLQuery + N' And (joindate >= @StartDate)'
    If @EndDate Is Not Null
    SET @SQLQuery = @SQLQuery + N' And (joindate <= @EndDate)'
    If @EmployeeID Is Not Null And @EmployeeID != ''
    SET @SQLQuery = @SQLQuery + N' And (EmployeeID = @EmployeeID)'
    If @EmployeeName Is Not Null And @EmployeeName != ''
    SET @SQLQuery = @SQLQuery + N' And (DriverName Like ''%'' + @EmployeeName + ''%'')'
    Print @SQLQuery;
    Exec sp_executesql @SQLQuery,
    N'@StartDate datetime, @EndDate datetime, @EmployeeID nvarchar(50), @EmployeeName nvarchar(50)',
    @StartDate, @EndDate, @EmployeeID, @EmployeeName;
    but it give me this error why
    Msg 102, Level 15, State 1, Procedure CollectsearchData15, Line 28
    Incorrect syntax near ';'.

    I think you are missing an END. Perhaps with no dynamic sql :
    SELECT * from ViewEmployeeTest
    WHERE
    (joindate >= @StartDate OR @StartDate IS NULL)
    AND
    (joindate <= @EndDate OR @EndDate IS NULL)
    AND
    (EmployeeID = @EmployeeID OR @EmployeeID IS NULL)
    AND
    (DriverName Like '%' + @EmployeeName + '%' OR @EmployeeName IS NULL)
    Thanks and regards, Rishabh K
    Please keep in mind that this might cause proc to generate bad plans
    http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Dynamic Search/Results on same page - HELP!

    Here is my situation; any help will be GREATLY
    appreciated!!!!!
    - I have dynamic content using PHP/MySQL
    - I am attempting to create a record insertion page
    - within this page, I need the ability to querry the
    database and display the results on the same page and then use the
    results as a part of the record insertion/creation.
    So - I have many students, who are assigned a unique student
    number and I am creating a reservation system. The person entering
    the reservation will enter in the student id (as opposed to their
    name) and hit a 'find' button and the result, if found, will be
    displayed in a dynamic text field. Then, they fill out the rest of
    the info and submit the reservation which gets stored into the
    database.
    I have played around for a few hours now because I have no
    idea how to do this and have just been using trial and error. Can
    anyone PLEASE point me in the right direction?
    Thanks a bunch!!!
    Mav

    I agree, this approach does not seem secure.
    Seems like I could keep trying different ID's until I found
    one and then
    enter reservations under someone else's name and cause havoc
    on the system.
    "David Powers" <[email protected]> wrote in message
    news:eqhvig$h0t$[email protected]..
    > mavrickjcs wrote:
    >> So - I have many students, who are assigned a unique
    student number and
    >> I am creating a reservation system. The person
    entering the reservation
    >> will enter in the student id (as opposed to their
    name) and hit a 'find'
    >> button and the result, if found, will be displayed
    in a dynamic text
    >> field. Then, they fill out the rest of the info and
    submit the
    >> reservation which gets stored into the database.
    >
    > I'm not convinced that your approach is the best way,
    but it's quite
    > simple to do what you want.
    >
    > Create two forms on the page: one for searching for the
    details, the
    > second for creating the reservation. Use a conditional
    statement to hide
    > the second form until the first form has been submitted.
    You'll need to do
    > this by hand, but it's very easy.
    >
    > if (isset($row_recordsetName)) {
    > // this is where the second form goes
    > }
    >
    > Replace "recordsetName" with the actual name of the
    recordset.
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • Dynamic Search in TREX

    Hello All,
    In Index Administration we have created certain indexes for certain Knowledge Management folders which index the documents in those folders and make it available in Search.
    We have also scheduled these indexes to run after every 2 hrs so that once the document is added in the KM folder it is available in search atleast after 2 hrs.
    We are interested in making this search dynamic. i.e as soon as we add documents in these folders they should be available for search.
    Is this possible?? If yes let me know the way to do it.
    Thanks in Advance.
    Yatin Prabhu

    Hi Yatin,
    when the respective is event based, this should happen by default. So changed documents are indexed automatically within a predefined time periode.
    Maybe you like to enhance this process by increasing the TREX flush time (fefaul 30 min).
    System Administration - > Monitoring -> Knowledge Management -> TREX Monitor -> Edit Queue Paremters
    Select your index and set the Scheduler Time to a requested update time (Eg All-0:05).
    But keep in mind that this might become performance intensive.
    Regards Matthias Röbig-Landau

  • How to put dynamic search help in web dynpro ABAP.

    Hi,
    I have a table element with two columns in my web dynpro ABAP.Both the columns are F4 helps.
    Based on the value of the first column,the F4 help of second column must change dynamically.Kindly tell me how to do this.
    Thanks & Regards,
    Raji.

    Hi ,
    Use this code to dynamically assign search help and to deactivate search helps.
    data lo_nd_info type if_wd_context_node_info.
    lo_nd_info = lo_nd->get_node_info( ).
    CALL METHOD lo_nd_info->set_attribute_value_help
    EXPORTING
    name = 'ATTR1' " Your attribute Name
    value_help_mode = '121' " Valid value help mode
    value_help = 'Z187442'. " Search help name
    The various possible values that you can pass to value_help_mode are as shown below.
    deactivated 101
    automatic 111
    ddic 121
    ovs 131

  • Generating dynamic search query for search formular

    Hallo guys,
    a theoretical question I have there for you.
    I have a search form in HTML with several input fields, so the user can search for particular features in a db.
    My queiston: How can I generate a dynamic query, depending on which fields the user had filled in?
    It should look like this:
    > look at the input fields:
    > if request.getParameter("art) !=null : Query "+" age
    > if request.getParameter("experience") !=0 : Query "+" experience
    > if request.getParameter("instrument") != null : Query "+" instrument
    > .... and so on
    final query = SELECT art, experience,instrument FROM x, y, z WHERE x.art = art AND y.experience > experience AND z.instrument LIKE '%instrumen%' ;I hope I have explained it somehow understandable.
    Any help is deeply appreciated! Thank you in advance...
    fankoff
    Edited by: fankoff on Jun 21, 2010 9:55 AM

    for every ? in your preparedQuery, you need a preparedQuery.set...
    why do you use reflection to get the length of an array? why not use:
    int[] ar = {1,2,3,4};
    System.out.println(ar.length);you might want to consider using "... WHERE title IN (title1, title2, ..) OR content IN (content1, content2,...)"
    now unfortunatly jdbc seems to be not properly specified with the #setArray, oracle uses it in above mentioned context(e.g. "... WHERE title IN ?" and you set a string-array) mysql doesn't.(you would need something like "...WHERE title IN (?,?,?,?,?)"
    but in either of this case, or yours, its usually better to create a prepared query once, and than just insert the values with each fetch. just use enough ?'s and set the not-needed ones to NULL. it will still be more efficient than creating a query everytime.

  • Dynamic "search" query

    Hi there, I'm tring to build a dynamic query to search not only the exatly phrase typed by the user but even the single words. So far, I've got how to make the preparedStatement but I'm still stuck in how to make the exactly number of psmt.setString necessary to the preparedStatement. Belowe the code. Thanks in advance for your help.
    String query = "";
    int i = 0;
    for(i = 0; i < java.lang.reflect.Array.getLength(arrayWords); i++){
    String tmp = arrayWords;
    query = query +" OR title LIKE ? OR content LIKE ?";
    connection = DriverManager.getConnection(DB_properties.getDB_url(),DB_properties.getDB_username(),DB_properties.getDB_password());
    pstmt = connection.prepareStatement("SELECT * FROM search_content WHERE title LIKE ? OR content LIKE ?"+query+";");
    pstmt.setString(1,words);
    pstmt.setString(2,words);
    //for(){}
    rs = pstmt.executeQuery();

    for every ? in your preparedQuery, you need a preparedQuery.set...
    why do you use reflection to get the length of an array? why not use:
    int[] ar = {1,2,3,4};
    System.out.println(ar.length);you might want to consider using "... WHERE title IN (title1, title2, ..) OR content IN (content1, content2,...)"
    now unfortunatly jdbc seems to be not properly specified with the #setArray, oracle uses it in above mentioned context(e.g. "... WHERE title IN ?" and you set a string-array) mysql doesn't.(you would need something like "...WHERE title IN (?,?,?,?,?)"
    but in either of this case, or yours, its usually better to create a prepared query once, and than just insert the values with each fetch. just use enough ?'s and set the not-needed ones to NULL. it will still be more efficient than creating a query everytime.

  • Dynamically search for same digits

    I need help with the most efficient way to search for same digits in ids dynamically.
    After I queried my table: select MyId from Mytable then I need to check if none of these ids consist of the same repeating digits such as 0000,1111,2222,......9999
    To make it more complicated, MyId doesn't have a fix length, it can be 4 digits length or 5, 6 all the way to 9. So the search of the same digits it this ids also should also correspond to the length of the ids.
    If MyId is 4 digit long, I should make sure none of the MyId contains 0000,1111,2222,33333,...all the way to 9999
    Can anyone give me example on how to do this efficienly since I may deal with large records.

    It's Sybase, I think version 4.0 (?) and the datatype for MyId is varchar because it can accept alpha numeric. But we don't bother checking MyId other than 1111,2222,3333, all the way to 9999 if MyId happen to be 4 char length. Or 11111111,22222222,33333333, etc if it happens to be 8 char length.
    Within 1 batch, when MyId is 4 char length, all will be 4 char length.
    In tomorrow's batch, MyId can be 6 char length and next month it may be 4, 6 char length or 7 char lenght. Max char length for MyId is 9 char length.
    So, within 1 batch there will be no mixing of MyId's char length.
    I'm thinking of doing Len(MyId) first to find out the lenght of MyId for this batch, then looping to create 111,222,333,etc for the length determined by Len(MyId) and before moving to the next same digit, I do select MyId where MyId Like '%1111....%', then if recordcount is not 0 do something, then move to the next same digit and so on.
    But I'm not sure how to write that efficiently when processing 5000 or more records for example.

  • Advanced Dynamic Search

    I use ASP VBscript.. SQL2000
    And I'm trying to allow customers to search our database for
    products:
    Dynamic Query... It's easy for me to create a basic search
    where the
    exact phrase is returned or something relatively similar is
    returned.
    For example, if I use the wildcard, I can extend my ability
    to give the
    customer what they want but it would be nice to offer more.
    I need the customers to be able to search for something more
    complex...:' Since I don't know how many words the customer
    will use,
    I'm not sure how to do it.
    (one, two, three)
    or (one two three)
    or ("one two three")
    Basically, something like what you would find on google's
    search or Tom
    Muck offers an extension and I'm trying to contact him about
    functionality with stored procedures. He's basically created
    an
    extension that does almost exactly what I want but since I
    use stored
    procedures, I would need to rig it to work. Link to his
    extension below.
    http://www.tom-muck.com/extensions/help/dynamicsearchasp/
    Anyone have an idea if I something like this is possible
    without too
    much bone-crunching effort?

    Art wrote:
    > I use ASP VBscript.. SQL2000
    >
    > And I'm trying to allow customers to search our database
    for products:
    > Dynamic Query... It's easy for me to create a basic
    search where the
    > exact phrase is returned or something relatively similar
    is returned.
    > For example, if I use the wildcard, I can extend my
    ability to give the
    > customer what they want but it would be nice to offer
    more.
    >
    > I need the customers to be able to search for something
    more
    > complex...:' Since I don't know how many words the
    customer will use,
    > I'm not sure how to do it.
    >
    > (one, two, three)
    > or (one two three)
    > or ("one two three")
    This is something I have been planning on doing too, with
    Stored
    Procedures, and I am hoping its not a major headache. If I
    find anything
    I will post it here.
    Steve

Maybe you are looking for

  • Environment variable setup

    I am using WIN XP PRO and installed jdk1.5.0_07 as ADMIN. Added jdk1.5.0_07\bin to the right end of lines of both CLASSPATH and path. In the cmd prompt window the javac is not recognized as an internal or external command, operable program or batch f

  • Problem with Pole zero analysis using multisim

    Problem with Pole zero analysis using multisim When I tried to find input impedance function's pole zero of a parallel LC network using Multisim pole zero analysis, I get following message | | doAnalyses: matrix is singular | | | | | | pz simulation(

  • F.5D Error Message

    Hi Experts, When we executing F.5D for calculate balance sheet adjustment we are getting below message C.Code      Account            Diagnosis  1001           130120             Records not carried forward since no account defined  - > Check A/C   1

  • Unable to connect to BW3.5(IDES) from EP6.0

    Hi All, I am trying to establish connection to our BW system (IDES, BW3.5 NW04) from EP6.0.9. I have done the following as per procedure. - Creating BW system - Setting Usermgmt (UIDPW and admin, user) - User mapping also done Connection tests for co

  • Send and load

    i have checked google and found horrible incomplete examples in using send and load XML with php. I have spent an hours on this and nothing. Unless i can get ha;f decent example with this i think I might confine XML to the dustbin. This has been horr