Prompt user for date range

Im working on a report that when it is opened by end user, i want it to prompt them for a date range. The report should only show records that fall between the date ranges entered.
If i use the select expert and hardcode specific dates in, it works and only shows the records i want to see. However i cannot figure out how to set Crystal to prompt the user to enter the in DateTime and the to Date Time fields with Select Expert.
Ive tried using a Parameter field, which it prompts for the date range, but still pulls up all records as normal. Its like it ignores the date range the user enters.
The select expert shows this formula, the date/time is all zero's in this example.
{SHOP_ORD\.REVISED_START_DATE} in DateTime (0, 0, 0, 00, 00, 00) to DateTime (0, 0, 0, 00, 00, 00)
Please help

Figured it out.
Had to create two Parameter Fields {?StartDate} and {?EndDate}.
Then used Select Expert, Formula Editor to modify the formula and set the in DateTime = {?StartDate} and the to DateTime = {?EndDate}
This works. Just hide the Parameter fields and you have your range selector

Similar Messages

  • Creating report based on user selected Date Range

    Hello.
    I am trying to display an Apex report that selects data for the report based on a user entered date range.
    It's a simple page with two date picker fields (p18_start and p18_end).
    The report region SQL looks like this:
    SELECT *
    FROM prj_items
    WHERE LM_DT BETWEEN :p18_start AND :P18_end
    One table, one field on the table to search and two Apex variables.
    I thought this would be fairly simple, but I am obviously missing something.
    I not even sure what other information is needed to help me figure this out.
    -Jody

    Hi,
    You can set defaults for the datepickers if you need to - this could be done in a computation on the page for each item and conditional on the item being null.
    When I've done something similar to this, I've created two hidden page items - eg, :P19_FIRST_DATE and :P19_LAST_DATE and populated these with the earliest/latest date that the user could reasonably select (perhaps, in your case, the MIN(LM_DT) and MAX(LM_DT) values).
    Then your SQL would be:
    select * from PRJ_ITEMS
    where LM_DT BETWEEN TO_DATE(NVL(:P19_START,:P19_FIRST_DATE), 'DD-MON-YY')
    AND TO_DATE(NVL(:P19_END,:P19_LAST_DATE), 'DD-MON-YY')If you don't want to set default dates, you could do something like:
    SELECT * FROM PRJ_ITEMS
    WHERE (:P19_START IS NULL AND :P19_END IS NULL)
    OR (:P19_START IS NOT NULL AND :P19_END IS NULL AND LM_DT >= TO_DATE(:P19_START,'DD-MON-YY'))
    OR (:P19_START IS NULL AND :P19_END IS NOT NULL AND LM_DT <= TO_DATE(:P19_END,'DD-MON-YY'))
    OR (LM_DT BETWEEN TO_DATE(:P19_START,'DD-MON-YY') AND TO_DATE(:P19_END,'DD-MON-YY'))There are various reasons why your two dates are being cleared when the page is reloaded. Firstly, you should check the branch that returns to the same page - make sure you are not clearing the cache for the page. Then, have a look to see if there is a "reset page" process (usually created for you when you create a form page). Then, check the Source settings for the items. Typically, these would be "Only when current value in session state is null" and a Source Type of "Static Assignment" with the "Source Value or Expression" left empty.
    Andy

  • Prompting user for their choice of mailbox in Mail.app

    All I want to do is ask the user to choose a mailbox in Mail.app. But, there is a problem:
    "mailbox Y of account X" shows
    mailbox "FULL/PATH/TO/Y" of account X of application "Mail"
    while "name of mailbox Y of account X" shows
    "Y"
    This makes it awfully hard to prompt users for their choice of mailbox. I could go up the containers of mailbox Y, until I get to account, but this takes quite a long time.
    Is there a good reason for this behavior of the "name" property?

    Similar to Hiroto - 'I'm not sure what you're looking after.'
    Thus, below is some sample code to work with:
    tell application "Mail"
    set tMailboxes to mailboxes of account "sl-ugs" -- Obtain mailboxes of specific account.
    set nList to {} -- List to contain mailboxes names.
    repeat with i in tMailboxes -- Cycle through mailboxes of specific account.
    copy (name of i) to end of nList -- The name of each mailbox is placed into 'nList'.
    end repeat
    -- Provide an interface for the user to select a desired mailbox.
    set tSelection to (choose from list nList without multiple selections allowed and empty selection allowed) as string
    repeat with i from 1 to (count tMailboxes) -- Cycle through the list of mailboxes.
    if ((item i of nList) is equal to tSelection) then exit repeat -- Determine list location of selected mailbox (in 'tMailboxes')
    end repeat
    set tMailbox to item i of tMailboxes -- Obtain full listing of selected mailbox
    set tMessages to messages of tMailbox -- The messages of the selected mailbox.
    set mList to {} -- List to contain 'subject', 'from' and 'date received' field items of each message of the selected mailbox.
    repeat with j in tMessages -- Cycle through the list of messages.
    -- The 'subject', 'from', and 'date received' field items of each message of the selected mailbox are placed into 'mList'.
    tell j to copy {subject, sender, date received} to end of mList
    end repeat
    -- Example code showing 'tMailbox', 'nList', 'tSelection', list location of selected mailbox, messages of 'tMailbox', and finally - the 'subject', 'from', and 'date received' field items of each message of 'tMailbox'.
    tMailboxes & return & return & nList & return & return & tSelection & return & return & i & return & return & (messages of tMailbox) & return & return & mList
    end tell

  • Customer exit variable for date range for the last day

    Hi,
    If user enters date ranges in variable
    suppose user enters 9/1/2010 to 9/15/2010 and we have to calculate currency conversion based on last day i..e 9/15/2010 . 08
    2)User input is date range 08/01/2010 to 08/30/2010
    I need from the customer exit 08/30/2010 (on last day) to calculate currency conversion.
    Can anyone help me with ABAP code to achieve this customer exit?And please tell me how to proceed step by step
    Sridhar

    create a variable to enter date range (ZDATE1)
    create a key date variable(ZDATE2) with processing type customer exit, should not be ready for input.
    In the exit ZXRSRU01 write below code.
    DATA: l_s_range TYPE rsr_s_rangesid,
          loc_var_range LIKE rrrangeexit.
    WHEN 'ZDATE2'.
        IF i_step = 2.
           read table i_t_var_range INTO loc_var_range
                    with key vnam = 'ZDATE1'.
            CLEAR l_s_range.
            l_s_range-low = loc_var_range-high.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
        ENDIF.

  • Spliting user entered date range into u201CFrom Date u201C and u201C To dateu201D-user exit

    Hi,
    In the query i have a created a popup variable for date range for which the processing type is customer exit. When the user exceutes the query he gets the popup for the date range with the default values. The default values are set one month backward.
    For example: if today is 5/19/2008, then the popup date range shows 4/19/2008 to 5/19/2008.
    Already there is an user exit written for the same.
    Now the requirement is i need to split From date and to date entered by user and use them in seperate selections to restrict the keyfigure in the keyfigure column of the query.
    Can anyone throw a light on this, how to go about?
    Shall i need to create two different variables from date and two date and populate the values, if yes how can i do that ?
    Thanks,
    Rani.
    Edited by: rani on May 19, 2008 10:22 AM

    Hello Rani,
                     Check this code,
    var1 is already existing variable with values from date and to date values.
    ztest1 is the first customer exit single variable,
    ztest2 is the second customer exit variable.
    ztest1 and ztest2 you can use these variables in the restricted keyfigures which you have mentioned.
    when 'ztest1'.
        if i_step = 2. "after the popup
          loop at i_t_var_range into loc_var_range
          where vnam = 'var1'.
            clear l_s_range.
            l_s_range-low = loc_var_range-low.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            append l_s_range to e_t_range.
            exit.
          endloop.
        endif.
    when 'ztest2'.
        if i_step = 2. "after the popup
          loop at i_t_var_range into loc_var_range
          where vnam = 'var1'.
            clear l_s_range.
            l_s_range-low = loc_var_range-high.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            append l_s_range to e_t_range.
            exit.
          endloop.
        endif.
    hope it helps,
    regards,
    karthik

  • Lync monitoring Details reports are not getting opened, Getting SQL error like "Cannot impersonate user for data source 'CDRDB"

    Hi,
         Two month before, We have deployed Lync 13 set up with lync monitoring and archiving service enabled. After configuring we have the Lync monitoring and archiving services are working fine... few weeks back I have changed the Admin Password
    of the Lync Setup. After that Lync Monitoring and Archiving services are not working.
    when I try open Lync monitoring service from web UI, 
    http://localhost/ReportServer_LyncMonitoring/
    Web UI is opening but Reports home page is not Accessible , Getting error Like
    "An error has occurred during report processing. (rsProcessingAborted)
    Cannot impersonate user for data source 'CDRDB'. (rsErrorImpersonatingUser)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    The user name or password is incorrect"
    Please help me to trouble shoot this problem.
    Thanks,
    Rajarajan.D

    Hi Rajarajan.D
    You probably need to update the password against the CDRDB datasource in SSRS Report manager, take a look at this article: http://lyncme.co.uk/microsoft-lync-server-2013/cannot-impersonate-user-for-data-source-cdrdb-rserrorimpersonatinguser-error/
    If this helped you please click "Vote As Helpful" if it answered your question please click "Mark As Answer"
    Georg Thomas | Lync MVP
    Blog www.lynced.com.au | Twitter
    @georgathomas
    Lync Edge Port Check (Beta)
    This forum post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • HOW DO I CHANGE THE FONT OF "Message to Display" IN THE Prompt User for Input

    Hi,
    HOW DO I CHANGE THE FONT OF "Message to Display" IN THE  Prompt User for Input?
    Thanks for your help 
    XN 

    Right click and select Open front panel >> Convert.
    Change the vi as you need. then you can save it as a normal sub-vi.
    If you have Labview 8.6, maybe (i am not sure) you can edit the express vi. Express vis are supported in 8.6

  • Limit checkboxes on "prompt user for input"

    Is there away to limit the selection of checkboxes on the "Prompt User for Input" dialog vi?  I am trying to build a dialog vi that will allow the user to select/check only 1 item before clicking OK.
    Attached is my VI. This VI takes a entered filename and check to see if it exists in a given directory. If it does not exist, then it created (display a message stating it will be created).  If the file does exist, then the user has prompted to select 1 of 4 options (Append, Replace (Overwrite), Re-Name (select new filename) or Escape (exit without creating filename).  Right now I am using front panel controls that become visible however I would like to replace these controls with a dialog box with the four options.
    Ideally this file selection would be a sub VI in application and only execute when called and only be visible via the dialog boxes. 
    Thank you.
    Attachments:
    FileChoices.vi ‏210 KB

    Like radio buttons? See
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/373f703eea0297368625620900701fd8?O...
    Message Edited by Phillip Brooks on 10-16-2006 02:46 PM
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • ABAP code for Date Range

    Hi All,
    I have requirement to write code for date range.
    Characterstic = Run-Out Date, it was created reference to 0Date.
    Requirement is data should load depends on Run-Out Date 7 days old and 14 days future.
    Logic is -7 days old >= Run_out date <= 14 days future.
    please let me know how I need to proceed with ABAP code for this requirement.
    Thanks.
    Please do not ask for ABAP code here. Its not a training forum
    Edited by: Pravender on Aug 18, 2011 1:46 AM

    >
    Sree vignesh wrote:
    > Hi,
    > In the select option we have a field month range as
    > SELECT-OPTION : FROM 01.2007       TO  01.2009 " Let say Ur Selection option is SO_MONTH
    > but now i need to add the DMBTR field considering the month range in the SELECT OPTION i.e., only FROM 01.2007 TO  01.2009 i mean without 2006 data.
    >
    > LOOP AT LT_DATA WHERE month in SO_MONTH. " Here add a Where condition
    >     ls_output-matnr = lt_data-belnr.
    >     ls_output-werks = lt_data-bukrs.
    >     ls_output-lgort = lt_data-dmbtr.   
    >
    >     COLLECT  ls_output INTO lt_output .
    >
    >   ENDLOOP.
    >
    > please help with code .
    >
    > thanks in advance.
    Regards,
    Suneel G

  • Modifying "Prompt user for input"

    Hi, all.
    Is there any "Prompt user for input" VI where I can include enum or ring type inputs? If not, how can I modify the "Prompt user for input" VI to do that?
    Thanks,
    Francisco
    Solved!
    Go to Solution.

    Right click on the express VI and select 'Open Front Panel'. This will convert it to a regular VI that you can edit. Or, just create your own VI from scratch. Look at the shipping examples for 'pop-up's.

  • ExpressVI prompt user for Input dialog floating

    I am using ExpressVI "prompt user for Input". The question is, when the dialog window pops up for input, I cannot activate other windows .
    So how can I change this expressVI's dialog window to floating windows appearance?

    Short answer: you have to make your own.
    You can start with the Express VI by right-clicking on the express VI and selecting "Open Front Panel" and click "Convert". This will create a brand new VI that is the equivalent of the Express VI. Save the VI under a new name within your project hierearchy, and then change the properties on the VI from a modal to a floating:
    Select File->VI Properties.
    Select "Window Appearance" from the pulldown menu.
    Select "Custom" option and click "Customize...".
    Select "Floating" in the "Window Behavior" section.

  • BPMon Setup: Check user for data collection

    Dear experts,
    I'm trying to configure Business Process Monitoring in our Solution Manager system and I'm stuck in the step "Check User for Data Collection". See screenshot. I mark this row and click on "Execute Selected". A background job is scheduled and finishes after some 6 seconds, But this step is still marked as "Activity not yet performed". Any idea how this can be solved? I read the documentation, notes and the troubleshooting guide but found nothing about this specific problem.
    Many thanks for any help!
    Calin

    Hi Calin
    The status will remain grey as long as there are clients in the managed system that have not been connected to the Solution Manager.
    However, if there are clients the you would not like to connect to Solman on purpose, he can simply set the execution status to “manually performed”, then the activity will be set to green. I have attached some screen shots from a test system so you can see what I mean.
    Best Regards
    Mark

  • Query to find first and last call made by selected number for date range

    Hi,
    query to find first and last call made by selected number for date range
    according to filter:
    mobile_no : 989.....
    call_date_from : 25-april-2013
    call_date_to : 26-april-2013
    Please help

    Hi,
    It sounds like you want a Top-N Query , something like this:
    WITH    got_nums   AS
         SELECT     table_x.*     -- or list columns wanted
         ,     ROW_NUMBER () OVER (ORDER BY  call_date      ) AS a_num
         ,     ROW_NUMBER () OVER (ORDER BY  call_date  DESC) AS d_num
         FROM     table_x
         WHERE     mobile_no     = 989
         AND     call_date     >= DATE '2013-04-25'
         AND     call_date     <  DATE '2013-04-26' + 1
    SELECT  *     -- or list all columns except a_num and d_num
    FROM     got_nums
    WHERE     1     IN (a_num, d_num)
    ;This forum is devoted to the SQL*Plus and iSQL*Plus front ends. This question doesn't have anything to do with any front end, does it? In the future, you'll get better response if you post questions like this in the PL/SQL.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the SQL forum FAQ {message:id=9360002}

  • Forum search doesn't seem to work for Date Range 'ALL'

    Hi there,
    Forum search doesn't seem to work for Date Range option: 'ALL' .
    For a given search criteria, I get few search results when the date range is chosen as 'last year', but for the same search criteria, when the date range is chosen as ALL, no search results are shown (not even the ones shown earlier for last year selection).
    regards,
    AJ

    Can you please delete my few duplicate replies in [CJ20n|Re: Long Text at Activity Level in CJ20N] thread?:-)
    Cheers,
    Amit.

  • Which BW variable is used for date(range) when creating a portal service

    Hi,
    Can any one please let me know which BW variable is to be used for date(range) when creating a portal service for searching based on dates.
    Thanks
    Abhai

    Hi Arun,
    its just a portal service which would be called when  searching a document created on a particular date or betwwen a range of date.so what i require is which BW variable to be used when handling range.As for variable technical name we use VAR_NAME_I  and for single value variable we VAR_VALUE_EXT_I
    in the similar manner i want BW variable to be used for range of values.
    Thanks
    Abhai

Maybe you are looking for

  • Can I use my iPhone charger for the ipad

    Is it okay to charge my ipad with my iphone 4 charger?

  • Kernel Panic Mac Pro now dead!!!

    Big problem here: Kernel Panic - but system totally locked out of any key combination apart from Hardware test on Install Disk 1 (OS X 10.4). Hardware test (loop running 12 hours) finds NO problems. Have swapped out RAM, swapped out HDD, tried to boo

  • Why can't I install mountain lion on OSX 10.6.8 MACBOOK PRO?

    I downloaded the mountain lion install app and now i can't install it I get the "This disk cannot be used to startup your computer" error when I try and install. If i back out to the main install page and try it again then i get this error "OSX canno

  • How do I install bootcamp so I half both my ssd and hdd?

    How do I install bootcamp so I half both my ssd and hdd for windows and lion?

  • Font Issues in Acrobat X pro

    Hi All,  A couple of months ago we have upgraded our Acrobat applications to 9 pro and X pro before that we had used Acrobat 7&8 which is having no problem. Since we upgraded to higher versions we have been facing so many font related issues/complain