Search - Random Result in ASP

hi all..
i already create search page in asp. The SQL command like this (i'm using MSAccess)
SELECT *
FROM tablename
WHERE '' + tableid + '' LIKE %MMColParam%
tha problem is, i do not have any idea to make the result from table will appear Randomly.
Anybody can guide me to solve this problem?

You could retrieve the ID's of the search results into an array, and then randomize the array. Here's one technique I found doing a quick search and I really have not dived in to see how good it is - I'm sure you can find more:
http://www.theproblemsite.com/programming/randomize_array.asp

Similar Messages

  • DW8 search box result page asp

    Hi all,
    I build with success a search box (text box) that search in
    my db.
    Now when I dont write a sting in the text box and push the
    submit buttom,
    the result page schow me all the results from my db. I set my
    default value
    parameters to %, this gives my all the results.
    I'm wondering if there is a solution when my text box is
    blank the result
    page dont show all the records?
    I can do thes by setting the default value to someting that
    not match in my
    db, like ----, but this is mayby not verry professional.
    Is there a solution for this?
    Thanks in advanced for your help!
    www.SamDesign.be

    Hi Dave, thanks for your help!
    Yes, I had sorted out ;-)
    For your information, you don't need two search fields. Make
    for each
    field in your db a variable and point for each variable to
    the same
    form field name, change the AND to OR. This works great!!
    Happy New Year!!
    Sam
    "Baxter" <baxter(remove:-)@gtlakes.com> a écrit
    dans le message de news:
    enjt5o$otm$[email protected]..
    > HI! Sam
    > I thought you might have this sorted out by now? But
    here is the way I
    > would
    > write your SQL statement
    >
    > SELECT *
    > FROM qry_companys
    > WHERE naam_bedrijf LIKE 'varnaam_bedrijf' AND
    beschrijving_kort_fr LIKE
    > 'varbeschrijving_kort_fr'
    > ORDER BY naam_bedrijf ASC
    >
    > Variables
    > Name Default Value Run-time Value
    > varnaam_bedrijf % Request("Your Form Field Name")
    > varbeschrijving_kort_fr % Request("Your Form Field
    Name")
    >
    > Set up your form with two search fields one for
    naam_bedrijf and one for
    > beschrijving_kort_fr with a search button
    > with the form action set to your results page.asp method
    = get>
    >
    > Dave
    >
    > "Sam" <[email protected]> wrote in message
    > news:enjr60$mk5$[email protected]..
    >> Hi all,
    >>
    >> I build with success a search box (text box) that
    search in my db.
    >> Now when I dont write a sting in the text box and
    push the submit buttom,
    >> the result page schow me all the results from my db.
    I set my default
    > value
    >> parameters to %, this gives my all the results.
    >> I'm wondering if there is a solution when my text
    box is blank the result
    >> page dont show all the records?
    >> I can do thes by setting the default value to
    someting that not match in
    > my
    >> db, like ----, but this is mayby not verry
    professional.
    >> Is there a solution for this?
    >> Thanks in advanced for your help!
    >> www.SamDesign.be
    >>
    >>
    >
    >

  • "Search for" results not shown in list view

    Hello,
    I just installed Leopard a few days ago, and so far I'm very happy.
    The ony oddity I noticed today was that "Search for" results (the default searches in the pane on the left side) are not shown in list view.
    What happens is this:
    - I open a finder window in list view.
    - I click e.g. on "Search for" - "All documents".
    - The status bar on the bottom of the finder window says e.g. "1789 objects", but the actual window is empty (although it has a very long scrollbar). If I click somewhere in the empty space, info for an actual file is shown - as if the files were there, just shown in white letters on white background. I can also type in the search field, and the status bar updates accordingly, but again, no files show up.
    Icon and Coverflow views, however, do work.
    - If I switch from Icon to List view, a file list is shown for the fraction of a second, then disappears.
    This is not an end-of-the-world-bug for me, but still pretty annoying.
    Any idea what might be the problem here? I have no exotic software installed that could cause trouble; just QuickSilver and the usual productivity apps.
    Thanks!

    The problem disappeared a few launches later . ..

  • Adding Z field in Opportunity search and result view BT111S_OPPT/Search

    Hi,
    I have been searching this forum on adding Z fields in search and result view but couldnt find the precise information.
    We have Z field in ultimately residing in BUT000.
    Now when this field is used in BP_HEAD_SEARCH for search and result, it could be easily done via configuration. (since the field was added to CRMT_BUPA_IL_HEADER_SEARCH during EEWB extension.
    Now, the requirement is to add the fields in Opportunity BT111S_OPPT/Search & BT111S_OPPT/Result.
    I am confused with regard to the approach we need to use to get this field in search and result.
    I thought the easiest option is to add the Model node and and give the BOL attribute. This works fine but I can't see this field (with dynamic getter/setter) in the UI configuration.
    During the attribute creation wizard, I gave BOL entity as BTQROpp (system defaulted) and the relation was
    BTADVSOpp/BTOrderHeader/BTHeaderPartnerSet/BTPartnerAll/BTBusinessPartner/ZZZGEOG_REGI
    is this correct? or am I doing something wrong?
    Why can't I see the fields in configuration?
    So alternatively I created a field through AET and i could see this field is in the structure and in UI config, but what logic I need to put to retrieve the value?
    Any advice?
    Many thanks in advance for your help
    Rakesh

    Hi Rakesh,
    Please follow below steps:
    1. Append your custom field to structure associated with your search/result structure.
    2. After you append this field to structure, this field would be available in context node.
    3.  Check if the field is reflected in available fields in configuration.
    4. If field is not present in configuration then please follow steps stated by me in:
    Re: New Column can not be added in chtmlb:configTable
    5. Once you add this field to design layer, you would be able to configure it to your search query. Check if your query works with this field.
    If not then please go through below forum :
    Re: BADI for Claims search in trade promotion management
    Let me know if this helps.
    Regards,
    Bhushan

  • Best approach to add Z custom field to IC Agent Inbox search and results view

    Hi Experts,
    We are having a requirement to add a Z custom field to IC Agent Inbox search and results view. I got multiple forums and ideas, but looking for the best approach for handling this. I am sure, you experts, would have already done this.
    Thanks in advance.
    Regards
    Siva

    Hi Sivakumar,
    AET is the best way by far to create a custom field in this area. It is easy and simple.
    Also, field once added in one business object it can be used at different objects as well.
    There is also a demo available for AET on sdn.
    Please let me know if any more help is required.
    Thanks,
    Bhushan

  • 'People Search Core Result' web part with 'office' filter in Keyword Query is not returning results

    I have created a page with "People search core result" web part on SharePoint 2010.
    When I try to use the setting (A) or (C) as shown below, there is no results been returned but when set to setting (B), there are results been returned.
    In the returned results I can see the OfficeNumber field is been populated with values and some of them is "UK Finance".
    Setting (A)
    Result Query Options
    -- Fixed Keyword Query = contentclass:spspeople -- Append Text To Query = Department:"Finance" AND OfficeNumber:"UK Finance"
    Setting (B)
    Result Query Options
    --- Fixed Keyword Query = contentclass:spspeople --- Append Text To Query = Department:"Finance"
    Setting (C)
    Result Query Options
    --- Fixed Keyword Query = contentclass:spspeople --- Append Text To Query = OfficeNumber:"UK Finance"
    What am I doing wrong here? Am I missing something? Do I need any additional configuration in order to get this to work?
    I hope someone could help me or point me to the right direction.
    Thank you
    muges

    You might want to check the Manage User Properties area of the User Profile Service in Central Admin.
    Any properties you query on should be marked "Indexed" or "Use in Scopes".  You can also check that you are using the correct internal name for these properties.

  • In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?

    In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?

    I create a new index on column2, (INDEX_N3)
    and change SQL to
    select 1 from table T1 where
    T1.COLUMN_002 = '848K 36892'
    This time INDEX_N3 will be used.
    but change SQL to
    select 1 from table T1 where
    T1.COLUMN_002 = '848K 36892'
    and T1.COLUMN_004 = '1000'
    The explain plan will show full scan.
    Why?
    Thanks.

  • Custom component Search and Result view using value node :pls help

    Hi Experts,
    I am creating a Custom component with Search and Result view using value nodes.
    This is the code I wrote in the Search button event handler method.
    The data which gets in lv_search I need to put in lv_col .
    Can somebody guide me for this.
    Points will be awarded .
    METHOD eh_onsearch.
      DATA : lv_current TYPE REF TO if_bol_bo_property_access,
             lv_search  TYPE zcrm_orgstruct_search,     "Search value node structure
             lv_result  TYPE zcrm_orgstruct_result,         "Result value node structure
             lv_col     TYPE REF TO if_bol_bo_col.
      lv_current ?= me->typed_context->search->collection_wrapper->get_current( ).
      CALL METHOD lv_current->get_properties
        IMPORTING
          es_attributes = lv_search.
      me->typed_context->searchresult->collection_wrapper->set_collection( lv_col ).
      op_toresultview( ).
    ENDMETHOD.
    Regards,
    Lakshmi

    Hi Lakshmi,
    Could you please share with us how it was solved.
    "CALL METHOD lv_current->get_properties
    IMPORTING
    es_attributes = lv_search."
    Did you get any values in lv_search ?
    Because while using value nodes for search view (which inherits from advance search controller  class), the above method does not return any search values entered in the fields.
    Please let me know how did you solve it.
    Thanks & Regards
    Vidhya

  • More than 5 query IDs in the search core results web part?

    I need to have six search results web parts on the same page, all using the FASTSearch location, but each with a separate Search Action Links web part to sort  it.  But there are only 5 cross-web part query IDs available.  Is it possible to
    extend the Search Core Results web part to have more than 5 queryIDs?
    David Tappan C/D/H Grand Rapids, MI

    Did you figure this out?

  • Is it possible to submit a list item and at same time query/search the results if parameters are matched.

    Hello,
    Is it possible to submit a list item and at same time query/search the results if parameters are matched.
    Example - user logon to site enter search parameters and hit submit button. Once done parameters gets saved in list and shows search results on page. I have been asked to do this with
    SP designer and InfoPath doesn’t work due items limits.
    Please suggest.
    Thanks,
    Manish
    Manish

    Hi Manish,
    may i ask if you need,
    when user account click the login button, it will be authenticate the user and then it will show search result page?
    may i know how the keyword of words to be put? is it together with the user account box, password and keyword?
    or it will be like, after user authenticate, it will redirect to search page, so that user may use the search page to input the keyword?
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Opening search bar results in a new tab

    My search bar opens the results in a new tab, but, when I click on one of the links on the results page, FF no longer remembers the search results page (ie. the Back button does not work). This problem goes away if I set the search bar results to open in the current tab (about:config > browser.search.openintab > default). Please tell me how to get the back button.

    Hi,
    You can try to set the value '''browser.search.context.loadInBackground''' to true in [http://kb.mozillazine.org/About:config about:config].
    [http://kb.mozillazine.org/About:config_entries about:config Entries]

  • Adding new field in search help result view

    Dear Experts,
    I want to include one more field in search help result. The field shoud give description.
    How can i do this in UI result view?
    If I try to add attribute in result view, the result view is of type table, and it does not allow us to add value node. It will allow us to add model attribute. If I add attribute in search help resut table view then will i be able to see it in table form.
    Thanks and regards
    Pankaj Kumar

    Hi Pankaj,
    Its not that difficult.
    There are two ways
    1. You can enhance your Result BOL object through EEWB and append your z-field to std. BOL result object. This then appears automatically for your result context node and then you can pull it to the view in config tool.
    2. Directly go to your context node class (CN00 , CN01 etc ) , now copy method GET_S_XYZ , paste it and rename as GET_yourfieldname. Similarly copy SET_S_XYZ, GET_M_XYZ and GET_I_XYZ and paste and rename. Once activated. Quit the component browser completely. Open again using bsp_wd_cmpwb. open you view and then your node. You can find you new attribut present as struct.YourField.
    You can then copy code from available setter-getter methods for this attribute. You must handle setter getter by urself in this case. In may std. nodes, this is done for description field. I have personally done this for product descripton field.
    if you dont want the field to be part of structure ( i.e. as struct.Yourfield ) then you can also copy paste GET_XYZ, SET_XYZ methods. your filed then do not appear as Struct.YourField but it just appears as YourField name under context node.
    Hope this helps you.
    Thanks & Regards.
    You can check PRODUCTDESCRIPTION  attribute of BTAdminI node of BT115QIT_SLSQ/Items  view of BT115QIT_SLSQ component. They have added it the same way as i described above. You see the GET_ method to see how they are retrieving product description. In my object, i wrote direct query to Comm_prshtext table to retriev short_text by passing product guid and then assigen it to value variable of Get method.
    Edited by: suchita P on Sep 20, 2008 2:22 AM

  • Setting scope in Search core result web part issue

    Hi All,
     I don't know if it is default behavior of search, But I am facing below issue.
    I created new scope which is targeted to one web app url in my server. Now when i set this scope in Search core result web part edit properties and search from default.aspx page it works fine.
    (And one more thing Location is set to Local FAST Search Results)
    But if I type new search keyword on search result.aspx page its passing extra url parameter as &u= with another site and I am not getting any result for my keyword.
    (if i remove & u= from my url it again works)
    Any idea about this? Am i missing any setting?
    Regards,
    Satish
    Thanks, Satish

    On the search results page, there is a search web part
    you need to make setting to that search webpart so that it redirects to same page without and extra quote. 
    It will mainly a trial and test for you
    If this helped you resolve your issue, please mark it Answered

  • Firefox search engine results not appearing in a new tab

    how do i configure FF (3.6.13) to display search engine results on a new tab? It used to do this for me but now doesn't anymore, and I can't find any config settings to change this.

    Type '''about:config''' in the URL bar and hit Enter. <br />
    ''If you see the warning, you can confirm that you want to access that page.''
    '''browser.search.openintab''' is the preference, '''true''' is the value.

  • Product Delivered Status Date should be there in Standard Search and Result screen of Service Order. Product Delivered Time should be Available in Result screen and In Result screen there should be facility to filter on basis of Time

    Hi team,
    Product Delivered Status Date should be there in Standard Search and Result screen of Service Order. Product Delivered Time should be Available in Result screen and In Result screen there should be facility to filter on basis of Time.
    How to add this in search result screen.configuration is it possible? or any changes in development.
    Compnent - BT116S_SRVO
    Thanks
    Kalpana

    Hi Kalpana
    Please reread my comment. I said to try and populate "Requested End" Date.
    Make sure the date profile assigned to the transaction includes this Date Type.
    If you can populate this either manually or programmatically the solution should be quite forward.
    If you cannot do this, only then should you look at making any significant sort of enhancement.
    Regards
    Arden

Maybe you are looking for