Using a Search Filter in a Query

Hello,
Version 4.1.1.00.23
I have Tabbed Form with a query that I want to set up a filter on.
The table has 5 columns that the user can select from the filter. All five columns contains a status id for that particular column.  The columns are OVERALL_STATUS, SCOPE, SCHEDULE, RESOURCES, and EXTERNAL_READINESS.  The values in these columns can be R, Y, or G to represent RED, YELLOW, or GREEN.
The requirement is to return the rows that only have a 'G' (Green) for the respective column.
The LOV for the filter contains a STATIC list to represent the columns from this table.
STATIC2:Overall Status;OVERALL_STATUS, Scope;SCOPE, Schedule;SCHEDULE, Resources;RESOURCES, External Readiness;EXTERNAL_READNESS
The query looks similar to this:
[code]
SELECT <column list>
FROM table
WHERE : Pxx_SEARCH = 'G';  (NOTE: I put a space between the colon and the Pxx because the window thought I tryng to make a smiley face)
[code]
This does not return any rows. I thought that when the query was resolved the substitution would be done, but I think that APEX it putting single quotes around the value. i.e. WHERE 'OVERALL_STATUS' = 'G'.
Can someone help how to fix this?
Please let me know if I'm not clear.
Thanks,
Joe

The  :PxxSEARCH isn't a substitution but a value.
If I understand you correctly this may do it:
SELECT <column list>
FROM table
WHERE  DECODE(:Pxx_SEARCH,  'OVERALL_STATUS',overall_status,
                             'SCOPE',scope,
'SCHEDULE',schedule,
'RESOURCES',resources,
'EXTERNAL_READINESS',external_readiness) = 'G';

Similar Messages

  • [EWS][Java] How can I use the Search Filter only mails with attachments?

    Hey,
    I'm trying to search a folder ( doesn't matter  which ) for ONLY mails with attachments.
    How can I use the search filter for that purpose? 
    Thanks!

    You can drag the attachment collumn from settings and sort on that collumn
    In the main Outlook window, on the View menu, point to
    Current View, and then click Customize Current View.
    Click Fields. In the Available fields list, click the field that you want to add, and then click
    Add.
    Come back and mark replies as answer if they help, and help others with the same problem. If this post is helpful please vote it as Helpful on the left side.

  • I cannot use Online Search in my Power Query

    When I'm using the power query, the "search online" is disable. Do you know how to active this function? Thanks!

    Some questions:
    1) If you are not already using the latest version of Power Query, can you try update to the latest and retest?
    2) Can you provide a screenshot?  Also any tooltip popup when you move mouse over the disabled text/icon?

  • Enchancement Request: IR arrow button in Search Filter uses applied Filters

    Hello,
    I'd like to request an Enhancement.
    I'd like the IR arrow button in IR Search Filter, when performs the DISTINCT to provide choices in list for the user to select, that would take into consideration any other Filters that have already been applied to the IR Report in.
    Currently it seems that it ignores any of these already applied filters and provides the DISTINCT list of the default report settings row set.
    Referencing thread:
    How to display values in arrow in Filter in IR for joined table columns ?
    TIA
    Dionyssis

    Ah ha! I figured out a solution. It took one of those "ah ha" moments to do it.
    Peter.... thanx for the suggestion, but I am using the built-in Interactive Report settings to hide the Actions button and other things. I am also attempting to hide the section on the page which displays the current filtering, control breaks, etc. that are applied to the report. This is because the page is a public page and needs to be as simple as possible and I do not want the end users to have the ability to turn pre-built filtering and control breaks on and off. The problem is that the user-entered filtering is displayed in the same place as the pre-built filtering and I want to display the former, but not the latter.
    I created a display-only item on the page containing the text that should show when the user has entered some search criteria in the search box. I then created a dynamic action which is triggered by the refresh of the interactive report and runs some javascript which first checks if there is "custom search criteria" applied and then hides or shows the display item accordingly. My javascript code is below for those interested.
    if ( $('#apexir_CONTROL_PANEL_COMPLETE .fielddata:contains("Row text contains")').text() )
    { $x_Show('P1510_FILTER_ENABLED') } else { $x_Hide ('P1510_FILTER_ENABLED') }Shane.

  • How to use OData Date filter query to filter data from OData NetWeaver Gateway Service?

    Hello,
    I am trying to use the OData Filter query. to filter data records from the OData Service, using Date range for filters.
    Please check the below URL for the SAP's sample OData Service, with filter option.
    Service Query URL :
    https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/SalesOrderCollection?$filter=CreatedAt eq DateTime
    It gives out following error :->
    <message xml:lang="en">'$filter ' is not a valid system query option</message>
    Please let me know, if there is any mistake in the Query or is there anything that needs to be done on the
    Backend  Service.
    Thanks & Regards,
    Suraj Kumar

    Hi Jitendra,
    Once again, thank you for your help.
    I am able to filter the records using a date range.
    I am sharing the information, just in case anyone out there might need it.
    The OData Filter Query for Date Range (i.e. with Two date values) will return the results only if the OData Back-end Service is modified to accommodate such filter requests.
    This has to be done in ABAP.
    Please refer the following links which talks more about the Back-end ABAP Service being modified to ensure that the service returns records of data, as per the date range filter query
    http://scn.sap.com/thread/3170195
    http://scn.sap.com/blogs/lindsay.stanger/2012/12/29/gateway-odata-calls-convert-ivfilterstring-to-itfilterselectoptions
    http://scn.sap.com/thread/3173146
    Hope these links are helpful for those looking for OData Date Range filter query.
    Do let me know.
    Regards,
    Suraj Kumar.

  • Using the results of one Query in a workbook as a filter in another query

    Hello!
    I'd like to have one workbook which my users can execute and the result from one Query (e,g, Customer Account Number) will then be used as a filter in a second query (which would be from a different cube).
    Can this be done?
    Cheers.

    Hi,
    As far as I understand your requirement, you want to pass the result of one query to another query as a filter.
    Well you can do this, by Using Replacement Path Variable.
    For e.g. you want to pass Values of Custmomer Account Number to another query. In the second query, create one variable on Customer Account Number with type Replacment Path. Here it will ask you to enter the name of the query from which you would like to take the values of Customer Account Number.
    When you will run the second query , it will execute the first query from which you want to read the customer accoutn number in the back-end. And it willl display the output the second query as per the valeus of customer account number.
    This will help.
    - Jaimin

  • Using AppleScript for launch a raw-query Spotlight search?

    As per usual with my limited scripting skills, I am finding the apparently simple stuff rather difficult to achieve.
    My problem with Spotlight is that I want to use the same type of raw query repeatedly, but I want to avoid the tedium of having to:
    1) open my saved search
    2) choose "Show Criteria" to make the saved raw query visible
    3) edit the text field containing the raw query, where the visible stuff is not what I want to edit, so I have to scroll to the right within that tiny field
    So my idea would be to design a simple UI with AppleScript that
    1) pops up a dialog asking for a phrase to search
    2) launches a Spotlight search using the raw query:
    kMDItemTextContent=="xxx*"
    where "xxx" is the phrase that I am searching for, and opens a Finder window with the results of that search.
    My reason for wanting to do this is that, by default, a search for an exact phrase with Spotlight fails to return matches that contain the plural form when the searched phrase is a singular.
    See:
    http://www.betalogue.com/2010/05/07/spotlight-plural/
    http://www.betalogue.com/2010/05/11/spotlight-phrase/
    for more information about the background for this.
    Would this be relatively easy to do with AppleScript?
    Thanks in advance.
    Pierre

    Hi
    Pierre Igot wrote:
    Am I correct in assuming that this means that what I wanted could not just be achieved with AppleScript and required a Perl script?
    Message was edited by: Pierre Igot
    A smart folder is an XML file (PLIST), you can edit it in many ways.
    It's possible with other shell commands (sed or awk).
    But perl works seamlessly with extended characters (ASCII > 127)
    Also it's possible with AppleScript commands (open for access, read, write, close access), or with *property list file* in System events
    But it requires more lines of code.
    Here's the script :
    global a_text
    set smartFolder to "/Users/jack/Library/Saved Searches/Recherche dans “Bureau”.savedSearch"
    set a_text to text returned of (display dialog "Enter a phrase to search" default answer "")
    if a_text contains """ then
    set a_text to findAndReplace(""", "\"", a_text)
    end if
    tell application "System Events"
    set TheXML to property list file smartFolder
    repeat with i in (get property list items of contents of TheXML)
    set t_name to name of i
    if t_name is "RawQuery" then
    tell i to set value to my replace_text(get value)
    else if t_name is "SearchCriteria" then
    tell property list item 2 of property list item "displayValues" of property list item 1 of property list item "FXCriteriaSlices" of i to set value to my replace_text(get value)
    else if t_name is "RawQueryDict" then
    tell property list item "RawQuery" of i to set value to my replace_text(get value)
    end if
    end repeat
    end tell
    set smartFolder to ((POSIX file smartFolder) as alias)
    tell application "Finder"
    activate
    open smartFolder
    end tell
    on replace_text(t)
    set x to the offset of "kMDItemTextContent==" in t
    set L to length of t
    repeat with i from L to 1 by -1
    if character i of t = """ then
    set y to i
    exit repeat
    end if
    end repeat
    return (text 1 thru (x + 20) of t) & a_text & (text y thru -1 of t)
    end replace_text
    on findAndReplace(tofind, toreplace, t)
    set ditd to text item delimiters
    set text item delimiters to tofind
    set t to text items of t
    set text item delimiters to toreplace
    set t to t as string
    set text item delimiters to ditd
    return t
    end findAndReplace

  • How do I use the Parameters from URL to filter on Content Query in ItemStyle.xsl?

    Hi, I might need your help with code that Content Query under <xsl:Template...> that I need a filter for 3 parameter from url (from date, to date(for date range) and type.
    eg: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports
    I've google for help and not sure they seem working so far.

    Hi,
    If you want to filter a Content Query Web Part with the parameters from URL, we can achieve it with OOTB of Content Query Web Part by adding "Additional Filters" in "Web Part Properties"->"Query". We can add
    three filters like:
    date is greater than [PageQueryString:DateFrom]
    And
    date is less than [PageQueryString:DateTo]
    And
    type is equal to [PageQueryString:Type]
    Then redirect to the URL: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports, the query results will be filtered.
    Please reply freely if I misunderstand your meaning or there any other questions.
    best regards
    Patrick Liang
    TechNet Community Support

  • Partial Reconciliation - Problem with Search Filter

    Hi All,
    I'm trying to do a partial reconciliation and am getting this error:
    INFO [ACTIVEDIRECTORY] ActiveDirectoryRecon/performReconciliation
    INFO [ACTIVEDIRECTORY] Search Filter (&(&(objectclass=user)(whenChanged>=20100312190553.0Z))(((&((objectclass=user)())(sn=Test)))))
    ERROR [ACTIVEDIRECTORY] Error during search : javax.naming.directory.InvalidSearchFilterException: Missing 'equals'; remaining name 'dc=dinghy,dc=hal,dc=test'
    INFO [STDOUT] javax.naming.directory.InvalidSearchFilterException: Missing 'equals'; remaining name 'dc=dinghy,dc=hal,dc=test'
    INFO [STDOUT] at com.sun.jndi.ldap.Filter.encodeSimpleFilter(Filter.java:305)
    Missing equals??? This is what I entered as the query filter:
    (&(objectclass=user)(sn=Test))
    I just want to do it on a user whose last name is Test. I took the query straight out of the documentation.
    I'm using an older adapter, 9.0.4, so they had me add this in the CustomizedReconQuery property of ITResource. The documentation also states:
    The CustomizedReconQuery attribute is used in conjunction with the
    isNativeQuery attribute. You use the isNativeQuery attribute to specify whether
    or not the query condition is in the native format.
    But I don't see a isNativeQuery property in either the ITResource or the Scheduled Task. I'm guessing that's not the issue anyway.
    Anyone see any obvious issue I'm missing?
    Thank you so much

    I have a flat file recon process that I believe is my trusted source and this Updates or Creates OIM users. I just want only certain users to update to AD.. only ones where OIM.EmployeeID = AD.EmployeeID.
    I got all the pieces together, except that all my OIM users have no EmployeeID, so I want to do a one time reconcliation from AD to get the AD.EmployeeID property into OIM.
    Since my ProcessForm's Employee ID field is being populated correctly from Reconciliation, I thought I could take that value and put it in the User form with a "Employee ID Updated" task, but that, for some reason, doesn't trigger as an update from Reconciliation, works when I click Save tho. I guess it's not meant to work that way.
    I've never heard of Entity Adapters, but I'll look into it now.
    Thanks much
    Alex
    EDIT - OK, so I see Entity is a type of Adapter.... how do I call this adapter? Do I make a process task that calls it? Do I do it as above and name it "MYFILED Updated", or do something else?
    Edited by: alecks29 on Mar 17, 2010 3:04 PM

  • How to Search/Filter DataGrid

    Hi,
    This is of course related to Flex 2. I am using a httpservice
    to fillup a datagrid. The question is, how can I filter the data in
    the datagrid based on some input string, like a search/filter
    functionality.
    cheers,

    Thank you, both of you. Actually I wasn't aware of the
    existence of
    filterFunction, so after batmitra mentioned it I was done.
    Still there are filtering functions like google's search
    query I was looking
    for, so that it searches multiple columns based on multiple
    search queries that
    are separated by spaces, which contain different types of
    data and being case
    insensitive at the same time. If any of you has a solution
    for that I would
    like to know that!
    Cheers,

  • Issues with Search Filter Criteria Button in Search Help

    Hi ,
    I have applied an elementary search help to a select option and this help is having four fields. The search help works fne and all the four fields are visible when i do a F4. Now , if i want to restrict the number of entries shown (the number of entries are huge) by clicking the "Search Filter Criteria" button , i dont see any of the four fields using which i can restrict the data . Do we need to do any configuration for this ??
    Regards
    Mayank

    Hi,
    in that search help itself you have a option called maximum number of hits, there is a impact if you restricted also.
    Thanks & Regards,
    Srinivasan.R

  • Using Content search web part to retrieve items from another site collection

    I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
    -http://applicationname/teamsite
    -http://applicationname/enterprisewiki
    Now I need to display the latest 10 wiki pages from the enterprise wiki site collection(according to the modified date) inside the team site. So I read that using Content search web part allow for cross-site content query. Currently I added a new content
    search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's wiki page library and to specify that I need to get the latest 10 wiki pages , inside the following dialog:-
    Basically this setting partially worked for me, I provide the following settings inside the “Build Your Query” dialog:-
    From the “Select a Query” I defined the following:- “items matching content type(system).”
    Restrict by app : “Do not restrict results by app”
    Restrict by content type “Enterprise Wiki Page”.
    This showed all the sites, lists and even pages are based on the “Enterprise Wiki Page” content type. But I am facing these three problems:-
    1. The above setting showed only the sites,lists and pages matching the “Enterprise Wiki Page” content type, that exists on another web application, and not that exists inside the current web application.
    2. To test the web part , I got the following results, But I was not able to add additional info for the items such as created by, modified by ,etc.
    3.  Also there is no way to sort the wiki pages by the modified date, as in the Sorting tab inside the “Build Your query” dialog I cannot find the “modified” inside the Soft by list
    So can anyone advice how to fix these three problems

    Hi,
    1. In "Build Your Query" dialog, we can select "Specify a URL" in
    Restrict by app and enter another site URL.
    2. If you want to add more information for the items, we need customize the display template, the following link for your reference:
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
    3. In the Sorting tab, we can use "LastModifiedTime" to instead of "Modified".
    Best Regards 
    Dennis Guo
    TechNet Community Support

  • How to use FMS on OPCH field to query value on a field in PHC1 form?

    Hi All,
    I have a problem. I created a user defined field in the AP Invoice form (parent form-OPCH). Now I would like to use the formatted search to add a query to that field that will select a value from another field also on the same form but at the row level (child form-PCH1). It seems that this is not possible. Any suggestions?
    A general question for this: is their any way that I could use the formatted search to query value on an opening form that is inactive?
    Thanks
    Duc

    Hi Sampath Kumar devunuri,
    Thanks for your reply. It does not work. I have tried to searched through the forum about this topic and it seems that FMS will not work at row level. Not sure if there is any solution to overcome this.
    My query is for example: I want my UDF on OPCH form to capture the description of the first row in PCH1:
    Select $[$39.1.1]
    If I assign it to a UDF at row level it works perfectly.
    If I assign it to the Remark field on OPCH it still works.
    But if I assign it to a UDF at title level it does not (this is what I need)
    This may be because at title level the form name is OPCH which is different with the form name at row level: PCH1
    I cannot think if there is any way that I could set focus on PCH1 to get the value.
    Duc

  • Problem in using Intermedia search  with Oracel 9i DB on Red hat Linux

    Hi,
    I am unable to search a particular text in a blob using Intermedia search feature.I am using Oracle 9i (9.0.2 version)mounted on Red Hat Linux OS.
    It works well on a Windows 2k OS.
    To be more precise the following query fails when I pass the INSO_FILTER as the parameter.
    "CREATE INDEX WM_WORKDETAILIDX ON WM_WORKDETAIL (WM_ITEMDATA) INDEXTYPE IS CTXSYS.CONTEXT Parameter(‘CTXSYS.INSO_FILTER’)".
    Any Help towards it is highly appreciated.
    thanks & regards /Ravi

    Did you check the script to try to see what it was/is doing?

  • May i know how can i include a search filter box in Muse?

    Hi, i'm going to set up a website which contain a lot of list and I would like to include a search filter box where user get to filter their search result in the list that I inserted. Is there any good tutorials or pre-post that i can refer? Thank you very much. =D

    Buddy hope this page will help you, I've done this using muse... http://chillbakes.com/specialities.html
    I've tried to sort all the products within a menu. Using triggers you can control the position area of a product.
    If it sorts your problem then mark your problem as solved so that it can help others.
    Cheers..!!

Maybe you are looking for

  • Transfering FCP to a new computer

    hi, I just got a new macbook pro and wanted to continue my FCP work on my new computer. I used media manager to transfer all my files. but when I try to open FCP on my macbook pro the message says there's some missing software or hardware and further

  • Cannot open PDF files in Sarari

    I am not able to view PDF files in Safari. A window pops up and asks me to select the application to view the pdf file in. Preview is greyed out so I cannot select it. If I use firefox, it opens the PDF file. I do not want to have to open firefox eve

  • X505-Q8102x Sound Problem

    After automatic updates, the sound quit working properly. At first I thought it was newer games that were "too much" for the older computer to handle (Craft the World) but then also noticed that the same problems plague games that I know worked just

  • Callable Object for Webdynpro Application

    Hello, I have  a Webdynpro for Java Application where I am importing a model from R/3 and displaying certain records......and want to include it in GP Framework....so which is the Callable Object I should use.....i tried using Webdynpro application t

  • Afdrukken naar jpeg in voorvertoning geeft error

    Ik krijg de volgende error bij het afdrukken naar JPEg vanuit de voorvertning, iemand een idee? Er heeft zich een fout voorgedaan bij het uitvoeren van de taak 'Kopieer Finder-onderdelen (Copy Finder Items)'. Controleer de kenmerken. Welke kenmerken