Add sysdate filter in query mode

Hi,
I need your help regarding a query inside a forms screen.
I know that if you enter query mode, you can put some query conditions in the form fields like:
# BETWEEN value_a AND value_b
# IN (value_a, value_b, ..., value_n)My question: is it possible to use SYSDATE with these conditions?
What I want is to get the records from the last 3 days and I was trying to do something like this in a date field:
# BETWEEN sysdate AND sysdate-3Thanks for you help,
Paulo Vale

Herry,
Yes, you are right in what concerns to the values order in the statement... however, still no positive results.
It seems to me that simply it's not possible to use SYSDATE in this situation.
Take a look at this.
If I put < SYSDATE the query doesn't work, in other hand if I put < 03-07-2008 the query is executed.
Thanks,
Paulo Vale

Similar Messages

  • How to add a dynamic filter in query panel

    I want to display the data in recent week, is it possible to add a dynamic filter in query panel?
    eg. filter--> actionDate >= CurrentDate - 7
    BO version: BOX I 3.1

    We are still trying to get this filter to work. Can anybody give us an example of how it should look on the sensor?
    The sensor filter that we would like to create should “exclude” any source IP, any source port to specific destination hosts on all destination ports (icmp has none) from capturing events and storing them in the event store on the sensor.
    This is the filter that we have so far on the sensor. What’s the problem with it?
    service event-action-rules rules0
    filters edit icmp-w-echo-filter-sensor-sensor-0-D
    signature-id-range 2100
    subsignature-id-range 0-255
    attacker-address-range 0.0.0.0-255.255.255.255
    victim-address-range a.b.c.x,a.b.c.y
    attacker-port-range 0-65535
    victim-port-range 0-65535
    risk-rating-range 0-100
    no actions-to-remove
    deny-attacker-percentage 100
    filter-item-status Enabled
    stop-on-match False
    no user-comment
    exit
    filters move icmp-w-echo-filter-sensor-sensor-0-D begin
    exit

  • Set variable filter for query from dashboard in IR 9.3

    I have a dashboard that I want to set up to a process a query that has a variable filter. Can I set the variable filter in Javascript so the user does not see the variable filter/limit dialog? I'm using IR 9.3.

    OK, never mind. I figured out how to do it right after I posted this:
    mylimit = ActiveDocument.Sections["Query: New Users"].Limits[1]
    mylimit.CustomValues.Add("TAA")
    mylimit.SelectedValues.RemoveAll()
    mylimit.SelectedValues.Add("TAA")
    ActiveDocument.Sections["Query: New Users"].Process()
    var MySection = ActiveDocument.Sections["Report"]
    MySection.Visible = true
    MySection.Activate()

  • Calling another form when current form is in query mode

    I have a form that is in query mode. When I select a menu option that calls another form through new_form, I get the error 'FRM-41009: Function key not allowed. Press Ctrl+F1 for list of valid keys.'
    I would like trap this error, cancel the query and invoke the new form. I have tried to do this by code similar to this:
    if :system.mode = 'enter-query' then
    exit_form ;
    end if ;
    new_form('someform') ;
    (since exit_form in query mode is supposed to cancel the query).
    But in this case, the trigger ends with the execution of the 'exit_form' statement.
    Any help would be greatly appreciated.
    Thanks and regards,
    Rajesh Jayaprakash
    [email protected]

    I think the following will work:
    When you call the EXIT_FORM builtin, Forms cancels out of Query Mode but also stops the current PL/SQ execution - which is annoying.
    I believe, though, that the WHEN-WINDOW-ACTIVATED trigger will fire on your Form. Therefore, you can:
    1) Set a Global Variable or PL/SQL packaged variable just before you call the EXIT_FORM builtin then
    2) Test the value of the Global Variable in the WHEN-WINDOW-ACTIVATED trigger and perform the CALL_FORM there.
    3) Even better, put the CALL_FORM and associated parameters into a Program Unit on the Form - then you can call it from either the original trigger or the WWA trigger as necessary.
    If this does not work, you could resort to:
    1) Set a Global Variable just before you call the EXIT_FORM builtin
    2) Initiate a TIMER
    3) Call the EXIT_FORM builtin
    4) In a WHEN-TIMER-EXPIRED trigger, check the value of the Global variable. If it's set, Call the Form you want to call
    5) Again, put the actual CALL_FORM in a Program Unit so it can easily be called with the correct parameters from wherever you need to call it.
    It's annoying that you need to go to these lengths to perform what seems to be such an easy task!
    If anyone knows any better ways of achieving this, please add another reply!

  • [ Forms10g2 ] Default item value in Enter-Query mode

    Hello!
    How could I specify default value for an item in Enter-Query mode? E.g. I press KEY-ENTQRY, and :L_YEAR item gots current year as a default search condition (though it may change). I've tried to implement it this way:
    <pre>
    Enter-Query;
    :l_year := extract(year from sysdate);
    </pre>
    This work in a rather awkward way. If I run this once (e.g. as a result of a hotkey press), it just enters Enter-Query mode, but if I run this twice (by pressing hotkey second time) it fills :year variable and does search with it as a search condition! Then, I've tried to go straight and wrote:
    <pre>
    Enter-Query;
    :l_year := extract(year from sysdate);
    Enter-Query;
    :l_year := extract(year from sysdate);
    </pre>
    Well, this didn't work. And SYNCRONIZE call before the second Enter-Query didn't help either. So, my questions are: 1) how can I achieve needed behaviour? 2) What's going on in my experiments? Why :L_YEAR gets assigned on second keypress (as in first experiment) but not on second subsequent call (as in second experiment)?
    Thanks in advance!

    I don't know why that won't work but I have something which might:
    when-new-record-instance trigger:
    if :system.mode = 'ENTER-QUERY' then
      :l_year := extract(year from sysdate);
    end if;It's always best to use both the block and item names...:block.l_year

  • How to add more than 1 query in workbook

    Hi All,
    How do we add More than 1 query in workbook, Can any one provide me steps.
    Thanks in Advance.

    Hi,
    If you are using BI7 Bex analyazer, please check whether the following explanation helps you:
    "Steps of creating workbook and to insert more than one query in a workbook.
    •When you run a query and it opens in Bex Analyzer you can click the save button and pick "Save as Workbook".
    •Once you save it as a workbook Click on the "Design Mode" button in the Bex toolbar (looks like an A).
    •Click in the sheet where you want the new query to go, click the "Analysis Grid" button. It will add the analysis grid to your new sheet.
    •Right click on the Analysis grid and go to properties.
    •Click on button to change data provider and select the query you want to attach.
    •Exit design mode and you should be all set. "
    Thanks & Regards,
    Sapna

  • Need to add a filter to imported SQL

    I used the File\Import-SQL menu option to import an existing query from another application. The query runs and creates a results table. I do not see an option in the Query\Request section to add a filter so that the user can select a range of values at runtime. I am using BI + Interactive Reporting Studio version 9.3.

    The short answer is, "It can't be done."
    Here's the JavaScript coder's answers.
    You can add a result filter and provide dashboard controls to enable the user to enter or select values, then use scripting to modify the filter and navigate to the results.
    You can provide dashboard controls to enable the user to enter or select values, then use scripting to modify the sql file, re-import it, then process the query.

  • Calling a form in query mode

    Hi,
    I have a form "Ledger" in which i have a detail block with the following fields
    1. Voucher no.
    2. Date
    3. Account Code
    4. Posted
    and also i have a form master detail for vouchers entry...and it has three buttons for ENTER QUERY, EXECUTE QUERY AND EXIT QUERY and also ADD, EDIT & DELETE button as well where user query, add, edit and delete vouchers from there. Plus it has a voucher no. field.
    I want user to double click on any of the records in ledger form's DETAIL BLOCK and on double click i want to call "Voucher Entry" form in enter query mode and the voucher no value from ledger form should be copied from there and automatically fill in "Voucher entry" (newly called) form and execute query from there..
    How to do that...plz tell me
    Thanks

    Hi, sorry for my English!
    So, at block level (detail block) add trigger WHEN-MOUSE-DOUBLECLICK.
    Add the call_form built-in (view form builder help for syntax).
    In the "When-new-for-instance" on called form call the built-in "enter_query".
    For the item "Voucher entry" there are two way:
    the first one is to create a global variable(on the primary form) and then use it in the second form before the enter_query;
    the socnd one is to call form whit parameter list (see the help for the built-in call_form).
    Attilio

  • How to add a filter in multiple BEx queries at once

    Hello everybody,
    my requirement is to add a generic filter (characteristic restriction) in more than 30 BEx queries. Instead of adding the filter in each query one by one with query designer, I was wondering if there is a tool (eg. a transaction or a query designer function) that can add this filter to all desired queries at once.
    Does anybody know if such tool exists??
    Thanks very much,
    Andrea

    Hi,
    I think it is not possible. if your all query on one info provider, then you can make filter reusable for info provider and use it when you are creating query again on that info provider.
    First, Restrict characteristics in filter as per your requirement and then right click on it and click on save as - give description and technical name. then save it. now filter is reusable

  • [Solved] Problem with LOV and 'enter query' mode

    Hi all,
    I'm kind of new to Forms and I'm having some problems that I'm not being able to resolve. I already search it on the net, but nothing relevant came up. If anyone could help me I appreciated it.
    In my form I have some fields, and in one of them I have a LOV, and almost everything works fine. I inserted data, changed it, deleted it and all it's ok.
    But when I change to 'enter query' mode, when I try to search for data on the LOV field it ignores what I write.
    That is, for it, it's the same if I make F11 -> write 'aaaa' -> ctrl + F11 or if I make F11 -> '%' -> ctrl + F11.
    It behaves the same way, shows me all the records.
    Probably I'm missing something basic, but I'm not getting it...
    Thanks,
    Ana

    when you create a lov by wizard the lov and record group have always the same name..
    the problem is that the item is NOT based in the tabe.
    what kind of query do you execute if you choose something from a love which is not based on the db?
    i mean, this item has no influence on the query of the table, so whatever you choose it's like a "select * from table"
    i hope i was clear

  • How do I enable an add-on in Firefox safe mode?

    So recently I have had a problem with Firefox crashing all the time and found out it was an add-on that was causing the problem.
    I have tried opening Firefox in safe-mode to disable add-ons but they are already disabled, so I want to know how to enable an add-on and then to permanently disable it so Firefox will open normally again. . .
    I have already tried to permanently disable all add-ons by using the Firefox options box but nothing happens after I click on the 'make changes and restart firefox' button. After I click it nothing happens and it remains frozen. ([https://support.mozilla.com/en-US/kb/Safe%20Mode Safe mode Window])
    So to make things short, how do I enable an add-on in Firefox safe mode?

    In Firefox 4 and later [http://kb.mozillazine.org/Safe_mode Safe mode] disables extensions and also disables hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.
    You should still see a Disable button or Enable button (if you disabled them all) in the extension Manager (Tools > Add-ons > Extensions) if you start Firefox in Save mode.
    *https://support.mozilla.com/kb/Safe+Mode

  • File Upload applet not opening in Query Mode

    File Upload Applet is opening in Query Mode in Siebel 7.5, where as in Siebel 7.8 its not opening in Query Mode.
    Should anything be changed in CFG? or siebel restricted this?

    Hi,
    There is a property called "Auto Query Mode" in the applet. Check whether this has been set to "New Query" in 7.5. If so the applet will be opening in Query Mode automatically. If this property is blank, in 7.8, the applet will not be opening in Query mode. Check and let me know.
    Regards,
    Joseph

  • How to put the form in Query mode

    Hello
    Please let me know how to put the form or block in Query mode , so that when i run the form it should be in Query mode . I have seen properties of SET_FORM_PROPERTY and SET_BLOCK_PROPERTY but cannot find one
    Thanks

    QUERY mode? Did you mean, that you can only QUERY without changing data.
    This is the QUERY-ONLY-mode, which can be started e.g. call_form
    this is the help for that topic:
    PROCEDURE CALL_FORM
    (formmodule_name VARCHAR2,
    display NUMBER,
    switch_menu NUMBER,
    query_mode NUMBER,
    data_mode NUMBER,
    paramlist_name VARCHAR2);
    query_mode     
    NO_QUERY_ONLY (The default.) Form Builder will run the indicated form in normal mode, allowing the end user to perform inserts, updates, and deletes from within the called form.
    QUERY_ONLY Form Builder will run the indicated form in query-only mode, allowing the end user to query, but not to insert, update, or delete records.

  • Screen Pop a View in New Query Mode

    I am doing a Siebel screen pop customization and am having trouble figuring out how to open my desired view in query mode when the call comes in. I have specified my BusComp and BusObj as well as my SingleView in the custom EventResponse but am not sure where and how to specify the mode which I want the view to open in.
    Anyone know how to do this?
    Thanks in advance!

    Thank you Fuzii,
    I am a Siebel newbie and am trying to figure out how to do a few things with custom screen pops.
    My EventResponse looks like this:
    [EventResponse:AnsweredInboundCall]
    QueryBusComp = "<busComp>"
    QueryBusObj = "<busObj>"
    QuerySpec = "[<fieldName>] = '{<variableName>}'"
    SingleView = "<viewName>"
    So the specified view will show when there is a match on the variableName. In case that variable is empty or a match is not found, then I would like to have the view open in query mode. I am doing this directly in the Siebel Admin Configuration but it doesn't seem that there is a way to tell the applet which mode to open in here.
    If I set the Auto Query Mode to 'New Query' in Siebel Tools, will my specification for SingleView in EventResponse override it and show the view with that record found?
    Thank you for the help :)

  • Is it possible to add a filter to a webapp without declaring it in web.xml

    Hello,
    I'd like to add a filter in my web.xml file, but without declaring it in my webapp.
    Indeed, I have multiple webapps, and I'd like to have a common web.xml file that should be directly included in all the webapps including this package ?
    Is it possible or not ?
    As for JSF, it is possible to add faces-config file by putting it in the META-INF of the package.
    Thanks in advance.
    bgOnline

    Your title and your question are opposites...
    A filter must be specified in a web.xml to be used. That doesn't mean the Filter's class HAS to be in your webapp, it just must be accessible to the Servlet container (you could place it in the common/classes directory or shared/classes directory or even the server/classes directory).
    I've not tried it, but I see no reason why you couldn't declare the filter and filter-mapping in the server's web.xml which would then filter all requests in all webapps.
    HTH.

Maybe you are looking for