Advanced Search using conditional & logical operators+ sharepoint 2010

Hi Team,
We have an requirement something like this. we have to search values from Custom SharePoint List using Conditional & Logical Operators in SharePoint 2010. how can i achieve this ? if some one has worked on something like this, can you please share the
details to my email id ([email protected]
Thanks in Advance.
Cheers, San

Hi Santhosh,
If you have only one list, then you can use CAML query to perform search in that list. You can write code to generate dynamic CAML based on selection in the filter.
If have to perform the search function on multiple list then you can use Search object model and create dynamic query and execute it using Search OM.
http://msdn.microsoft.com/en-us/library/office/dn423226(v=office.15).aspx
Best Regards,
Brij K

Similar Messages

  • Regulare Expressions - Uses of logical operators

    I need to make use of logical operators within a regulare expression. (greater than, equal, etc.)
    It seems to me that java.util.regex.Pattern does not support that kind of expression. First of all: Is this true (If I am wrong with my assumption, how would the expression look like). Secondly: Which library does support this expression?
    Thanks in advance!

    Regular expressions deal with characters. In that context all characters are 'equal'. You better explain your question a helluva lot better than that.

  • Error while creating folder named "bin" using explorer view in sharepoint 2010

    I am getting error when I create a folder in a library named "bin" using explorer view in sharepoint 2010.
    When I create folders with other names I don't get any errors.
     Please suggest.

    Hi,
    According to your description, my understanding is that you got an
    error when you create a folder named “bin” in a SharePoint library with explorer view.
    There are any Microsoft.NET Framework assemblies that have controls or parts that the SharePoint site uses, which are stored in the bin folder. You can remove “bin”  from hidden segments, then you can create a folder named “bin”
    in the SharePoint library with explorer view.
       1.Opened IIS Manager and selected Server name -> Request Filtering -> Hidden Segments tab -> Removed "bin" from there:
       2.Perform IISRESET:
    Thanks,
    Dean Wang

  • Search format with logical operators in TREX

    We've  activated the index for business object BUS1001006 for material master on SES_ADMIN. The index was created successfully and the two new search help was activated as well. Now testing it in development, I'm trying to figure out how you include logical operators (AND, OR, etc...) inside your search term.
    For example I want to search materials that has ADAPTOR or AMPLIFIER. If I specify exactly "ADAPTOR or AMPLIFIER" (without the quotes) it does not return any search results.
    I'm trying this both on the two new search help and on program COM_SE_SEARCH_IIF_TEST.
    Can you let me know how to do this please ?
    Thanks in advance.

    You have to distinguish between attribute search and full text search:
    In attribute search you can use logical operators by using the generic Select Options just like in any other search help.
    In full text search all entered search words are interpreted with AND conditions.
    If you just press the generic F1 for help on the field "Full Text Search" you will receive the complete standard documentation.
    OR conditions in full text search are not supported because of the restrictions of the generic F4 UI.
    If you want to support OR conditions you should consider installing the SAP product NetWeaver Enterprise Search. The full text search in it's generic search UI contains a query parser that supports the following (and more) features:
    [http://help.sap.com/saphelp_nwes72/helpdata/en/d0/297dfa25a24a57a31e8364ee2ad7eb/frameset.htm]
    Instead of contructing OR conditions it's sometimes much more convenient to browse with NetWeaver Enterprise Search through the distinct value lists of attributes: Read "Narrowing Down Results" in:
    [http://help.sap.com/saphelp_nwes72/helpdata/en/df/f2fb01b6844246b121497b633d83a5/frameset.htm]
    Enjoy! - Klaus

  • Creating "Conditional Sections" in Sharepoint 2010

    Hi,  I have a created a home page for my team site with several image buttons that are linked to other lists/pages. For one of these buttons  i want to create another section of buttons for the user to select the kind of review to update. Is it
    possible to do that  and make that section "sort of conditional"? i.e. it should only be shown when the user clicks the 1st button?
    For example
    I have the below image buttons. 
    1. Add New Review
    2. View Updated Reviews
    3. View Closed Review
    So when the user clicks on "Add New Review", he/she will be directed to another section within the same page to select the kind of review he/she wants to add. This will be done via image buttons as well.
    e,g image buttons for "1. Internal Review" "2. External Review" etc. 
    These 2nd set of buttons will only appear when the user clicks on the 1st button "Add New Review". 
    Is it possible to do this?
    I hope i have explained well. Any assistance would be appreciated
    Regards, Aarti

    Hi Aarti,
    It seems you want to create an accordion menu to show and hide the children menus, here are two articles about this topic which should help, you can take a look.
    http://blogs.c5insight.com/Home/tabid/40/entryid/341/Create-an-Accordion-Navigation-for-SharePoint-2010-using-jQuery.aspx
    http://www.synergyonline.com/Blog/Lists/Posts/Post.aspx?ID=158
    Thanks
    Daniel Yang
    TechNet Community Support

  • Error while connecting to external SQL table using BCS identity in SharePoint 2010

    Hi all,
    I am working on SharePoint Foundation 2010. I have a stand alone setup. Now I am trying to connect to a SQL table in another server. I have used SharePoint Designer to connect using BCS. I have selected "BCS Identity" for authenticating with SQL
    in the external content type. then I created a list with this external content type.
    I get the following error upon opening the external list.
    Login failed for user 'INYKGW\sp_farm'.
    I am confused. how do I solve this error.
    any help is greatly appreciated.
    Thanks.

    Hi letShare ,
    Whether the  account 'INYKGW\sp_farm' is current user account or a service managed account?
    Could you  please  provide detail error message of ULS log  to determine the exact cause of the error.
    For SharePoint 2010, by default, ULS log is at      
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Also please have a look at  the blog :
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=82
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Change Master page of a site using ECMA Script in sharepoint 2010

    Hi All,
    I'm working on SharePoint 2010.
    I have a requirement where in I need to create a site and apply a particular master page to the newly created site using
    ECMA Script.
    The site gets created but while applying the master page it gives me an error stating the method 'set_masterUrl' is not defined.
    Here is my code:
    $(document).ready(function () {
    ExecuteOrDelayUntilScriptLoaded(createSite, "sp.js"); //This is used to ensure until sp.js is loaded, createSite will not be executed.
    function createSite() {
    var context = SP.ClientContext.get_current();
    var collWeb = context.get_web().get_webs();
    var webCreationInfo = new SP.WebCreationInformation();
    webCreationInfo.set_title('TestSite');
    webCreationInfo.set_description('Description of new Web site...');
    webCreationInfo.set_language(1033);
    webCreationInfo.set_webTemplate('STS#0');
    webCreationInfo.set_url('TestSite');
    webCreationInfo.set_useSamePermissionsAsParentSite(false);
    var oNewWebsite = collWeb.add(webCreationInfo);
    context.load(oNewWebsite);
    context.executeQueryAsync(Onsuccess, onfail);
    function Onsuccess() {
    dummy(context, oNewWebsite);
    function onfail(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function dummy(context,oNewWebsite)
    var strMasterPageUrl = '/_catalogs/masterpage/Test.master';
    oNewWebsite.set_masterUrl(strMasterPageUrl);
    oNewWebsite.set_customMasterUrl(strMasterPageUrl);
    oNewWebsite.update();
    context.executeQueryAsync(Onsuccess1, onfail1);
    function Onsuccess1() {
    alert("Done");
    function onfail1(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    Please help.
    Thanks,
    Sachin

    The issue is coming because the scope of context and oNewWebsite is not available in your success method. Try to modify the code as below and see if that helps.
    $(document).ready(function () {
    ExecuteOrDelayUntilScriptLoaded(createSite, "sp.js"); //This is used to ensure until sp.js is loaded, createSite will not be executed.
    var context = null;
    var oNewWebsite = null;
    function createSite() {
    context = SP.ClientContext.get_current();
    var collWeb = context.get_web().get_webs();
    var webCreationInfo = new SP.WebCreationInformation();
    webCreationInfo.set_title('TestSite');
    webCreationInfo.set_description('Description of new Web site...');
    webCreationInfo.set_language(1033);
    webCreationInfo.set_webTemplate('STS#0');
    webCreationInfo.set_url('TestSite');
    webCreationInfo.set_useSamePermissionsAsParentSite(false);
    oNewWebsite = collWeb.add(webCreationInfo);
    context.load(oNewWebsite);
    context.executeQueryAsync(Onsuccess, onfail);
    function Onsuccess() {
    dummy(context, oNewWebsite);
    function onfail(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function dummy(context,oNewWebsite)
    var strMasterPageUrl = '/_catalogs/masterpage/Test.master';
    oNewWebsite.set_masterUrl(strMasterPageUrl);
    oNewWebsite.set_customMasterUrl(strMasterPageUrl);
    oNewWebsite.update();
    context.executeQueryAsync(Onsuccess1, onfail1);
    function Onsuccess1() {
    alert("Done");
    function onfail1(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    The other way is to use this.context and this.oNewWebsite. To see how you can modify your code have a look at the following link.
    http://msdn.microsoft.com/en-us/library/office/jj163201%28v=office.15%29.aspx
    Geetanjali Arora | My blogs |

  • Use xlsm Format in SharePoint 2010?

    I have a excel document with xlsm format (Excel Macro-Enabled Workbook, excel document containing VBA source code) and I wonder if I can upload it into SharePoint 2010 enterprise to display the powerpivot graph and of course use VBA code in Excel Service
    in relation to SharePoint Business intelligence?

    Hi,
    according to a Microsoft Blog Post says the following:
    One additional note about VBA.  Excel Services 2007 didn’t support loading *.xlsm files at
    all because such files are meant to contain macros and files with macros would not load.  Now that the SharePoint 2010 version of
    Excel Services knows how to ignore VBA macros, I am happy to say that also means *.xlsm files can now be loaded in Excel Services.
    You will find the original blog post here: http://blogs.office.com/b/microsoft-excel/archive/2009/11/19/excel-services-in-sharepoint-2010-feature-support.aspx
    Kind regards
    Stefan
    http://www.n8d.at/blog
    Follow me on Twitter: StFBauer |
    n8design
    Microsoft Community Contributor 2011 / 2012
    MCTS - SharePoint / WSS Configuration and Development

  • Can you refine people search results using a SharePoint 2013 search service application connected in SharePoint 2010?

    We have an SP2010 farm which is now using some of the service applications from an SP2013 farm, including the search, managed metadata and user profile.  This is part of an upgrade programme of work which will involve upgrading infrastructure and
    then gradually the sites, and this is seen as one way to minimise the impact.
    So, the SP2010 search results are being generated by the SP2013 which is indexing the SP2010 content.  The initial results appear fine, however, the refiners in the people results for Job Title and Department are no longer working.  We are receiving
    a 404 page not found, even though the page is there as was working before.
    If we compare the URL generated in SP2010 for refining results to an OOTB SP2013 search centre site, there is clearly a big difference to the format.  Example below is where LastName is Smith and then refined where Department is HR.
    SP2010 URL which now gives a 404 error:
    http://intranet2010/search/pages/peopleresults.aspx?k=LastName%3Asmith&r=%22owstaxIdSPShDepartment%22%3D%23832e3479%2Dd168%2D4620%2Dac69%2D9b00a4c4205b%3A%22HR%22
    OOTB SP2013 URL:
    http://intranet2013/search/pages/peopleresults.aspx?k%3Asmith#Default=%7B%22k%22%3A%22smith%22%2C%22r%22%3A%5B%7B%22n%22%3A%22Department%22%2C%22t%22%3A%5B%22%5C%22%C7%82%C7%824335%5C%22%22%5D%2C%22o%22%3A%22and%22%2C%22m%22%3Anull%2C%22k%22%3Afalse%7D%5D%7D
    I've looked at the URL decoded versions so can see how the query is built up.
    Any ideas?  Is this even possible?
    Matt

    All working now.  Turns out there was an entry in the web.config which was causing issues.
      <denyQueryStringSequences>
          <add sequence="ID" />
      </denyQueryStringSequences>
    Seems IIS is denying something in the query string.  We removed the whole section as was not needed.
    http://www.iis.net/configreference/system.webserver/security/requestfiltering/denyquerystringsequences
    Thanks to a colleague who spotted this; I would've never of thought to check the web.config for something like this.

  • Advanced Search OR condition

    Hi,
    I'm trying to use the advanced serach feature on Oracle file.When I search for a phrase it returns the files which contains that phrase.It checks for the AND condition beteween the words we search for.I want to search for a couple of words which are in different files and both the files must be dispalyed as the search result.(OR condition)
    Thanks in advance

    Thanks for your reply, but it is only the containing folder that has the -B suffix.
    The files/photos themselves have the exact same filename in both sets of folders, so I don't think that will work even though it is a good idea.

  • Use of pages in SharePoint 2010

    We would like the user to click on a link on main Team Site that will navigate the user to a page. That page will display a lot of content and will have a Content Query Web part that in turn will retrieve many documents from different library. The objective
    is to have users look at some Fast Facts. We plan to create about 5 pages each having a CQWP and showing different Fast Facts content.
    Questions:
    1. Should we design a wiki page? We don't want users to enter comments, no discussions, no social.
    2. What are the alternatives? If not a page, what is another way to meet our objectives?
    Thanks so much!
    Mayank

    You should not use wiki page for this purpose. You should go with blank web part page available in team sites (site pages library).
    Check this link for reference:
    http://sharepointsolutions.com/sharepoint-help/blog/2012/08/blank-site-template-and-team-site-template-%E2%80%93-what%E2%80%99s-the-difference/
    If you have enabled publishing feature then you can have multiple options in Pages library.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • Issues using Project 2013 with SharePoint 2010

    I'm a SharePoint Admin and a few users have come to me with issues related to checking in Project 2013 files. The scenario they describe is this:
    Project 2013 file is saved and checked in to a document library
    User opens the file and selects edit from the dialog menu.
    The time the document is open varies, from a few minutes to over an hour
    User is logged in as [email protected]
    They can close the file, select check in, and update the file in the library
    Once they try to open the file again, they are given a message saying that the file is checked out to server\user and asks whether they want to view a read only copy
    Saving is disabled because it is read only
    If the user tries to close the file, they are given the option to check in the file
    Sometimes the file will check in and other times it will not.
    Has anyone run into issues like this before?

    Hi CjMOrr85,
    Second time when you open the project file, which option do you select. "Read-only" of "Check-out to Edit". If you are using "Check-out" option, you should not have any issues.
    Happy troubleshooting....
    Vikram Daruru - MSFT

  • Office Web Apps - Preview Sharepoint 2010 documents in Sharepoint 2013 Search Results

    Hi,
    We have a Sharepoint 2013 search site collection. The content sources for the Search service application includes some Sharepoint 2010 sites. We also have Office Web Apps server deployed. When searching for documents, the OWA preview works for all the document
    in local sharepoint 2013 farm. However document preview doesn't work for documents in the sharepoint 2010 farm.
    Any idea why this happens?
    Regards,
    Muthu

    Could you please elaborate more on open url / please give us some syntax how to use that is display template?
    When we use open url do we still need to install office webapps in the 2010 environment? 

  • Using logical operators when creating software groups

    Is there a way to use simple logical operators when using filters for creating software groups?
    An example of what I want to do is to select all updates for the past month - but not include Definition Updates for instance. So all update classifications but NOT definition updates.

    The '-' trick only works for ADRs to my knowledge.
    For searching within the console, anytime you add criteria for the same attribute, it always adds it with an OR. This is a known design shortfall.
    For your question specifically though, you need to reverse your thinking and instead of being exclusive, think inclusively. Thus, you can add an attribute multiple times to the search criteria by selecting and adding it multiple times  -- once for each
    classification that's not definition updates. Then, save the search as pointed out by Torsten.
    Jason | http://blog.configmgrftw.com

  • Advanced Search in Sharepoint 2013 Foundation

    All,
    I am looking for an advanced search like search based on certain properties in Sharepoint Foundation 2013.
    Is it feasible or any other way I can achieve it?
    Thanks,
    Saumil

    Hi Saumil,
    Per my knowledge, the Advanced Search Box web part is no long used in SharePoint 2013.
    So if you want to use the web part, you can export and import the Advanced Search box web part to SharePoint 2013.
    However, only the web parts which have been upgraded to SharePoint 2013 at the same patch level can be used in your environment.
    So you can upgrade a site with a page has Advanced search box web part in it to SharePoint 2013 and then export that web part to your site.
    Here is a similar thread for you to take a look:
    https://social.technet.microsoft.com/forums/sharepoint/en-US/99e6d5f2-76da-4fdd-8464-24159f12cee1/advanced-search-box-web-part-is-missing
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for