Checkboxes to search Database

Hello all
I was wondering if you could help me with a problem I am having with using multiple checkboxes to search an oracle database. I have already set up a form which allows users to enter a number of parameters to the search the database but I also want to include 11 checkboxes which will allow the users to select records for one or more cities, so if 3 cities are selected only the records for those 3 cities are displayed.
All the checkboxes have the same name but the values are set to the names of the cities. I am using the following code to get the rest of the search fields out of the database so need to try to incorporate the values from the checkboxes somehow.
Any help will be greatfully received.
Thanks in advance.
rs = GetResultSet("SELECT * FROM Function where Name like '%" + request.getParameter("Name") + "%' AND Type like '%" + request.getParameter("Type") + "%' AND Description like '%" + request.getParameter("Description") + "%' AND ApplCode like '%" + request.getParameter("ApplCode") + "%' AND Scobol like '%" + request.getParameter("Scobol") + "%' AND Class like '%" + request.getParameter("Class") + "%' AND Options like '%" + request.getParameter("Options") + "%' AND TMF like '%" + request.getParameter("TMF") + "%' AND Display like '%" + request.getParameter("Display") + "%' AND WKS like '%" + request.getParameter("WKS") + "%' AND SQLNotify like '%" + request.getParameter("SQLNotify") + "%' AND Oper like '%" + request.getParameter("Oper") + "%' AND UDate>=" + ConvertDate2(request.getParameter("StartDate")) + " AND UDate <=" + ConvertDate2(request.getParameter("EndDate")) + "ORDER by Name ASC");

The following solved this, for anyone who may have a similar problem;
StringTokenizer st = new StringTokenizer("val1^val2^val3^","^");
String sValue = "",sVAL;
while (st.hasMoreTokens()) {
sVAL = st.nextToken();
if (request.getParameter("Value" + sVAL) != null) sValue += (" Value='" + sVAL + "' OR ");
if (sValue.length() > 0) sSQL += (" AND (" + ChopOff(sValue,3) + ")");

Similar Messages

  • Bug in the  search database of Javahelp

    Hi all,
    in this project I am importing from Framemaker and generating Javahelp output. The Javahelp does not work when there are non-ASCII characters in the topic filenames (such as accents or umlauts). Therefore I have to adjust the file naming in the imort settings to "<$filename_no_ext>-<n>". As a result I get topics with numbered filenames and all seems well.
    BUT with this setting the Javahelp displays the totally cryptic filenames of the topics as search results. Why does Robohelp not create a search database with the topic titles as search results?
    How do you handle Javahelp projects for non-english languages?
    Robert

    I have the same problem. I have a registered domain name which contains a "-" character. Its not possible to set it correctly because it is filtered out. A "-" is an valid part of a domain name so why it is filtered? I have tried to edit the bootpd.plist file, but its getting overidden after a few seconds.
    Could anyone help? A fix is absolutely necessary, without it I have to change the search domain on all client computers.

  • LOve Firefox but it's annoying that if I'm using a search engine (I use lots of subscription legal search databases), when I press the back button all the data I entered in the search boxes has disappeared. I'm sure Firefox didn't use to do that?

    Love Firefox but it's annoying that if I'm using a search engine (I use lots of subscription legal search databases), when I press the back button all the data I entered in the search boxes has disappeared. I'm sure Firefox didn't use to do that?

    Please do the following.<br><br>
    #Click the Firefox button, go to '''Options '''| '''Options''' | '''Privacy'''.<br><br>
    #In the dropdown menu at the top, change it to "'''Use custom settings for history'''"<br><br>
    #Checkmark the option: "'''Remember Search and Form history'''".<br><br>
    #Remove the checkmark from: "'''Clear history when Firefox closes'''".

  • How to search Database in JSP using LIKE

    hi can anyone tell me is there any other syntax for Query when we use LIKE to search database in which suppose
    String para = request.getParameter("name");
    Select name,surname From user where name LIKE '"+para+"';

    hi,
    which database are you using, some require you to put % sign with like
    e.g. select xyz from table abc where xyz like '%"+para+"%'

  • How do I index a new search database?

    I want to create a robot and run it against a URL and build an index( RDs), on my own defined search database. But only the default database get's indexed.
    How do I point my Robot to my new defined search database?
    Also I would like to be able to index a file system (a directory that contains only XML files). I have already created my filter specifying to allow any file with the extension .xml. but it doesn't seem to work? What do I need to do?
    Thanks.

    I think I understand what you are trying to do. I assume that you have created a new database from the admin console, and now you want to use the robot to index that database?
    If that's the case you should be able to specify the database to populate, when defining a site for the robot to crawl. The option to set the database to populate is right at the bottom of the screen of the site editor, after the filter definitions and the advanced option.
    Hope this helps.

  • JavaHelp : Search Database

    how to create the search database ?
    from what i had read, use the jhindexer command
    let say my program is in the folder
    F:/programming/java_pj/OOP
    and i have to run the command in dos at F:/programming/java_pj/OOP/help
    with the command
    jhindexer OOP*
    is this correct ?
    and i got this when i run it
    'jhindexer' is not recognized as an internal or external command, operable program or batch file.anyone can help me with this ?

    no one using JavaHelp here ?

  • Search database not categorized

    Hi
    I have configured the portal search facility to crawl my portal
    content.
    I have also configured a number of classifications.
    The robot works fine and populates the search database. I can
    search the database using the basic and advanced search on the portal desktop.
    However no information is linked to the configured classifications.
    Do I need to update something in the default robot configuration for this to work?
    Cheers
    Hannes

    I hope this answers your question.
    It doesn't answer my question but it still helps me determine your level of knowledge.
    For your search results page code the php is processing data that's sent via URL parameter. That's what the snippet you provided is saying:
    $colname_Recordset1 = "-1";
    if (isset($_GET['form1'])) {
      $colname_Recordset1 = $_GET['form1'];
    That says that if a URL parameter for form1 is set then set the value of the parameter to the variable for processing in your query. That's why I asked where your search form code is. You explained your search from briefly, but didn't provide a code. For search page you need a form to send the URL parameter 'form1' to the search results page. Use something like this on search page for your form:
    <form action="results_page.php" method="GET">
    <input type="text" name="form1">
    <input type="submit" value="Search">
    The action of the form should point to your search results page to process the data into a query and display the results. GET method of a form will send the "name" data of each form element as a URL parameter. So if you searched for entered text on your search form then when you click submit the URL will look like: www.your-domain.com/result_page.php?form1=entered%20text
    Your script will take data form URL parameter and process the data in your query. That should get you going in the right direction.

  • WSS Search database

    I am using Sharepoint WSS. I was testing a restore on the same server and for some
    reason it has changed the search database to the test restore search database(WSS_Search_Tester). But it needs to be WSS_Search_Production, I have gone to the 'Services on Search Service setting' configure page, but the database name is grey.

    Please stop the Windows SharePoint Services Search
     - Open the SharePoint Central Administration
     - Select the Operations tab and then select Services on Server from under the Topology and Services
     - select Windows SharePoint Services Search and click on 'Stop'
     - You will then receive a message  that the index files will be deleted. Press OK to continue
    Search service will stop, now you can reconfigure search service to update with new DB name
     - Click on hyperlink 'Windows SharePoint Services Search'
     - fill all the required details and Press the OK button to create the Search database and start the SharePoint Search Service
     - Start Full Crawl ro reindex the content
    Thanks, ShankarSingh

  • How to save data after clicking checkbox  stored in database table

    TYPE-pools: slis.
    tables:mkpf,mseg,mard.
    TYPES: BEGIN OF tp_data,
          mblnr LIKE mseg-mblnr,
         matnr LIKE mseg-matnr,
         werks LIKE mard-werks,
         lgort LIKE mard-lgort,
         lgpbe LIKE mard-lgpbe,
         charg LIKE mseg-charg,
         bwart LIKE mseg-bwart,
         budat LIKE mkpf-budat,
         menge LIKE mseg-menge,
         meins LIKE mseg-meins,
         kostl LIKE mseg-kostl,
         aufnr LIKE mseg-aufnr,
         rsnum LIKE mseg-rsnum,
         checkbox TYPE c,
      __mark,
    END OF tp_data,
    tp_tbl_data TYPE STANDARD TABLE OF tp_data.
    Constants
    Data objects (variable declarations and definitions)
    Report data to be shown.
    DATA: it_data TYPE STANDARD TABLE OF tp_data.
    Heading of the report.
    DATA: t_heading TYPE slis_t_listheader.
    ========================== Selection Screen ==========================
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:smblnr FOR mseg-mblnr MODIF ID m1,
                   smatnr FOR mseg-matnr MODIF ID m2,
                   swerks FOR mard-werks MODIF ID m3,
                   slgort FOR mard-lgort MODIF ID m4,
                   slgpbe FOR mard-lgpbe MODIF ID m5,
                   scharg FOR mseg-charg MODIF ID m6,
                   sbwart FOR mseg-bwart MODIF ID m7,
                   skostl FOR mseg-kostl MODIF ID m8,
                   saufnr FOR mseg-aufnr MODIF ID m9,
                   srsnum FOR mseg-rsnum MODIF ID m10.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS:pre RADIOBUTTON GROUP radi USER-COMMAND ucomm DEFAULT 'X',
               pse RADIOBUTTON GROUP radi,
               bps RADIOBUTTON GROUP radi.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    PARAMETER:layout TYPE i.
    SELECTION-SCREEN END OF BLOCK b3.
    =========================== Event Blocks =============================
    AT selection-SCREEN.
    start-OF-selection.
    PERFORM get_data USING it_data.
    END-OF-selection.
    PERFORM build_alv USING it_data t_heading.
    =========================== Subroutines ==============================
    *&      Form  get_data
          Gets the information to be shown in the report.
    FORM get_data USING t_data TYPE tp_tbl_data.
      SELECT msegmblnr msegmatnr mardwerks mardlgort mardlgpbe msegcharg msegbwart mkpfbudat
        msegmenge  msegmeins msegkostl msegaufnr mseg~rsnum
      INTO CORRESPONDING FIELDS OF TABLE t_data
      FROM mseg
      JOIN mard ON mardmatnr EQ msegmatnr
                   JOIN mkpf ON msegmblnr EQ mkpfmblnr
                   WHERE mseg~matnr IN smatnr.
    ENDFORM.                    " get_data
    *&      Form  build_alv
          Builds and display the ALV Grid.
    FORM build_alv USING t_data TYPE tp_tbl_data
          t_heading  TYPE slis_t_listheader.
    ALV required data objects.
      DATA: w_title   TYPE lvc_title,
            w_comm    TYPE slis_formname,
            w_status  TYPE slis_formname,
            x_layout  TYPE slis_layout_alv,
            t_event    TYPE slis_t_event,
            t_fieldcat TYPE slis_t_fieldcat_alv,
            t_sort     TYPE slis_t_sortinfo_alv.
      REFRESH t_fieldcat.
      REFRESH t_event.
      REFRESH t_sort.
      CLEAR x_layout.
      CLEAR w_title.
    Field Catalog
      PERFORM set_fieldcat2 USING:
            1 'MBLNR' 'MBLNR' 'MSEG' space space space space space space space space space space space space t_fieldcat ,
            2 'MATNR' 'MATNR' 'MSEG' space space space space space space space space space space space space  t_fieldcat ,
            3 'WERKS' 'WERKS' 'MARD' space space space space space space space space space space space space  t_fieldcat,
            4 'LGORT' 'LGORT' 'MARD' space space space space space space space space space space space space t_fieldcat ,
            5 'LGPBE' 'LGPBE' 'MARD' space space space space space space space space space space space space t_fieldcat ,
            6 'CHARG' 'CHARG' 'MSEG' space space space space space space space space space space space space t_fieldcat ,
            7 'BWART' 'BWART' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            8 'BUDAT' 'BUDAT' 'MKPF' space  space space space space space space space space space space space t_fieldcat,
            9 'MENGE' 'MENGE' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            10 'MEINS' 'MEINS' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            11 'KOSTL' 'KOSTL' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            12 'AUFNR' 'AUFNR' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            13 'RSNUM' 'RSNUM' 'MSEG' space  space space space space space space space space space space space t_fieldcat,
            14 '__MARK' 'XFELD' space space space 'Select' 'Select this row' 'Sel' 'Select this row' space space space 'X' 'X' space t_fieldcat.
    Layout
      x_layout-zebra = 'X'.
    Top of page heading
      PERFORM set_top_page_heading USING t_heading t_event.
    Events
      PERFORM set_events USING t_event.
    GUI Status
      w_status = ''.
    User commands
      w_comm   = 'USER_COMMAND'.
    Order
    Example
    PERFORM set_order USING '<field>' 'IT_DATA' 'X' space space t_sort.
    PERFORM set_order USING 'LIFNR' 'IT_DATA' 'X' space 'X' t_sort.
    PERFORM set_order USING 'EBELN' 'IT_DATA' 'X' space 'X' t_sort.
    PERFORM set_order USING 'EBELP' 'IT_DATA' 'X' space space t_sort.
    Displays the ALV grid
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program       = sy-repid
        it_fieldcat              = t_fieldcat
        is_layout                = x_layout
        it_sort                  = t_sort
        i_callback_pf_status_set = w_status
        i_callback_user_command  = w_comm
        i_save                   = 'X'
        it_events                = t_event
        i_grid_title             = w_title
      TABLES
        t_outtab                 = t_data
      EXCEPTIONS
        program_error            = 1
        OTHERS                   = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " build_alv.
    *&      Form  set_top_page_heading
          Creates the report headings.
    FORM set_top_page_heading USING t_heading TYPE slis_t_listheader
          t_events  TYPE slis_t_event.
      DATA: x_heading TYPE slis_listheader,
            x_event   TYPE LINE OF slis_t_event.
    Report title
      CLEAR t_heading[].
      CLEAR x_heading.
      x_heading-typ = 'H'.
      x_heading-info = 'Reporte Prueba'(001).
      APPEND x_heading TO t_heading.
    Program name
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'Program: '.
      x_heading-info = sy-repid.
      APPEND x_heading TO t_heading.
    User who is running the report
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'User: '.
      x_heading-info = sy-uname.
      APPEND x_heading TO t_heading.
    Date of execution
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'Date: '.
      WRITE sy-datum TO x_heading-info.
      APPEND x_heading TO t_heading.
    Time of execution
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'Time: '.
      WRITE sy-uzeit TO x_heading-info.
      APPEND x_heading TO t_heading.
    Top of page event
      x_event-name = slis_ev_top_of_page.
      x_event-FORM = 'TOP_OF_PAGE'.
      APPEND x_event TO t_events.
    ENDFORM.
    *&      Form  set_events
          Sets the events for ALV.
          The TOP_OF_PAGE event is alredy being registered in
          the set_top_page_heading subroutine.
    FORM set_events USING t_events TYPE slis_t_event.
      DATA: x_event   TYPE LINE OF slis_t_event.
    Example
    clear x_event.
    x_event-name = .
    x_event-form = .
    append x_event to t_event.
    ENDFORM.
    *&      Form  set_order
          Adds an entry to the order table.
    FORM set_order USING p_fieldname p_tabname p_up p_down p_subtot
          t_sort TYPE slis_t_sortinfo_alv.
      DATA: x_sort TYPE slis_sortinfo_alv.
      CLEAR x_sort.
      x_sort-fieldname = p_fieldname.
      x_sort-tabname   = p_tabname.
      x_sort-UP = p_up.
      x_sort-down = p_down.
      x_sort-subtot = p_subtot.
      APPEND x_sort TO t_sort.
    ENDFORM.                    "set_order
    *&      Form  set_fieldcat2
          Adds an entry to the field catalog.
    FORM set_fieldcat2 USING p_colpos p_fieldname p_ref_fieldname p_ref_tabname
          p_outputlen p_noout
          p_seltext_m p_seltext_l p_seltext_s p_reptext_ddic p_ddictxt
          p_hotspot p_showasicon p_checkbox p_edit
          p_dosum
          t_fieldcat TYPE slis_t_fieldcat_alv.
      DATA: wa_fieldcat TYPE slis_fieldcat_alv.
      CLEAR wa_fieldcat.
    General settings
      wa_fieldcat-fieldname = p_fieldname.
      wa_fieldcat-col_pos = p_colpos.
      wa_fieldcat-no_out = p_noout.
      wa_fieldcat-HOTSPOT = p_hotspot.
      wa_fieldcat-CHECKBOX = p_checkbox.
      wa_fieldcat-ICON = p_showasicon.
      wa_fieldcat-do_sum = p_dosum.
    Set reference fieldname, tablenam and rollname.
    If p_ref_tabname is not given, the ref_fieldname given is a data element.
    If p_ref_tabname is given, the ref_fieldname given is a field of a table. In case ref_fieldname is not given, it is copied from the fieldname.
      IF p_ref_tabname IS INITIAL.
        wa_fieldcat-rollname =   p_ref_fieldname.
      ELSE.
        wa_fieldcat-ref_tabname = p_ref_tabname.
        IF p_ref_fieldname EQ space.
          wa_fieldcat-ref_fieldname =   wa_fieldcat-fieldname.
        ELSE.
          wa_fieldcat-ref_fieldname =   p_ref_fieldname.
        ENDIF.
      ENDIF.
    Set output length.
      IF NOT p_outputlen IS INITIAL.
        wa_fieldcat-outputlen = p_outputlen.
      ENDIF.
    Set text headers.
      IF NOT p_seltext_m IS INITIAL.
        wa_fieldcat-seltext_m = p_seltext_m.
      ENDIF.
      IF NOT p_seltext_l IS INITIAL.
        wa_fieldcat-seltext_l = p_seltext_l.
      ENDIF.
      IF NOT p_seltext_s IS INITIAL.
        wa_fieldcat-seltext_s = p_seltext_s.
      ENDIF.
      IF NOT p_reptext_ddic IS INITIAL.
        wa_fieldcat-reptext_ddic = p_reptext_ddic.
      ENDIF.
      IF NOT p_ddictxt IS INITIAL.
        wa_fieldcat-ddictxt = p_ddictxt.
      ENDIF.
    Set as editable or not.
      IF p_edit IS NOT INITIAL.
        wa_fieldcat-INPUT     = 'X'.
        wa_fieldcat-EDIT     = 'X'.
      ENDIF.
      APPEND wa_fieldcat TO t_fieldcat.
    ENDFORM.                   "set_fieldcat2
    =========================== Subroutines called by ALV ================
    *&      Form  top_of_page
          Called on top_of_page ALV event.
          Prints the heading.
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        i_logo             = 'XXXXX'
        it_list_commentary = t_heading.
    ENDFORM.                    " alv_top_of_page
    *&      Form  user_command
          Called on user_command ALV event.
          Executes custom commands.
    FORM user_command USING r_ucomm     LIKE sy-ucomm
          rs_selfield TYPE slis_selfield.
    Example Code
    Executes a command considering the sy-ucomm.
    CASE r_ucomm.
       WHEN '&IC1'.
         Set your "double click action" response here.
         Example code: Create and display a status message.
         DATA: w_msg TYPE string,
               w_row(4) TYPE n.
         w_row = rs_selfield-tabindex.
         CONCATENATE 'You have clicked row' w_row
                     'field' rs_s lfield-fieldname
                     'with value' rs_selfield-value
                     INTO w_msg SEPARATED BY space.
         MESSAGE w_msg TYPE 'S'.
    ENDCASE.
    End of example code.
    LOOP AT T_DATA.
    IF  it_data-__MARK EQ 'X'.
    insert ztable.
    ENDIF.
    ENDLOOP.
    ENDFORM.                    "user_command
    ur sending code loop is error ,plz check that one  after checking send me

    Hi,
    After displaying ALV report output, if you want to update database table based on your selected record, then use the below logic in your User_command subroutine.
    You will get the index of the selected record in rs_selfield-tabindex. using this index read the respective record from the internal table and move corresponding field to the table fields and then update.
    data : wa_data like t_data.
    read table t_data index rs_selfield-tabindex into wa_data.
    if sy-subrc = 0.
       move-corresponding wa_data to ztable.
       insert ztable.
    endif.
    thanks,
    sksingh

  • Duplicate Search Databases in SharePoint Foundation 2013 Farm

    I seem to have 2 seperate issues with Search within my SharePoint Foundation 2013 Farm. This is a new Farm, so I can remove the search service application and re-create if this is a way that can clear the 2 issues I am experiencing.
    Issue 1:
    For some reason I have 2 instances of the following search related DB's:
    SearchAdminDatabase
    SearchAnalyticsReportingDatabase
    SearchGathererDatabase
    SearchLinksDatabase
    1 instance of each of the databases all report database status of "No Action Required" and the other instance of all the DB's report a database status of "Not Responding".
    Issue 2:
    My search service application seems to be working fine as I am able to crawl content and retrieve results, however the DB's associted with this search service application are reported with the following warning within the SharePoint Health Analyzer. I have
    been unable to run the Upgrade-SPContentDatabase command against these databases as I get a message saying that the content database could not be found:
    Title
    Databases running in compatibility range, upgrade recommended.
    Severity
    2 - Warning
    Category
    Configuration
    Explanation
    The following databases have versions that are older than the current SharePoint software, but are within the backwards compatible range:
    Search_Service_Application_AnalyticsReportingStoreDB_a3c64b2f3b9b4a5d83383ec0b1ecfcf4,
    Search_Service_Application_CrawlStoreDB_ffb8d716450242cc849a7f44f521bfc9,
    Search_Service_Application_DB_0fe433c02db6435db85285e9fd83863e,
    Search_Service_Application_LinksStoreDB_75efb2f689cf49f19c98a5a8155e47b7.
    Remedy
    To achieve optimal results from these databases, use Upgrade-SPContentDatabase to upgrade Content databases, or psconfig.exe to upgrade other databases.  For more information about this rule, see "http://go.microsoft.com/fwlink/?LinkID=142697".
    Kevin Evans

    At time people create search service application and delete it. SA is deleted but database were not deleted for some reason. so these might be those stale database. You can delete them if you want
    http://blogs.technet.com/b/tothesharepoint/archive/2011/12/19/find-active-databases-used-by-sharepoint-server-2010.aspx
    If you want a report of all of your SharePoint databases that includes the GUIDs and related property values, use the SharePoint 2010 Management Shell.
    There are several Windows PowerShell cmdlets you can use to find all of the SharePoint databases and then print this report to a text file. The quickest and perhaps easiest cmdlet is “Get-SPDatabase”. Run this cmdlet in the SharePoint
    2010 Management Shell to list all of the SharePoint Server databases with properties for each one. From this potentially large list you can then obtain specific information such as the database ID by using additional syntax in your cmdlet. Similarly, also
    in the SharePoint 2010 Management Shell, run “Get-SPDatabase | Sort-Object
    disksizerequired -desc | Format-Table Name” and you will get a simple list of the names for each database. You can then print this list to a text file by adding, “| out-file c:\db.txt” to the end of the command. 
    For detailed information, see
    Windows PowerShell for SharePoint Server 2010,
    Database cmdlets, 
    Get-SPDatabase, and
    Get-SPContentDatabase.
    If this helped you resolve your issue, please mark it Answered

  • How to rename the search databases in sharepoint 2013

    Hi all,
    I have configure the search in sharepoint 2013 and 4 databases has been created in sqlserver.by default db are got created with GUID n sh i want change those DB names .
    could you pls help me how can i change the DB names.
    THanks
    Dhana
    sekhar

    Hi,
    Please check the below links,
    https://technet.microsoft.com/en-us/library/jj219654(v=office.15).aspx
    https://technet.microsoft.com/en-us/library/ff851878(v=office.15).aspx
    http://blogs.technet.com/b/meamcs/archive/2012/10/23/renaming-sharepoint-2010-search-service-database-name.aspx
    Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
    Mahesh

  • CheckBox in search help restriction dialog.

    Hi Experts,
    I have created one search help with dialog value restrictions. Search help contains 6 fields.
    Out of which three fields has length one character(Data Element XFELD).
    As soon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 6 fields.
    I would like to show that fields(with Data Element as XFELD) as Check Box in search help restrictions pop-up window.
    Pls help... How can we do this.
    Thanks
    Vinod

    Hi,
    Kindly check the standard search help "F4TESTCHECKBOX".  Copy it and change the dialog type to 'Display with restrictions' . On execution,  you will notice that -
    i) On the restriction screen the checkbox is displayed as textbox .
    ii)  In list display , checkbox is displayed correctly .
    Follow Raymond's suggestion,
    You could define your own selection-screen, and display it in a search-help exit : if step = 'PRESEL', display your screen, modify selected values in table shlp-interface  and force next step as 'SELECT' to bypass standard selection-screen.
    Regards,
    DPM

  • Search database for a matching value

    An existing database saves the results from a test as col 1 "serial number" col 2 date etc.
    There is now a requirement to search on the serial number and display any results related to it (rows).
    I have the database toolset and have started by using the SQL vi to extract the serial number passing a recordset ref number. I am at the point where I now need to select the row for that ref number but was wondering if it would be better to just read in the database to an array and then do a search on the serial number col looking for matching text, obtain the row of the array where matches occur and then display those rows, or is this route really long winded and should stick with the SQL vi?
    Thanks
    Jack
    Labview Version 8.5
    Labview Version 8.6
    Labview Version 2013
    Solved!
    Go to Solution.

    Paul
    Thanks for reply and I will do as you suggest and go with the SQL vi. I have a few problems using this vi so far. The first is that to Search say the Status field for Pass or Fail I used the query:-
    select Status from TestDetails1 where Status="Pass"
    This instruction resulted in an error message. So I tried a different field Ambient where the temperature is logged:-
    select Ambient from TestDetails1 where Ambient=23      (ambient temperature at 23 deg C) 
    This command line worked fine and brought up all instances where 23 occurred.
     Also when I use the vi 'Fetch recordset data' I get just the values searched on not th erows to which they belong.
    Thanks
    John
    Labview Version 8.5
    Labview Version 8.6
    Labview Version 2013

  • Which is better:search JTables or search Database tables?

    greetings all
    i have UI With many jtables,every jtable reads data from it's own table in a MySQL database
    and i want to make a search mechanism in a specific column in all the tables
    and once item is found the row is highlighted.
    i made it with two ways:
    1-make for loop in each jtable and once item is found , current loop is exited and other loops are not entered
    2-make connection with the database
    and create several resultsets ,every resultset execute a select query on the desired item
    and if one of the Resultsets returns data means item is found then i highlight it in the equivalent jtable.
    i executed the two ways and felt no difference in the speed of finding item
    but i want to know what is the best way of them or in general,as better design or in case of large applications?
    thanks in advance

    first_knight, you have no bloody idea what you're doing.
    you're asking if it's better to search on the client or the server.
    this suggests to me that the entire contents of the database are brought down to the client. this is usually a bad idea except for very small data sets. in that case, it doesn't matter where you do it.
    if you have lots of data, it's best to let the database do it. first, it will actually have all the data. second, it's been optimized to do searches faster than any code you'll ever write.
    either way, judging from your questions here you'll never get either one to work.
    %

  • Error while renaming Search databases

    followed below steps to rename search dbs.
    http://blogs.technet.com/b/wbaer/archive/2013/12/18/how-to-rename-search-service-application-databases-on-the-same-server.aspx
    But getting error while pointing to new renamed DB. Please advice
    $SearchService | Set-SPEnterpriseSearchServiceApplication -
    DatabaseName SSA -DatabaseServer SPDEV
    Set-SPEnterpriseSearchServiceApplication : The remote procedure call failed.
    (Exception from HRESULT: 0x800706BE)
    At line:1 char:18
    + $SearchService | Set-SPEnterpriseSearchServiceApplication -DatabaseName SSA
    -Dat ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (Microsoft.Offic...viceApplication:
       SetSearchServiceApplication) [Set-SPEnterpriseSearchServiceApplication], C
      OMException
        + FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.SetSearchS
       erviceApplication

    did you stop the Search service Application before staring the process. 
    Are you on the SharePoint Server? try to Run the SharePoint powershell console as Administrator.
    Also make sure the account under which you are running powershell having the rights on the new Databases.
    try this one and see if you can get the searchservices application name:
    $SearchService = Get-SPEnterpriseSearchServiceApplication <SearchServiceApplicationName> 
    $SearchService
    here is the technet for the same process.
    http://technet.microsoft.com/en-us/library/jj219654(v=office.15).aspx
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • Webdynpro component in new tab.

    Hi Experts, I am tring to add a new tab in the struture level of a Project . I successfully added a new tab and created a webdynpro component for the Tab as well . However, when i see in the application , the tab does not show the created component.

  • Mavericks stalls during large downloads

    Hi I'm at my wits end over this, so hoping someone can help. I upgraded to Mavericks not long ago and I think that's when this problem started, but I'm not absolutely sure. Anyway, the problem is that when I try to download anything bigger than a few

  • Error message on link

    I created a link by highlighting some words and then used the point to file tool. It works in FF but not in IE. I also checked the link checker which came up empty. Thank you for your time.

  • Vendor returns with Billing

    Hi Experts, I have a situation where I need to do vendo returns with billing i.e like selling the return goods to the vendor. I am thinking of creating Vendor as customer and billing them is one option. any other options you came across? Regards, R.S

  • Can I switch to another Coherence Grid in Java Extend?

    The scenario is I have two data grids, the name of the cache are same, but data in the cache is different. I programmed a Java Client (Extend) to the data grid, the Java client is using a configuration file configured to connect with one of the data