Limit a range of date in a prompt filter

Hi,
I'm trying to built a prompt filter which permit my users to prompt a range of date (ex starting date - ending date).
But I would like to limit the range to a maximum of 50 days (from the starting date to the ending date)
Is it possibile to do it (in WI or BO 6.5 Designer) and how?
Thank you in advance
Riccardo

Hi Riccardo,
There is an easy way to do that in universes.
You have to create an firstobject based on your date:
mytable.mydate
Then create a secondobject with the same definition and a where clause like this:
mytable.mydate BETWEEN  @Prompt('1-Start Date','D','MyClass\MyObject',mono,constrained) AND   @Prompt('2-End Date','D','MyClass\MyObject',mono,constrained)
The List of Values used in the prompt is based on the first objects you created.
Last, edit the list of values of the second object and in the query panel editor, click on the "Options" button and change the number of rows option to limit the returned result.
In attachment, you will find a universe based on Club database.
See the object "Invoice Date (50 rows max)" in "Sales" class that illustrates the purpose.
Regards,
Didier

Similar Messages

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • Date Constant Dashboard Prompt

    Hi,
    I would like to know how would you go about creating a Date Constant prompt in Dashboard.
    For example : User should be able to select 'LastMonth' or 'LastYear' or 'LastWeek' constant time frame and run a report.
    Report query should translate those contant to dates in the prompt.
    Example: if user selects 'LastMonth' teh date range shoudl be translating to query ( where DATE between '01/11/2008' and '31/11/2008' )
    Thanks,
    Kopii

    Hi...
    To select last month use repository variable Add_months(sysdate, -1) and give variable name. in the same way to.. other last week or last year also...
    Now use this variable in writing logical SQL in dashboard prompt...
    For second prompt use Logical SQL like,
    select date from SA where month = (selected month in prev prompt)
    Hope help you...
    Try in this way..
    Thanks & Regards
    Kishore Guggilla

  • Passing date parameter from prompt

    Hi experts
    I am getting some problem while passing date from a dashboard prompt.
    In RPD i have changed the date column properties as DATE only so that i will get the DATE part of the data not the time stamp.
    Now in the dashboard prompt i added a prompt for the date column.
    I initialized the date prompt with a server variable of sysdate
    when i am running the dashboard i am getting default value in the prompt(04/15/2011)
    when i am changing the date it is selected as(04/15/2011)
    but when i am clicking the 'Go' button the date is converting to 2011-04-15 00:00:00 due to which my report is not running and i am getting error as
    View Display Error
    A date value was expected (received "2011-04-15 00:00:00").
    Error Details
    Error Codes: QABPH2PO
    can anyone help me to pass only date part
    thanks in advance
    regards
    Gourisankar

    Hi J / Srikanth
    Sorry to restart the thread again.
    As we discussed i have downloaded the patch and applied to my windows 32 bit machine.
    But now when i run the report the report is running only for the default value(Server Variable) which is specified to the prompt. when i change the date there is no effect to the report.
    When i drill down to the report i found that the date column(is prompted) is changed to teh server variable name which is might be the cause.
    any input on this???
    regards
    Gourisankar

  • How to load a range of data in Diadem?

    Hello; I have a set of Access DB containing analytic data of 5 jears. How can I import a range of data (eg. all year 2003 data)in Diadem for analysis?
    Thank's

    Thank's,
    but I couldn't choose explizit the time channel. Also I couldn't set a command like 'between 1.1.2003 and 31.12.2003'. Attached is an exemple of the dataset. The time channel is '50_DAT'.
    It would be nice to get an answer.
    Thank's Matthias
    Attachments:
    B0P2DAT8_50.MDB ‏400 KB

  • How to find a specific day in a range of dates

    Hi !
    Can someone help me with this
    I would like to find if there is a Saturday in a range of dates:
    ex: OpenDate:2012-01-19 to CurrentDate,  should return  2012-01-21
          OpenDate 2012-01-23 to CurrentDate, should return null field
    Thank you

    Hi Diane,
    You can use this formula to find a Saturday in a date range:
    numbervar days := datediff("d",{Date_Field}, currentdate)+1;
    numbervar x;
    datevar array dates;
    redim dates[days];
    datevar sat;
    for x := 1 to days do
        dates[x] := {Date_Field}+(x-1);
        if weekday(dates[x]) = 7 then
        datevar sat := dates[x];
    sat;
    Hope this helps!
    -Abhilash

  • Shared Data Source with prompted credentials - errors out.

    Using Data Tools (VS 2010) to build report.
    Have built a simple report while trying to diagnose this issue.  This report is created in a project that was originally built in BIDS2008 and migrated to Data Tools 2010.  This project contains an original shared dataset that does NOT
    error out.
    Report contains
         1) shared data source with properties set to prompted credentials.
         2) shared dataset using data source above
         3) 2 parameters (month and year)
         4) Report uses shared dataset
         5) 2 text boxes in the report body to display the parameters values.
    When I try to preview this report I get the error:
         The execution failed for the shared data set "xxx"
         Cannot create a connection to data source 'Data source for shared dataset'
         Security processing failed with reason "3" ("password missing")
    Now, if I changed that same shared dataset to use a static login and password; the report renders fine.
    What is going on???

    Hi RoseNeedsAVacation,
    When you use shared data source with "Prompt for credential" option, please use SQL Server login credential to u view the report in BIDS or SSDT report designer environment.
    Note: The shared data source will automatic switch to SQL Server authentication mode if we use "Prompt for credential" option.
    After you deploy your report and shared data source to report server, please remember to configure your shared data source to use "Credentials supplied by the user running the report" option. Furthermore, select "Use
    as Windows credentials when connecting to the data source" checkbox if the credentials that the user provides are Windows Authentication credentials. Do not select this check box if you are using database authentication (for example, SQL
    Server Authentication).
    For more information, please refer to the article below:
    New Data Source Page (Report Manager):
    http://technet.microsoft.com/en-us/library/ms180077(v=sql.100).aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • How to display the current date in the prompt value.

    Hi,
    How to display the current date in the prompt value. When the user runs the query he want the current date to be displayed in the prompt value and he should also be able to change the date if required ...... I am using web Intellegency BO XI3.0.
    Thanks,
    Shakthi.

    Please refer the below link.
    Prompt  with  default  date   (  currentdate-1  and current date-8)
    http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/
    http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
    Regards,
    Bilahari

  • Check a number range with date range.

    i have table test which is having column
    Start Range
    End Range
    Start Date
    End date
    how can i check start range and end range does not exists b/w existing record also with date range of this record.
    end date can be blank also.

    990690 wrote:
    i have table test which is having column
    Start Range
    End Range
    Start Date
    End date
    how can i check start range and end range does not exists b/w existing record also with date range of this record.
    end date can be blank also.Your question makes absolutely no sense whatsoever. We could make guesses, but then we may be wrong in our guesses.
    Please provide sufficient details for people to be able to help you. Read the FAQ: {message:id=9360002}

  • Select a range of data

    Hi everyone,
    I would like to know how to do to select a range of data (for example on a force/time graph during a jump landing (parable), from a certain value to another) to register it on a special file? I tried the module "separate" or "cut out" but I don't think they will be useful when you don't know when will appear the specifical value you're looking for...
    Is it also possible in Dasylab to know the director coefficient of this type of curve (quite linear...)?
    Thanks!
    Solved!
    Go to Solution.

    Perhaps...
    Select the values in a block (y values) at given positions (y values).
    Calculate the differences, and calculate the quotient.
    M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum National Instrument Alliance Partner | www.measx.com
    Attachments:
    steigung.jpg ‏187 KB
    steigung.zip ‏6 KB

  • Retrieving a range of data in office 2007

    Hi All,
    My company recently upgraded to Office 2007. We are using Hyperion 9.3. A few interactive users are facing this issue.
    The issue seems to be with the 'Retrieving a range of data'.
    In a worksheet the user is selecting a range of cells to restrict the data retrieval to the selected range. The unselected area of the sheet contains data not formatted to retrieval dissapears(hard coded number and the formula).
    Under Options tried checking 'Display Unknown members' and 'Retain formula on retrieval'. Users wants to preserve hard coded numbers outside the retrieval area.
    Your help is very much appreciated.
    Regards,
    Jelan

    Use the array subset in the array pallete. put your smallest number in the index and then subtract your smaller number from the bigger number and put this result in as the length input. The output will be an array starting with the smaller number and ending with your bigger number.
    Joe.
    "NOTHING IS EVER EASY"

  • Using a range of dates for Key Date

    In a HR Bi data warehouse, we have a position-to-position hierarchy, where each of the nodes are time dependent. So, it shows for each node,  valid from and valid to dates, and all the employees who are reporting to that position. This hierarchy is built on the infoobject 0HRPOSITION, which is maintained in R/3 and extracted to BI.
    Let us take an example: Position 1000 is valid from 1-1-2006 to 6-30-2006 Employees reporting to this position are A,B,C,D
                                           Position 1000 is valid from 7-1-2006 to 12-31-9999 Employees reporting to this position are A,E,F,G
    When a user chooses the position 1000, and date range 1-1-2006 to 12-31-2006, it show the complete list of employees as
    A,B,C,D,E,F,G.
    Because the Keydate can only be a single value, and it is automatically taking today's date, and pulling the nodes based on that.
    I have created a hierarchy node variable on the 0HRPOSITION infoObject, and entered the value 1000, with no value for the keydate.
    The system is simply showing employees, A,E,F and G. That is my problem
    My requirement is this: I like to be able to give a date range, (for the hierarchy)  say from 1-1-2006 to 12/31/2006 and get the complete list of Employees, which is A,B,C,D,E,F,G.
    Is this possible? Can I change the way this hierarchy is defined so that I can pull the possible values for a range?

    Thank you Ajay.
    After some thinking, I have realized that these options will not work.
    We have a position-to-position hierarchy that shows who reports to who in the organization. This hierarchy is built on the Infoobject 0HRPOSITION.  Each node in this hierarchy has is time-dependent. Note that, the entire hierarchy is not timedependent. Only the individual position nodes are time-dependent.
    This 0HRPOSITION infoobject exists in the  Heacount cube as one of the characteristics. Here is my requirement.
    1. I want to show in a report, all the employees (directly or indirectly) reporting to a manager for a period of say, 1 year?
    I know that I can specify a key date for the hierarchy 0HRPOSITION, then the report will show all the employees (direct and indirect) reporting to a position say 6/30/2008. I don't want this for a specific date, I want to get  ALL the employees (direct and indirect) reporting to a position in a range of dates( say 1 year)
    Does that make sense? How do we achieve this goal?

  • How to check the sales order that has been PGI from a range of dates.

    Hi SAP Gurus,
    I have a query on how can I check the sales order that has been PGI from a range of dates in SAP?
    Thanks,
    Madelyn

    Dear Madelyn
    Go to VA05, give the date range and execute.  List of sale orders will be generated.  There you can see a tab "Status"  in which, the status would be like
    -  Not delivered
    -  Partially delivered
    So based on this, you can decide whether the order is still open or completed.
    thanks
    G. Lakshmipathi

  • Passing a range of dates from Visual Composer 7.0 to Bex Analyzer

    Dear Experts,
             I created a button in my Visual Composer model that has the following settings:
    System action:  Hyperlink
    Apply to:  Self
    Hyperlink address:  "...QUERY=BMMSEG_C01_SAS_Q0001&BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE&BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=MBUDAT&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=08/22/2006;08/28/2006"
            Basically, what I need is to pass a range of dates from Visual Composer to Bex Analyzer on the characteristic "MBUDAT".  However, it only brings back the data with those specific dates, not the range.  
          I don't think this is the correct syntax to pass in a range value:  08/22/2006;08/28/2006  Please advise how should I do it. 
    Thank you in advance,
    Kevin

    Hi J GOEL,
           Thank you for your quick response.  I created a date range variable ZPSTDAT, and then I passed in the oncatenated value to my Bex query (for this example, let says the From date is 08/22/2006, and the To date is 08/28/2006 ).
          Here's what I passed in into the url:
    ...QUERY= BMMSEG_C01_SAS_Q0001
    &#38;BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE
    &#38;BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1
    &#38;BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC= ZPSTDAT
    &#38;BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING= 08/22/2006:08/28/2006
       However, it returns all the records, so it seems like it doesn't even accept the range value that I passed into the Bex.  Do you mind to please show me the url you have that pass in the date range.  I just need to see the date range part, not the entire url.
    Thanks,
    Kevin

  • Select Range of dates

    Hello,
    is it possible to use the <cfinput datefield> or the <cfcalendar> to allow users to select multiple range of dates.
    EG User wants to select some days in June, July and August.

    The cfcalendar only allows for blocking of range of Dates and not for multiple selection of dates.
    My client would want to select multiple dates like July 14, 17,25 Aug 25,26,28 at one shot from the calendar

Maybe you are looking for

  • Exchange 2007 Active Sync Issue with 1 users mailbox

    Good Afternoon, Server OS:  Small Business Server 2008 Exchange:  2007 Standard - Update Rollup 13 SP3 Mobile phone:  Blackberry Z10 We are in the process of decommissioning our Blackberry Enterprise Server, and down to one user.  I am able to setup

  • Report - Time out Error when Joining EKPO & MSEG

    Hi All, This is my code: SELECT    EKKO~EBELN             EKKO~LIFNR             EKKO~BUKRS             EKKO~EKORG             EKPO~EBELP             EKPO~TXZ01             EKPO~MATNR             EKPO~MENGE             EKPO~MEINS             EKPO~UNT

  • Sync/Library Question

    The computer that I normally sync my iPhone 4 with is broken. Anytime I try to sync it with another computer, it says I can only sync with one library unless I restore it. If I back up my phone, then restore it, will I be able to use the backup to re

  • Add new field in address window

    hi expects,   i want to new field to address window .what are change should i do in form ,print program and subroutine.                         thank you

  • Reports 6 - destype=File

    Hello. I hope this title is suggestive so many users will come in and try to answer my question . I have a report developed in Oracle Reports 6 (I know, it's time to move on, but the project is too big to migrate to another version; yet...). The para