Possible to pass a date range to a subreport?

Hi,
I've created a report with three groups and I suppress the second and third group. The first group displays a summary of the details.  If I "hide" the details I have a nice summary looking report which I can then click on to drill down into the details. However, I cannot enable the "hide" functionality because of two reasons: 1. I'm using the crystal java viewer and it has serious limitations when using the hide/drill-down feature; and 2. in order to print I have to click on each group item in order to print - so when I have 20 values in my group I'm going into each group 20 times and printing 20 times.
So, I still want a summary view of all my group summaries at the front of my report.  How can I consolidate the group values into a single summary view? I attempted creating a subreport that is the same as the main report however the issue is that the initial parameter used is a date *range". I'd like to pass the date range to the subreport and then I'm sure this would all work. Does crystal support passing a date range to a sub-report? If so, how is this done?
thx!
Mark

Hi Mark,
Yes, you can pass a date range value to the SUbreport!
Here's how its done:
1) Create a formula in the Main report; call it Start_date:
Minimum({?Date_parameter})
2) Create a second formula in the Main report and call it End_date:
Maximum({?Date_parameter})
3) Insert the sub-report and then Right-click the sub-report > Select Change Subreport links > Move the Start_date and End_date formulas to 'Fields to Link to' area and make sure you uncheck the 'Select data in subreport based on field' option.
4) Edit the sub-report (Right-click > Edit) and insert a Record Selection formula to include the parameters from the Main Report.
Go to Report > Selection Formulas > Record:
{date_field} >= {?Pm-@Start_date} and {date_field} <= {?Pm-@End_date}
Hope this helps!
-Abhilash

Similar Messages

  • Passing the Date range within the query

    Hi ,
    In my query , I have two date characteristic, and while doing the selection I have to do selection on only one date field.
    This selection is a date range selection , So I have used a selection variable for this.
    Can anyone please let me know if it is possible to pass the selection range to other variable. Is it possible to use Customer exit to pass the complete range.
    Thanks
    Altair

    Hi,
    You can do it in the user exit.And that is the only approach to transfer the values of one variable to other variable .
    Search this forum for the code. you will find  lot of postings.
    With rgds,
    Anil Kumar Sharma .P

  • Possible to do limited date range changes in Calendar?

    If I set up a filter, say, for days since my last sync AND I'm doing a two-way sync, will only those changes sincy my last sync be synced or will I lose everything not in that date range? Since I make changes to the calendar in Outlook and on the device this is especially important to me. This could save me a lot of time, but I don't want to lose any other calendar data
    Also, I assume that I set the filter to use 'start date' and uncheck the box that says ' Delete from device any data that does not match the filter'. I am using DM 4.6 and OS 4.3
    IrwinII
    Please remember to "Accept as Solution" the post which solved your thread. If I or someone else have helped you, please tell us you "Like" what we had to say at the bottom right of the post.

    Hi Mark,
    Yes, you can pass a date range value to the SUbreport!
    Here's how its done:
    1) Create a formula in the Main report; call it Start_date:
    Minimum({?Date_parameter})
    2) Create a second formula in the Main report and call it End_date:
    Maximum({?Date_parameter})
    3) Insert the sub-report and then Right-click the sub-report > Select Change Subreport links > Move the Start_date and End_date formulas to 'Fields to Link to' area and make sure you uncheck the 'Select data in subreport based on field' option.
    4) Edit the sub-report (Right-click > Edit) and insert a Record Selection formula to include the parameters from the Main Report.
    Go to Report > Selection Formulas > Record:
    {date_field} >= {?Pm-@Start_date} and {date_field} <= {?Pm-@End_date}
    Hope this helps!
    -Abhilash

  • MDM ABAP API query to pass the date range

    Hi
    I want to retrieve certain data from MDM repository based on filter criteria by date stamp.
    Not sure how to do it to pass the select option value in the query.
    select-options: s_cdate for sy-datum obligatory .
    DATA  wa_query     TYPE mdm_query.
    DATA: v_search_date1    TYPE MDM_CDT_DATE_TIME.
    data: v_datestamplow1   type string.
    data: v_datestamplow    type TZNTSTMPL.
    concatenate s_cdate-low '000000' into v_datestamplow1
    v_datestamplow  = v_datestamplow1.
    clear wa_query.
        wa_query-parameter_code = 'Changed_On '.             "Field code ( Field name )
        wa_query-operator = 'EQ'.
        wa_query-dimension_type = mdmif_search_dim_field.    "Field search
        wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date  serach
    I am able to get the data when I just pass the low value from selecct option.  But I dont how  to pass the date range.
       v_search_date1-CONTENT = v_datestamplow.
        ET REFERENCE OF v_search_date1 INTO wa_query-value_low.
        APPEND wa_query TO gt_query.
      CALL METHOD cl_api->mo_core_service->query
          EXPORTING
            iv_object_type_code = 'Vendors'
            it_query            = gt_query
          IMPORTING
            et_result_set       = gt_result.
    II could see the below operator types . Although EQ says "Like standard select-options parameter" not sure how to pass the value.
    EQ     Equal to (like standard select-options parameter)
    NE     Not equal to (like standard select-options parameter)
    LT     Less than (like standard select-options parameter)
    LE     Less than or equal to (like standard s-o parameter)
    GT     Greater than (like standard select-options parameter)
    GE     Greater than or equal to (like standard s-o parameter
    SW     Starts with (MDM specific parameter)
    Thanks,
    Krishna.

    Hi,
    To get the date range for select options, pass the low value with 'GE' operator and another query option with 'LE' operator for high value.
    select-options: s_cdate for sy-datum obligatory .
    DATA wa_query TYPE mdm_query.
    DATA: v_search_date1 TYPE MDM_CDT_DATE_TIME.
    data: v_datestamplow1 type string.
    data: v_datestamplow type TZNTSTMPL.
    concatenate s_cdate-low '000000' into v_datestamplow1
    v_datestamplow = v_datestamplow1.
    clear wa_query.
    wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
    wa_query-operator = 'GE'.
    wa_query-dimension_type = mdmif_search_dim_field. "Field search
    wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
    GET REFERENCE OF v_search_date1 INTO wa_query-value_low.
    APPEND wa_query TO gt_query.
    concatenate s_cdate-high '235959' into v_datestamphigh1
    v_search_date2 = v_datestamphigh1.
    clear wa_query.
    wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
    wa_query-operator = 'LE'.
    wa_query-dimension_type = mdmif_search_dim_field. "Field search
    wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
    GET REFERENCE OF v_search_date2 INTO wa_query-value_low.
    APPEND wa_query TO gt_query.
    CALL METHOD cl_api->mo_core_service->query
    EXPORTING
    iv_object_type_code = 'Vendors'
    it_query = gt_query
    IMPORTING
    et_result_set = gt_result.
    Thanks.

  • Passing a date range to a Crystal Report using OpenDocument

    Hi,
    I am trying to call up a Crystal report in InfoView using a hyperlink with the OpenDocument function call.
    It is working fine with the following URL:
    http://<server name>:<port>/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=ARcnOcErTA1FidjRJ_sT0Yw&sType=rpt&sRefresh=Y&lsSCompany+Code=1300&lsMCost+Center=[12345],[67890]&lsSCost+Element=0000100123
    However, once I added the date range into the parameter string, like this:
    http://<server name>:<port>/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=ARcnOcErTA1FidjRJ_sT0Yw&sType=rpt&sRefresh=Y&lsSCompany+Code=1300&lsMCost+Center=[12345],[67890]&lsSCost+Element=0000100123&lsRFiscal+Year+Period=[Date(1,1,2011)..Date(1,9,2011)]
    It returns an error message, "An error has occurred: java.util.Date ", to my browser.
    I am wondering if I am missing any Java library or Java class path.
    Any thoughts are appreciated.
    Joyce
    Edited by: Joyce Chan on Aug 30, 2011 12:25 PM

    How do I check if the parameter passing in is in date type?
    the following is exactly what I've tried:
    &lsRFiscal+Year+Period=[Date(2010,10,10)..Date(2010,10,15)]
    Would the error message be logged in the server, maybe I can find more information for the error log?

  • Pass a date Range from VB to a parameter

    Hello,
    I'm thinking this is an easy question, but ...
    In a Visual Studio 2008 VB program, I'm allowing the user to pick a starting and ending date from DateTimePickers. (works fiine).
    In a CR 2008 report, I have a paramter defined as "pDateRange",  Type = date, Allow Range Values = Yes.
    In the Record Selection, I use a formula of {tblData.INSTALLDT} in {?Date_Range}.
    When I run the report, I can enter the date ranges in via the Enter Values prompt screen, and it works file,
    All I need to know is - how do I pass the dates the user selected in the VB program to the pDateRange parameter?
    Thanks very much,
    Carl

    Thanks Ludek for the reply.
    Unfortunately, I canu2019t seem to puzzle this out.  None of the examples seem to work.  This is an example, along with their comments.
    I get the error "The parameter field current values cannot contain range values because the ValueRangeKind property is set to discrete." on the last line.
    I could REALLY use some help getting past this issue.
           Dim myReportDocument As New CRS_Tab_Prod_Org_Cnt_Params2
            Dim crParameterFieldDefinitions As ParameterFieldDefinitions
            Dim crParameterFieldDefinition As ParameterFieldDefinition
            Dim crParameterValues As ParameterValues
            Dim crParameterRangeValue As ParameterRangeValue
            crParameterFieldDefinitions = myReportDocument.DataDefinition.ParameterFields
            'Access the individual subreport parameter field "Date_Range"
            crParameterFieldDefinition = crParameterFieldDefinitions.Item("Date_Range")
            'Cast the variable to hold the values to pass to the Report before execution
            crParameterValues = crParameterFieldDefinition.CurrentValues
            'Cast the variable to hold the range value for the parameter
            crParameterRangeValue = New ParameterRangeValue()
            'Set the Date range and include the upper and lower bounds. Use the Cdate function as insurance
            'to ensure that the value passed is cast to the appropriate data type
            With crParameterRangeValue
                .EndValue = CDate("1/1/1997")
                .LowerBoundType = RangeBoundType.BoundInclusive
                .StartValue = CDate("12/20/1997")
                .UpperBoundType = RangeBoundType.BoundInclusive
            End With
            'Apply the Date range to the values to be passed to the Report
            crParameterValues.Add(crParameterRangeValue)
            'Pass the parameter values back to the report
            crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
    Thanks for your help,
    Carl

  • Using Date Range parameter in Subreport Selection Formula

    I have a subreport which includes this line in the selection formula:
    {Production.Date} = {?Pm-?DateRange}
    {?Pm-?DateRange} appears in the Subreport Links window, so it seems like it should work.
    The DateRange parameter is set by the user in the Main report.
    But the subreport returns no records.
    I tried this:
    In the Main report I created a StartDate and a StopDate field from {?Pm-?DateRange} .
    Then in the subreport selection formula I used these two formula fields like this:
    {Production.Date} >= @StartDate
    and
    {Production.Date} <= @StopDate
    This works!
    So I have found a workaround, but still, I don't understand why the original code {Production.Date} = {?Pm-?DateRange} returns no records.
    Thanks,
    Art

    Hi Art,
    You cannot use a date range parameter directly in the subreport's record selection formula.
    You'll need to create a formula in the Main report like this:
    Minimum(?DateRange) //This gives the start date
    Maximum(?DateRange) //This gives the end date
    Then send these formulas as parameters to subreport for use in the record selection formula.
    I think you've already got this figured out anyway!
    -Abhilash

  • Sintax problem in procedure..passing a date range

    Hio guys, I built an alter view using a stored procedure. Everything is ok ( it's a big procedure) but the date in where Archived..etc. It comes from the procedure below. Any advice? I tried with "' '" '' but nothing...syntax problem. Thanks a
    lot.
    with cte as (
    select nmonth, customer, [ecode], [echarge],archived from ArchiveBillable where Archived between 2014-11-03 and 2014-11-07
    or Archived between 2014-12-03 and 2014-12-07
    ), cte2 as (select nmonth, customer, [echarge], CONVERT(varchar(6), archived, 112) as archived
    from cte where [ecode] in ('armani','valentino')),
    cte3 as (
    select customer, archived,Nmonth, SUM(CAST([echarge] AS DECIMAL (20,4))) AS charge from cte2 group by
    customer, nmonth, archived)
    select * from cte3
    PIVOT
    sum(charge)
    FOR archived
    IN (
    [201411], [201412]
    ) AS PivotTableAlias
    select nmonth, customer, [ecode], [echarge],archived from ArchiveBillable where Archived between '+@fromone+' and '+@toone+'
    or Archived between '+@from+' and '+@to+'
    ), cte2 as (select nmonth, customer, [echarge], CONVERT(varchar(6), archived, 112) as archived
    from cte where [ecode] in (''armani'',''valentino'')),
    cte3 as (
    select customer, archived,Nmonth, SUM(CAST([element charge] AS DECIMAL (20,4))) AS charge from cte2 group by
    customer, nmonth, archived)
    select * from cte3
    PIVOT
    sum(charge)
    FOR archived
    IN (
    ['+@inPIVOT2+'], ['+@inPIVOT+']
    ) AS PivotTableAlias'

    Guys tanks to everyone, probably I didn't explain correctly my issue. Everything is fine, structure, data, date. Everything but this part (this is part of the view created by the procedure):
    select
    nmonth, customer,
    [element code], [element charge],archived
    from ArchiveBillable
    where Archived
    between
    2014-11-03
    and
    2014-11-07
    or Archived
    between
    2014-12-03
    and
    2014-12-07
    There is no apex.
    It should be:
    select
    nmonth, customer,
    [element code], [element charge],archived
    from ArchiveBillable
    where Archived
    between '2014-11-03'
    and '2014-11-07'
    or Archived
    between '2014-12-03'
    and '2014-12-07'
    with the apex.
    The part of the procedure involved:
    DECLARE
    @From varchar(10)
    DECLARE
    @To varchar(10)
    DECLARE
    @FromOne varchar(10)
    DECLARE
    @ToOne varchar(10)
    DECLARE
    @FIRSTALTER VARCHAR(MAX)
    DECLARE
    @SECONDALTER VARCHAR(MAX)
    DECLARE
    @inPIVOT VARCHAR(6)
    DECLARE
    @inPIVOT2 VARCHAR(6)
    SELECT
    @FirstDayOfCurrentMonth =
    DATEADD(MONTH,
    DATEDIFF(MONTH,
    '01/01/1900',
    Current_timeStamp),
    '01/01/1900')
    SELECT
    @From
    =DATEADD(DAY,
    2, @FirstDayOfCurrentMonth)
    @To=DATEADD(DAY,
    6, @FirstDayOfCurrentMonth)
    @FromOne=DATEADD(DAY,
    2,
    DATEADD(MONTH,
    -1,
    @FirstDayOfCurrentMonth))
    @ToOne=DATEADD(DAY,
    6,
    DATEADD(MONTH,
    -1,
    @FirstDayOfCurrentMonth))
    set
    @inPIVOT=left(@from,4)+SUBSTRING(@from,6,2)
    set
    @inPIVOT2=left(@fromone,4)+SUBSTRING(@fromone,6,2)
    SET
    @FIRSTALTER='Alter view
    ChargePivot as
    with cte as (
    select nmonth, customer, [ecode], [echarge],archived from ArchiveBillable where Archived between '
    +@fromone+'
    and '+@toone+'
    or Archived between '
    +@from+'
    and '+@to+'
    ), cte2 as (select nmonth, customer, [echarge], CONVERT(varchar(6), archived, 112) as archived
    from cte where [ecode] in (''armani'',''valentino'')),
    cte3 as (
    select customer, archived,Nmonth,  SUM(CAST([element charge] AS DECIMAL (20,4))) AS charge from cte2 group by 
    customer, nmonth, archived)
    select * from cte3
    PIVOT
       sum(charge)
       FOR archived
       IN (
    +@inPIVOT2+'],
    ['+@inPIVOT+']
    ) AS PivotTableAlias'
    exec
    (@firstalter)
    I pass the parameter but I don't pass the apex...

  • Is it possible to pass some data from a successful test to the next one?

    For example, after testing the login system in one test, we can test all other features using an authentication token obtained in the first test.
    Is that possible in the new FlexUnit ?
    Many thanks,
    Adnan

    No.
    Tests are completely independent of each other. If you needed to do something like this, you could either use the before to login each time, or you could use the BeforeClass to login once and keep your token as a static property of the class.

  • Pass date range parameter  to SQL stored procedure.

    Hi,
    I'd like to pass a date range parameter from Crystal Reports to a sql stored procedure. Does anyone know if this is possible?
    I've had no problem passing standard datetime (single value) paramaters to and from but am struggling with getting a range value parameter to work.
    Environment: Crystal Reports 10/XI and SQL 2000 MSDE version or SQL 2005 Express Edition.
    Any help would be appreciated.

    C5112736 wrote:>
    > And then these 2 formulas 'Formula # 1' and 'Formula # 2' can be used to pass on to the stored procedure.
    Can someone please demonstrate exactly how to use formula results as date parameters to a SQL stored procedure?  Keep in mind, there are two parameters to the stored procedure.
    I have gleaned this much: Use Add Command and insert the procedure with
    EXEC ServerName.dbo.usp_sprocName;1 '{?StringParameter}'
    but if I try to do
    {CALL ServerName.dbo.usp_SprocName({@Formula1},{@Formula2})}
    then it gives the error "No value given for one or more required parameters". 
    Both of the parameters are VARCHAR(50).
    I have finally found this link: [http://msdn.microsoft.com/en-us/library/ms710248(VS.85).aspx|http://msdn.microsoft.com/en-us/library/ms710248(VS.85).aspx]
    This Microsoft site defines the format of the ODBC escape sequences, but I still do not know how to convince Crystal to insert it's parameter results or formula results.
    Pulling what's left of my hair out . . .
    ~ Shaun

  • Date Range For X-Axis On Range Graph

    Hi,
    Is it possible to use a date range on the x-axis of a range graph rather than having to use numbers
    I'm trying to show the various start and end date of projects on a single range graph and i can convert the start / end dates to number and the graph to displays as expected but some how i need x-axis to show the dates rather than the numbers
    This is what I've done so far, any ideas?
    http://apex.oracle.com/pls/otn/f?p=37821:5
    Thanks Andy

    Hi,
    Just wondering if anyone had any ideas about how I could achieve this. The senior managers love the way its look but without dates across the x-axis its not much use to them
    Thanks Andy

  • Date range in function module

    Hi guys,
                 i have a selection screen where i need to give range of date.
    say from 01.01.1998 to 01.02.2007.
    i need to pass this date range to 'Z' funtion module how can i do it.
    do i need to define it in tables declaration. if yes what will be the reference type of this field.
    I want this range of dates in function module.
    Please explain.

    Hi ahmed
           Let us assume s_date is the select option for the date range defined like  
           DATA: s_date for p0001-begda.
           Now while calling the FM pass the s_date-low and s_date-high as 2 parameters for the FM.In the FM create 2 parameters begda and endda of type begda. Use the low value and high value in the FM to populate the range table and u can use this range table for further processing of the dates in the FM.The range table can be forwarded as follows:
    r_date-low = begda.
    r_date-high = endda.
    also provide the sign and options for the ranges table.

  • Passing from data from one page to another

    Hi All, i'm currently doing a CSV file upload into a database
    application, and I'm wondering if it is possible to pass the data
    from the file field to another php file which executes the command
    of inserting the data of the csv file into the database? Thanks!!
    Wanqi

    You have this in test.php -
    $target_path = $_GET['uploadfile'];
    That implies that the page calling test.php is passing
    'uploadfile' as a URL
    variable. But it isn't.
    <form id="form1" name="form1"
    enctype="multipart/form-data" method="post"
    action="test.php">
    Why wouldn't $target_path be the same as $uploadfile?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "taywanqi" <[email protected]> wrote in
    message
    news:[email protected]...
    > Attached below is the code i used for my application:
    >
    > form.php
    >
    >
    >
    >
    >
    >
    >
    > <?php
    > session_start();
    > ?>
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>Untitled Document</title>
    > <style type="text/css">
    > <!--
    > .style13 { color: #FFFFFF;
    > font-family: Georgia, "Times New Roman", Times, serif;
    > font-size: 14px;
    > }
    > -->
    > </style>
    > </head>
    >
    > <body>
    > <form id="form1" name="form1"
    enctype="multipart/form-data" method="post"
    > action="test.php">
    > <p align="center">
    > <input type="file" name="fileupload" id="fileupload"
    />
    > <input type="hidden" name="csvfile" id="csvfile"/>
    >
    > </p>
    > <p align="center">
    > <input type="submit" name="upload" id="upload"
    value="Submit" />
    > </p>
    > </form>
    > </body>
    > </html>
    >
    >
    > Test.php
    >
    > <?php
    > session_start();
    > echo $name;
    > ob_start();
    > ?>
    >
    > <?php require_once('connection.php'); ?>
    >
    > <?php
    >
    > //UPLOADING FILE
    > if(isset($_POST['upload']))
    > {
    >
    > $uploaddir = 'uploads';
    >
    > $uploadfile = $uploaddir .
    basename($_FILES['fileupload']['name']);
    >
    > $target_path = $_GET['uploadfile'];
    >
    > echo $target_path;
    >
    > //$target_path = ini_get('$uploadfile');
    >
    > echo $file;
    >
    > echo '<pre>';
    > if
    (move_uploaded_file($_FILES['fileupload']['tmp_name'],
    $uploadfile)) {
    >
    > echo "File is valid, and was successfully uploaded.\n";
    >
    > } else {
    > echo "Possible file upload attack!\n";
    > }
    >
    > echo 'Here is some more debugging info:';
    > print_r($_FILES);
    >
    > print "</pre>";
    > }
    >
    >
    > $fcontents = $_SESSION[csvfile];
    >
    > for($i=0; $i<sizeof($fcontents); $i++) {
    >
    > $line = trim($fcontents[$i]);
    > $arr = explode("\t", $line);
    >
    > echo $arr."<br>\n";
    >
    >
    > }
    >
    > //ATTRIBUTES
    > //$fieldseparator = ',';
    > //$lineseparator = '\n';
    >
    > //READING OF FILE
    > $csvfile = $uploaddir .
    basename($_FILES['fileupload']['name']);
    >
    > //TRUNCATE THE FILE BEFORE INSERTING IT INTO THE
    DATABASE
    > mysql_select_db($database, $test);
    > mysql_query("TRUNCATE TABLE timetable") or die("MySQL
    Error: " .
    > mysql_error()); //Delete the existing rows
    >
    > //IMPORT CSV INTO DATABASE
    > $lines = 0;
    > $queries = "";
    > $linearray = array();
    > $fcontents = file($csvfile);
    >
    > for($i=0; $i<sizeof($fcontents); $i++) {
    >
    > $lines++;
    >
    > $line = trim($fcontents[$i]);
    >
    > $linearray = explode(',',$line);
    >
    > $linemysql = implode("','",$linearray); // convert the
    array to a string
    >
    > echo "$linemysql". "\n";
    >
    > //$query = "INSERT INTO timetable
    values('$linemysql')";//Insert query to
    > insert values into the database
    > $query = 'LOAD DATA INFILE "$target_path" REPLACE
    > INTO TABLE timetable
    > FIELDS TERMINATED BY ","
    > OPTIONALLY ENCLOSED BY """"
    > LINES TERMINATED BY "\r\n"';
    >
    > mysql_query($query, $test) or die('SQL
    ERROR:'.mysql_error()); //Insert
    > in
    > the new values into the database
    >
    > }
    >
    > ?>
    >
    > </head>
    > <body>
    > </body>
    > </html>
    > <?php ob_flush(); ?>
    >

  • Opendoc date range into Bex query

    We are having an issue when trying to pass a date range in an Opendoc link. The report is built off a BEx query,  within the report we have an Opendoc link into a child version of the report. I can pass all the other prompts with no issue except for one which is the date range.
    I am defining the date range as "[19000101]..[19000101]" but we keep getting this error message:
    Has anyone lese had this issue?
    Thanks

    Hi,
    Try This
    "[Date(2014,04,01)]..[Date(2014,04,11)]"
    "[Date(yyyy,MM,dd)]..[Date(yyyy,MM,dd)]"
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_opendocument_en.pdf#page=26
    http://<servername>:<port>/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=Aa6GrrM79cRAmaOSMGoadKI&sID
    Type=CUID&sRefresh=Y&lsRTime+Period:=[2000..2004)
    http://<servername>:<port>/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=Aa6GrrM79cRAmaOSMGoadKI&sID
    Type=CUID&sRefresh=Y&lsRparamStringDR=[h..i]&lsRparamNumberDR=[7..8]&lsRparamCurrencyDR=[3..4]&lsRparamDat
    eDR=[Date(2003,6,7)..Date(2003,6,8)]&lsRparamDateTimeDR=[DateTime(2003,6,1,7,1,1)..Date
    Time(2003,6,1,8,1,1)]&lsRparamTimeDR=[Time(1,1,7)..Time(1,1,8)]&lsRparamUnbound1=(..6)&lsRpara
    mUnbound2=[6..)&lsRparamStringR=[a..d]&lsRparamNumberR=[1..3]&lsRparamCurrencyR=[1..3]&lsRparam

  • Passing date range parameters in MDX Query

    Following is my mdx query
    SELECT NON EMPTY
        [Measures].[Cache Attendees Count]
    ON COLUMNS,
    NON EMPTY
        ([Cache Attendees].[Visit Id].[Visit Id].ALLMEMBERS *
        [Cache Attendees].[User Id].[User Id].ALLMEMBERS *
        [Cache Attendees].[Screen Name].[Screen Name].ALLMEMBERS *
        [Cache Attendees].[User Type Id].[User Type Id].ALLMEMBERS *
        [Cache Attendees].[User Type Name].[User Type Name].ALLMEMBERS *
        [Cache Attendees].[Group Date Count].[Group Date Count].ALLMEMBERS *
        [Cache Attendees].[Insert Time Stamp].[Insert Time Stamp].ALLMEMBERS )
        DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM
        SELECT
                STRTOMEMBER(@FromCacheAttendeesInsertTimeStamp) : STRTOMEMBER(@ToCacheAttendeesInsertTimeStamp)
            ) ON COLUMNS FROM (
            SELECT
                STRTOSET(@CacheAttendeesConferenceId) ) ON COLUMNS FROM [Cube_Attendee])
            WHERE ( IIF( STRTOSET(@CacheAttendeesConferenceId).Count = 1, STRTOSET(@CacheAttendeesConferenceId), [Cache Attendees].[Conference Id].currentmember ) )
    CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    I want to filter my cube with three parameters
    1. @CacheAttendeesConferenceId
    2. @FromCacheAttendeesInsertTimeStamp
    3. @ToCacheAttendeesInsertTimeStamp
    When i pass following parameters
    ConferenceId = 1, StartDate='2010-01-28T00:00:00', EndDate='2010-02-03T00:00:00'
    Then it show records
    But When i pass following parameters
    ConferenceId = 1, StartDate='2010-01-27T00:00:00', EndDate='2010-02-03T00:00:00'
    Then it display message No Data Available
    PLease help me on this issue why not FromDate & ToDate range works properly.

    Step1:- First i create a SSAS datasource. Then i create a cube for my table CacheAttendees.
    It has following columns:-
    [Cache Attendees].[Conference Id]
    [Cache Attendees].[Group Date Count]
    [Cache Attendees].[Insert Time Stamp]
    [Cache Attendees].[Screen Name]
    [Cache Attendees].[User Id]
    [Cache Attendees].[User Type Id]
    [Cache Attendees].[User Type Name]
    [Cache Attendees].[Visit Id]
    Step2:- Then i create a dimension with this cube with all columns.
    Step3:- Then i deploy my SSAS project.
    Step4:- Use SSAS datasource in my SSRS datasource.
    Step5:- Create a report with chart control. Add a parameter ConferenceId. Set default to 1. When i preview my report then it show Cache Attendees].[Conference Id].[1] in header of report instead of that, When i pass the parameter value as 1 then report cannot show & throw an error. I want to pass this parameter at runtime.
    Step6:- Please help me how is it possible to pass parameter at runtime.

Maybe you are looking for