Advanced Search Form - PART II

In the insert page: People introduce the birth date of the
dog.
In the search page:
I have a pulldown menu with the values "Baby"; "Young";
"Adult" and finally, "Oldies".
For each of this values I will need to have a range:
Baby - until 6 months.
Young - From 6 Months until 3 years.
Adult - From more then 3 until 8 years.
Oldies - more then 8 years.
I have a SQL script that gives me the Age in years:
SELECT CURDATE(), (YEAR(CURDATE())-YEAR(data_nasc_an)) -
(RIGHT(CURDATE(),5)<RIGHT(data_nasc_an,5)) AS Age
The problem is that if the little dog as less then 12 months
he will return 0. This will be not a big issue, but dogs grow a lot
in the first year, so we cannot put a dog with 2 months and a dog
with 11 months like being the same.
1) How can we show the age in a way that the first year can
be show in months?
2) How can we, for this case of Age, get a range of values
associated with the combo box?
Any feedback on this please?
Thanks in advance

I'm getting the following error:
Notice: Undefined index: idade in
/home/cantinho/www/www/admin/cantinho/encontrar_animal.php on line
86
And this line have:
switch($_POST['idade']) {
I have tried to use if (isset($_POST['idade'])) to try to
avoid this error, like this:
<?php
if (isset($_POST['idade'])) {
switch($_POST['idade']) {
case 'bebe':
$sql = 'SELECT * FROM dogs WHERE data_nasc_an <
SUBDATE(NOW(),
INTERVAL 6 MONTH)';
break;
case 'jovem':
$sql = 'SELECT * FROM dogs WHERE data_nasc_an >
SUBDATE(NOW(),
INTERVAL 6 MONTH) AND data_nasc_an < SUBDATE(NOW(),
INTERVAL 3 YEAR)';
break;
case 'adulto':
$sql = 'SELECT * FROM dogs WHERE data_nasc_an >
SUBDATE(NOW(),
INTERVAL 3 YEAR) AND data_nasc_an < SUBDATE(NOW(),
INTERVAL 8 YEAR)';
break;
case 'velhotes':
$sql = 'SELECT * FROM dogs WHERE data_nasc_an >
SUBDATE(NOW(),
INTERVAL 8 YEAR)';
else {
echo '$_POST[idade] not valid or something the point is, I
have no idea what to put here :(';
but no luck either.
My drop-down menu are defined like this:
<select name="idade" id="idade">
<option value="%" <?php if(isset($_POST['idade'])
&& $_POST['idade'] == "%") echo 'selected="selected"';
?>>Qualquer</option>
<option value="bebe" <?php if(isset($_POST['idade'])
&& $_POST['idade'] == "bebe") echo 'selected="selected"';
?>>Bebé</option>
<option value="jovem" <?php if(isset($_POST['idade'])
&& $_POST['idade'] == "jovem") echo 'selected="selected"';
?>>Jovem</option>
<option value="adulto"<?php if(isset($_POST['idade'])
&& $_POST['idade'] == "adulto") echo 'selected="selected"';
?>>Adulto</option>
<option value="velhote" <?php
if(isset($_POST['idade']) && $_POST['idade'] == "velhote")
echo 'selected="selected"'; ?>>Velhote</option>
So it should not give this error.
This will not be a big issue since its only a notice, but the
query does not work either - When I press Submit he gives me all
always all ages - so maybe its related somehow?
Thanks again.
ADD-ONS to this post :
I have test the querys in a new f"aketest" recordset but they
are not accurate.
I have change the querys for this:
Select CURDATE(), (YEAR(CURDATE())-YEAR(data_nasc_an)) -
(RIGHT(CURDATE(),5)<RIGHT(data_nasc_an,5)) as Idade FROM animal
HAVING Idade < 3
It does not solve the months problem, but It was only for
testing proposes, and this query worked ok in the fakerecorset BUT
the form stills ignore the value of the drop-down because no filter
was made.
So, before que mysql querys, the drop-down in the form must
be connected with the values of the database, and that's not the
case right now.
Anyone please?...

Similar Messages

  • Add custom property restrictions in advanced search web part

    hi,
     I am having the default advanced search box web part in my ent.search center site collec. but as per my requirement i need to a  few items in the property restrictions dropdown in my advanced search web part.
    is this possible in sp 2013 e.t serach center  site collection?
    any help is  highly appreciated!

    Hi,
    Check this
    http://technet.microsoft.com/en-us/library/ff621097.aspx
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c25d418d-d4a2-47a3-9abe-c27656764843/how-to-add-custom-property-in-advanced-search-page?forum=sharepointgeneralprevious

  • In Advanced Search Web Part , more than 5 properties filter cannot be added

    In SharePoint 2013  Advanced Search Web Part, Under Add Property restrictions, Maximum number of search filter (AND / OR)  is allowed is 5. How can I increase this count ?

    Hi,
    As I understand, you would like to have more than 5 property filter in Advanced Search web part.
    According to this article, it is one of the limitation in OOTB Advanced Search web part: "The property search doesn’t allow the users to specify more than 5 property filters." As workaround, "Reuse the OOTB Advanced Search UI’s hidden controls
    that determines the search attributes (ASB_PS_…)". Please refer more information via:
    http://blogs.msdn.com/b/senthilkumarmani/archive/2010/06/05/custom-advanced-search-metadata-values-pre-populated-for-user-selection.aspx
    Also, I find two articles about customizing the advanced search Webpart adding custom properties in case you need:
    http://vuppalasanthosh.blogspot.com/2013/03/customizing-advanced-search-webpart.html
    https://waelmohamed.wordpress.com/2011/05/31/add-custom-search-properties-in-your-advanced-search-sharepoint-2010/
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Advanced Search Web Part in SharePoint 2013

    I would like to know more about advance search web part in SharePoint 2013. How it looks and implementation ?

    Hi,
    Please go through below video/links for more details on SharePoint 2013 Search and associated feature.
    http://www.youtube.com/watch?v=T1J_pMD7V_4
    https://social.technet.microsoft.com/forums/sharepoint/en-US/99e6d5f2-76da-4fdd-8464-24159f12cee1/advanced-search-box-web-part-is-missing
    Hope this helps you.
    Regards
    Soni K

  • Advanced search web part issue

    hi,
     i am implementing a  advanced search web part , and in that  property restrictions, i have added  2  doument library columns [ not the site columns ]
    from my subsite in my site collection.
    but when i give some search keywords and perform   search, i am not able to get the search results in terms of documents/content.
    any extra settings do i need to do for performing advanced search
    1) Do i really need site columns to be created under the site collection , in order to be  searchable ?
    if i create a  simple document library column and cant i get it in the crawled properties section
    in the  central admin's search serv appln's  search schema section?
    pls advice

    As per my understanding you can crawl DL columns
    Can you get that document in search results page? Please check to see if the site which contains the library is included in content source.
    Could you please check site settings->Site Administration->Searchable columns, maybe the column is excluded?
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/b97a43b1-c727-4daa-a0d9-a18e53e09dd9/list-and-document-library-title-column-crawled-properties?forum=sharepointadminprevious
    Go to your Search Service Application in Central Administration.
        Click on Metadata Properties in the left navigation.
        Click on the Crawled Properties link.
        Click on the Categories link then select the SharePoint category
        Navigate the pages (next page arrow link) until you see ows_Title. Click on ows_Title.
        In the "Mappings to Metadata Properties" area of this page, ensure that the "Include values for this property in the search index" checkbox is checked, then Click OK. This checkbox is not checked by default.
        Repeat the same procedure above for your ows_Description crawled property to confirm that it is included in the index - which it should be by default.
        Start a Full Crawl 
    This will now include these crawled properties in the index and should now be available in the Managed Property which exposes them for Search.
    If this helped you resolve your issue, please mark it Answered

  • Advanced Search Web Part

    Hi Everyone,
    Does anyone know where I can find the Advanced Search web part in 2013? I have used this web part many times in SharePoint 2007 and 2010 but can't seem to find it in 2013. Did Microsoft remove or rename it? Any help would be greatly appreciated.
    Thanks,
    Dan
    Dan Marth

    Hi,
    According to your description, you could not find advanced search web part in SharePoint 2013.
    For SharePoint 2010, the advanced search web part is in the default page of Search Center.
    For SharePoint 2013, the advanced search web part is at the bottom of the search result page.
    You may need to search something firstly and then you can see the Advanced Search Option at the bottom of the page.
    Feel free to reply if there are still any questions.
    Best regards
    Wendy Li
    TechNet Community Support

  • Issue in performing search using advanced search web part with any of these keywords.

    Hi,
    I am implementing advanced search web part, and i have added few columns [  these columns are doc lib columns and NOT site columns ],property restrictions dropdown.
    and when i  try to search for the documents,  contents from the subsites with the applied item from the property restrictions dropdown and with  "contains" keyword , and  filled-in the "any of these keywords"
    textbox,
    the search results  are not displayed , though there are multiple documents which has the keywords.
    am i missing any steps  here.? i have ensured that managed properties  were created and added in the properties.xml file in the adv.search web part's properties.

    hi Steve,
    thnx for the reply.
    here is my xml file details:
    <PropertyDef Name="DocComments" DataType="text" DisplayName="Comments"/>
        <PropertyDef Name="CreatedBy" DataType="text" DisplayName="Created By"/>
        <PropertyDef Name="ModifiedBy" DataType="text" DisplayName="Last Modified By"/>
        <PropertyDef Name="WellOWSTEXT" DataType="text" DisplayName="Well Name"/>
        <PropertyDef Name="BlockOWSTEXT" DataType="text" DisplayName="Block Name"/>
        <PropertyDef Name="ProjectOWSTEXT" DataType="text" DisplayName="Project Name"/>
        <PropertyDef Name="LocationOWSTEXT" DataType="text" DisplayName="Location"/>
        <PropertyDef Name="DisciplineOWSTEXT" DataType="text" DisplayName="Discipline"/>
      </PropertyDefs>
      <ResultTypes>
        <ResultType DisplayName="All Results" Name="default">
          <KeywordQuery/>
          <PropertyRef Name="Author" />
          <PropertyRef Name="Description" />
          <PropertyRef Name="FileName" />
          <PropertyRef Name="Size" />
          <PropertyRef Name="Path" />
          <PropertyRef Name="Write" />
          <PropertyRef Name="CreatedBy" />
          <PropertyRef Name="ModifiedBy" />
          <PropertyRef Name="WellOWSTEXT" />
          <PropertyRef Name="BlockOWSTEXT" />
          <PropertyRef Name="ProjectOWSTEXT" />
          <PropertyRef Name="LocationOWSTEXT" />
          <PropertyRef Name="DisciplineOWSTEXT" />
        </ResultType>
      </ResultTypes>
    </root>
    am using the managedproperties without spaces. the problem is that, when i give  the word/words
    in the "any of these words" textbox and  if i give a value with the "contains" dropdown 
    its not allwoing me give proper results.
    After adding these property restrictions i have done the full crawl again.
    @Steven Adnrews: i have done the full crawl, multiple times. Though these columns are NOT created as site columns, it came as managed properties in my Srch Serv.Appln, search schema page.
    @Fabian: i am not getting your point.Can you pls tell,where will I see the xsl. i  think, the xsl editor and xsl configuration has been replaced by html display templates in SP 2013 Search.

  • Enhancement reqest: Advanced Search form

    I would like to request another form wizard like all the great ones already there. A Advanced Search form wizard.
    Basically a form that asks for a bunch of query items like those found on any Advanced Search form and depending on which ones are non-blank, constructs a dynamic query and populates a SQL query region when the Search button is pressed.
    Thanks

    From what I can tell from each of the examplesthere
    is no option to specify any kind of compoundcriteria
    syntax for a single field, as I pointed out in my
    earlier post, e.g. where id=1 or id=2 and type=6and
    type=7. That kind of thing.Right, but (IMHO) your UI is approaching the problem
    too "literally" i.e. too much in terms of the
    underlying SQL. You are making the user literally
    think in terms of a SQL SELECT statement.I agree to some extent - it clearly looks like a query builder - but the UI provides an abstraction layer so the user doesn't have to worry about typing the underlying syntax correctly.
    And remember, this is a business application - not Google. In my experience users of business applications are pretty demanding when it comes to getting at their data. Not that I want to perpetuate bad designs on anyone. I just want to make sure the user has the tools they need. And they want field level searching.
    >
    P.S. I've already implemented a basic searchfunction
    at the top of each report page that let's the user
    enter a single value that will do an 'OR' againstall
    the fields in the view. It's just that the userRight, thats the way most search functions work. You
    type a keyword and the system does a full-text
    case-insensitive search for that keyword across a
    pre-determined set of columns.
    doesn't really have any control over which fieldsare
    tested against the value.Another way to approach this would be to put up a
    single search text field and list all the columns you
    want to search across as checkboxes. User can select
    the column(s) he wants the keyword to be searched
    in.
    Your example of multiple predicates on the same
    column is a little unusual, but
    where id=6 or id=7Unusual, perhaps..., until you get a request from someone that wants to find all the equipment with serial numbers between XYZ123456 and XYZ2345678. ;>)
    This can be implemented as a multi select list (or N
    separate text fields) where user can select/enter
    each value and you go and build the resulting SQL.I've thought of making the values select lists based on valid entries that exist in the table for a couple of cases where it might be appropriate - but I need to get basic function working first.
    >
    Just some ideas...
    ThanksThanks again for your thoughts. I have an example page on OTN that give the beginnings of my idea here: http://htmldb.oracle.com/pls/otn/f?p=36337:14 It's not fully functional yet but if you click the Search button it will throw the where clause in the text box at the bottom of the page. Let me know what you think if you get a chance.
    Earl

  • Customizing the advanced search form (showing less parameters)

    Hi,
    can I customize the advanced search form in Portal, for
    instance, to hide some parameters like "item attributes"
    or "item types"?
    I've read the thread at http://forums.oracle.com/forums/message.jsp?
    id=562712 where it shows how to write a custom advanced search,
    but that requires some programming efort. are there any easier
    alternative?
    many thanks.

    You could try to cpoy the HTML source of the advanced search
    page, copy it in a HTML-portlet or dynamic page, and remove the
    fields you don't want to show.
    I had succes this way with the search portlet and add_groups
    portlet, didn't try the advanced search page though.
    Ton

  • Advance search not working with gender check

    Hi all,
    I am not sure if this is something you can help me with or if I am missing something totally obvious.
    I have a "advanced search form" which has a few options to check through such as age, city, nationality etc and I have two recordsets, one for the logged in user who's gender is stored in $SameGenderCheck
    And I have an SQL statement for the search form's search criteria.
    Below is the SQL statement:
    $query_search_res = "SELECT * FROM profiles LEFT JOIN profile_details ON profiles.profile_id = profile_details.profile_id WHERE (city = '$location') OR (ethnicity = '$ethnicity' OR nationality = '$nationality' OR marital_history = '$marital_history' OR height = '$height') AND (Age BETWEEN '$age_from' AND '$age_to') AND (gender != '$SameGenderCheck') AND (approved = 'Yes')";
    Thanks.

    I see.
    I will do my best.
    I have two tables "profile" and "profile_details" (there is a left join here)
    The name and contact details are in the table called "profile" and personal details such as height, nationality,marital status etc
    All fields are filled in.
    "Profile" also stores the gender of the user.
    So the idea of the form is to allow the visitor to type/select any and all of the search criteria and adv_search_results.php should display the matched criteria.
    The user must not be the same gender as the people in the results. So if user is male the person they are searching for should only be female. And vise versa.
    Here are my code snippets.
    Logged in visitor:
    mysql_select_db($database_db, $db);
    $query_loadProfile = "SELECT * FROM profiles LEFT JOIN profile_details ON profiles.profile_id = profile_details.profile_id WHERE email_address ='".$_SESSION['MM_Username']."' AND approved = 'Yes'";
    $loadProfile = mysql_query($query_loadProfile, $db) or die(mysql_error());
    $row_loadProfile = mysql_fetch_assoc($loadProfile);
    $totalRows_loadProfile = mysql_num_rows($loadProfile);
    $SameGenderCheck = $row_loadProfile['gender']; <--- THIS TAKES THE CURRENT LOGGED IN USER's GENDER
    This is the recordset for the search criteria:
    mysql_select_db($database_db, $db);
    $query_search_res = "SELECT * FROM profiles LEFT JOIN profile_details ON profiles.profile_id = profile_details.profile_id WHERE (city = '$location') OR (ethnicity = '$ethnicity' OR nationality = '$nationality' OR marital_history = '$marital_history' OR height = '$height') AND (Age BETWEEN '$age_from' AND '$age_to') AND (gender != '$SameGenderCheck') AND (approved = 'Yes')";
    This is the results page output:
    <table width="100%" border="0" cellspacing="2" cellpadding="2">
                                <tr>
                                  <td valign="top"><div align="left">User ID</div></td>
                                  <td valign="top"><div align="left">100<?php echo $row_search_res['profile_id']; ?></div></td>
                                </tr>
                                <tr>
                                  <td valign="top"><div align="left">City</div></td>
                                  <td valign="top"><div align="left"><?php echo $row_search_res['city']; ?></div></td>
                                </tr>
                              <tr>
                                <td valign="top">Ethnicity</td>
                                  <td valign="top"><?php echo $row_search_res['ethnicity']; ?></td>
                                </tr>
                              <tr>
                                <td valign="top">Nationality</td>
                                  <td valign="top"><?php echo $row_search_res['nationality']; ?></td>
                                </tr>
                              <tr>
                                <td valign="top"> </td>
                                  <td valign="top"><div align="right"><a href="profile.php?id=<?php echo $row_search_res['profile_id']; ?>" target="_blank">View Profile</a></div></td>
                                </tr>
                              </table>
    Please note I have not put the whole code of the results page as it loads other non critical things.
    I hope this is enough

  • Customization in Advanced Search Area.

    Hi All,
    There is a requirement in advanced search area of return orders.
    Based on the transaction type selected, corresponding status values has to be populated.
    Here im populating the transactio type values in the drop down list box and status value i have to populate in the value help/ drop down/ F4 application, but these status values should be populated based on the transaction type we have selected.
    We are working on CRM 5.0 version, and i have done few things,here im listing out the steps.
    1) For the Transaction type field i have enable the Roundtrip CS search option.
    2) I have created a new ABAP structure for the transaction field(ZCS_Trans_Search).
    3) I have appened this abap structure to the calling F4 application (Status F4 appln)
    4) implementing the IF_CRM_BSP_MODEL_ACCESS_IL_2FILL_F4_STRUCTURE and IF_CRM_BSP_MODEL_ACCESS_IL_2CHECK ACTIVE_SHUFFLER methods, but still im not able to enter in to this methods in the debug mode.
    These steps i have done with the ref to PCUI COOK BOOK 5.0 version, here im copying the steps given in PCUI 5.0
    5.1.3.7 Context sensitive value help
    The current complex value help is not fully context sensitive. It does not consider the information
    the user has already entered on the screen, If it is present in different screen position or in different
    line of a list than the field on which F4 is pressed. Thus, the value help often displays result set
    which are not related in the current context. To make value help context sensitive following points
    must be improved.
    • The complex value help must consider the entries of relevant fields on the calling
    applications screen as search criteria.
    • The value help application should be enabled to set the value in the Search-Shuffler
    depending on the current context.
    • The application should be enabled to dynamically disable the availability of the value help
    icon for a field.
    To implement this feature for any field in the field group following steps to be performed:
    1. New field group customizing flag is added the by checking this enables context sensitive
    search for a input field. Field group customizing is called “Roundtrip CS Search”.
    <Include the figure>
    2. Determine the fields to be transferred to the value help application from calling application
    and create ABAP structure from this fields.This structure is called “Context sensitive
    screenstructure” (CS structure). Assign this CS structure to the complex value help
    application which is associated with the input field. This is done in:
    Transaction crmc_blueprint
    Open the node “Application/Layout node “
    Edit the value help application
    Enter the name of the structure in the filed “Struct. For Context-Sensitive srch. Help ”
    (F4_CS_STRUCTURE)
    3. PC-UI FW takes the CS structure data from the calling application and defaults them in the
    value help applications advance search screen structure. Include this CS structure to the
    advanced screen structure of value help application to have the same fields of CS structure
    and add the corresponding fields for the CS structure to field group of advance search.
    4. Implement IF_CRM_BSP_MODEL_ACCESS_IL_2~FILL_F4_STRUCTURE in the calling
    applications Model Access Class. In this method you fill the value in CS structure which will
    be passed to the value help application.
    IF_CRM_BSP_MODEL_ACCESS_IL_2~FILL_F4_STRUCTURE
    5. Implement / or enhance if already implemented
    IF_CRM_BSP_MODEL_ACCESS_IL_2~CHECK_ACTIVE_SHUFFLER in value help
    applications MAC. This step is optional, With this you will be able to select the correct
    shuffler based on the context sensitive data passed with new import parameters values to
    this method.
    IF_CRM_BSP_MODEL_ACCESS_IL_2~ CHECK_ACTIVE_SHUFFLER.
    Please do suggest me.. what are the things further i need to do..
    REMEMBER: I have to do this implementation in the advance Search area.
    Regards.
    Anilkumar.

    Hi,
    As I understand, you would like to have more than 5 property filter in Advanced Search web part.
    According to this article, it is one of the limitation in OOTB Advanced Search web part: "The property search doesn’t allow the users to specify more than 5 property filters." As workaround, "Reuse the OOTB Advanced Search UI’s hidden controls
    that determines the search attributes (ASB_PS_…)". Please refer more information via:
    http://blogs.msdn.com/b/senthilkumarmani/archive/2010/06/05/custom-advanced-search-metadata-values-pre-populated-for-user-selection.aspx
    Also, I find two articles about customizing the advanced search Webpart adding custom properties in case you need:
    http://vuppalasanthosh.blogspot.com/2013/03/customizing-advanced-search-webpart.html
    https://waelmohamed.wordpress.com/2011/05/31/add-custom-search-properties-in-your-advanced-search-sharepoint-2010/
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Addiing fixed filters to Advanced Search

    We have a set of libraries with custom columns in each. These are resulting from importing metadata from a legacy document management system. What I need to be able to do is to set up a way of searching each of these libraries and associated metadata in
    isolation from each other.
    I have created a page for each library using the advanced search web part and tried to customise it. I can add the metadata search fields sucessfully and use them to narrow down the search but the results page returns results from the whole subsite. I have
    had limited sucess using an additional column for each library that has a unique name and I can use the drop down to search that but I would like to be able to force that in the search.
    I can do it with the simple search (setting additional query terms) but then I don't get the option to add the restrictions for the other columns. I thought I could edit the keywordQuery field to add in something like
    metaterm:"ABC"
    This works if I add it to a result type that already specifies a document type but not for the generic "All Results". What have I missed.
    The result type that works only works if I use the OR operator and not the AND operator, I would have expected the AND to give me what I want and the OR to give me lots more results.
    Hope someone can help
    Thanks

    Hi,
    Based on your description, you want to search from each library.
    My suggestion is that you can create search scope for every library and use the scope in the Advanced search web part.
    1. Create search scope for every library, and when you create, you should choose the advanced search, only you choose the advanced search, the search scope will display in the advanced search web part.
    2. Edit the advanced search web part, choose the show the scope picker, you can see the search scope in the advanced search web part.
    How to create a search scope:
    http://www.bentedder.com/create-a-search-scope-for-a-sharepoint-2010-list-or-library/
    Best regard,
    Victoria
    Victoria Xia
    TechNet Community Support

  • Getting the Advanced Search (SP2013) to only search from the Current Site downwards

    Hi
    I know the Advanced Search webpart has not been updated for years (It still has scopes in the "Modify Web Part" !)
    But.....
    Can I get the SP2013 version to search from the current site downwards rather than starting at the top level site every time ?
    Thanks
    Nigel
    Nigel Price NJPEnterprises

    You need to set up a new result source and change the query transform to something like this:
    {searchTerms} AND Path:"http://basesmc15/teamonesubone"
    Then navigate to the results.aspx that the advanced search sends it's query to. Here edit the page and edit the Search Results web part. Click on "Change Query". Select  the new result source you just created from the drop down. All the queries
    will now use this result source which is limited to that subsite. Make sure to uncheck the "Show the Result Type Picker" option on the advanced search web part.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • MS-SQL - Like search form from a group of products.

    SELECT P.ID AS ProductID, P.Name, P.Price, P.ProdID,
    P.ShipCost,
    P.ClearSale, P.SalePrice, G.gid, G.pid AS Gpid, G.ord,
    PC.cid, PC.gid AS
    PCgid
    FROM atblProducts P INNER JOIN Groups G ON P.ID = G.pid INNER
    JOIN PCat
    PC ON G.gid = PC.gid
    WHERE (P.price IS NOT NULL AND PC.cid = 51 OR PC.cid = 52 OR
    PC.cid = 53
    OR PC.cid = 54) OR P.Name LIKE '%MMColParam3%' OR P.ID LIKE
    '%MMColParam3%'
    ORDER BY P.ProductID
    WHERE P.Price IS NOT NULL AND PC.cid = 51 OR PC.cid = 52 OR
    PC.cid = 53
    OR PC.cid = 54
    This gives me the group of products that I need but as soon
    as I add the
    '%MMColParam3%' bit to see the items searched on, it fails.
    What I am doing is pulling in the '%MMColParam3%' using a
    form to check the
    product name, and the description out of a group of 4
    categories: 51, 52,
    53, 54. I can get the 4 categories to display but as soon as
    I add the OR
    P.Name LIKE '%MMColParam3%' OR P.ID LIKE '%MMColParam3%'
    bit, it fails.

    hi
    I don't think that building a search page on a read-only View Object should be a problem.
    Maybe these screencasts by Steve Muench about creating simple search pages with ADF Business Components and ADF Faces (JSF) could help.
    - Part 1: Web-Style Search Form
    - Part 2: Oracle Forms-Style EnterQuery/ExecuteQuery Mode Page
    - Part 3: Search Form Using View Object with Named Bind Parameters
    success
    Jan Vervecken

  • Advanced search based on term set

    I have a picture library where I use a term set to tag photos. The managed property is called owstaxIdCuisine.
    When I perform a keyword search using one term from the term set (e.g. "vegetarian"), I would expect the pictures tagged with this term to be on top of the results. However it is not the case.
    I have tried to include my managed property under "Add property restrictions" and enter the keyword there, but it doesn't seem to make any difference.
    When I use refiners on the search results, it works fine: if I click the "vegetarian" checkbox, then I get only the vegetarian pictures. However I'd like my users to get the correct results directly from the advanced search form.
    What am I missing?
    Christophe Humbert Path to SharePoint http://blog.PathToSharePoint.com User Managed Solutions http://UserManagedSolutions.com

    Hi Christophe,
    Have you checked if you could add the custom managed property in the advanced search form per the following article?
    http://waelmohamed.wordpress.com/2011/05/31/add-custom-search-properties-in-your-advanced-search-sharepoint-2010/
    Thanks
    Daniel Yang
    TechNet Community Support

Maybe you are looking for

  • Hr scenario urgent....

    Is it possible to perform all HR Actions (Hire, Transfer, Pay Increases, Terminationsu2026..) through  a 3rd party software and that this information be loaded into the SAP System to support Time and Attendance inside SAP? means they want Time Manage

  • How do i get the nano sim card for my unlocked iphone 5c to work on verizon

    I bought an iphone 5c from Apple last week, after my iphone 5 screen shattered.  I was told I could just insert the sim and follow the directions.  Turns out, that the one I purchased does not work with the phone/carrier.  Where can I get a nano sim

  • 4GB Ipod's touchscreen not responding.

    So I was drunk the other weekend and my ipod fell out of my pocket into my yard where it rained before I found it the next day. The ipod is charging and the everything seems to be fine but my touchscreen doesn't respond. Should I send it in?

  • Ping function in PL SQL

    Hello, I was trying to do a ping PL SQL function that I could use to check if a web service is up or not before querying. I found some examples and finally did the below, am getting ORA-00904 & cannot see what is wrong. Maybe someone out there could

  • Fetching accessible record type list for any user

    How to get list of standard record types being accessible for any user role? One solution - We know the entire list of standard record types, so we can keep trying to access each record type and if we get access violation exception, then skip that re