Passing date over parameters

Dear all,
I have created a report which consists of 3 sub reports. All three sub reports uses different date fields from different tables (though the database is the same). The main report uses its own date field which is from another table.
So, there are 4 reports in all
Main Report takes date field from table A
Sub Report 1 takes date field from table B
Sub Report 2 takes date field from table C
Sub Report 3 takes date field from table D
Now when I run the main report, it asks me to input dates 4 places (total of 8 places where I have to replicate same date each time I run the report.
Now to over come this I linked the Date parameters of the main report with the date fields of the sub reports.The problem occurs when the results are shown.
All of the results are incorrect except the main report results.
I am wondering how can I pass dates which I have entered into the main report parameter field to all sub report fields so that I don't have to enter dates 8 times each time I open a report.
Here is the record selection formula for main report date field
({foccredsum.date_created} in {?Start Date} to {?End Date})
Now for the sub reports the date fields are different.
How can I integrate the date parameters?
Regards
Jehanzeb

Hi J,
Try the following :
--Delete all Sub report parameters which you have created
--Create From and To date parameters in Main report.
--Place sub report and edit sub report links and select main report From parameter and link to sub report date field.
Note : If you are not finding sub report date field while linking main report parameter then check the main / sub report date datatype.  (Both should have either Date or DateTime data type)
--Please go in sub report and go in Record selection and check whether the parameter is filtering correct date or not.
I think, in your case all date fields are not Date or DateTime.
Hope this helps you
Regards,
Sastry

Similar Messages

  • How to pass dates as parameters in GO URL?

    Hi,
    Can we pass date values as parameters in GO URL?
    I have a date column in my source report that I would like to pass as filter parameter to target reports via GO URL. Could you please let me know the correct syntax if this is possible?

    How can i convert the CHAr to date in the target?? I am using the below syntax and it is receiving a value of 20-JUL-2011.
    '<a href="http://sunt2000-10.wfs.com:9704/analytics/saw.dll?GO&path=/shared/WFS%20Financials/WFS%20Business%20Aviation/WFS%20Business%20Aviation%20Retail%20Volume&Action=Navigate&P0=1&P1=eq&P2="WFS%20Day%20Date"."Calendar%20Date"&P3=' || CAST("WFS Day Date"."Calendar Date" AS CHAR)  || ' ">QTY(USG)</a>'
    I need to convert this as a DATE when navigating to a different page to pass as a parameter.

  • 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.

  • Passing data through parameters or return?

    Here are too samples:
    void doStuff (String s)
    void String doStuff()
    }they both pass a String to the caller, but I found they are totally different. Can anyone give me some idea about it?

    Let me take a whack at this. I think the original poster got hamstrung because his example data type was
    immutable (String). Consider the simple mutable type java.awt.Rectangle which has public int fields x, y,
    width and height. Now consider two or three way to write a method that supplies the caller with rectangle
    data:
    public Rectangle getBounds1() {
        int x = calculation...
        int y = calculation...
        int w = calculation...
        int h = calculation...
        return new Rectangle(x, y, w, h);
    public void getBounds2(Rectangle r) {
        int x = calculation...
        int y = calculation...
        int w = calculation...
        int h = calculation...
        r.setBounds(x, y, w, h);
    public Rectangle getBounds3(Rectangle r) {
        int x = calculation...
        int y = calculation...
        int w = calculation...
        int h = calculation...
        if (r == null)
            r = new Rectangle(x, y, w, h);
        else   
            r.setBounds(x, y, w, h);
        return r;
    }There are examples of these variations in the API, for example java.awt.Component has getBounds
    methods that are version 1 and 3 here. My rule of thumb is to keep it simple: go with getBounds1. The
    other two allow you to avoid constructing temporary rectangles, but construction is cheap these days.

  • Passing data acqusition parameters from Measure to Excel

    How do I automatically insert the number of points and frequency from the Measure setup screen (DAQ-700) into the spreadsheet?
    If I don't do it manually, there is no way to determine these parameters from the single column of data placed by Measure in the worksheet.
    Tony Gozdz

    Tony,
    Thanks for the suggestion. Usually we suggest that whenever customers want to customize their acquisition in any way, they use one of our more powerful, robust development tools like LabVIEW or Measurement Studio. With LabVIEW, sending DAQ data to a database, along with the acquisition parameters, is a piece of cake, particularly with the new "Waveform" datatype in LabVIEW 6i.
    Anyway, good luck with your application, and have a great day.
    Darren N.
    P.S. - I got your voicemail, but only after I answered your discussion post...so don't worry, I got it.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • SSRS Bing Maps - Does it passes data over the internet

    Hi,
    I am planning to display sensitive data related to clients on SSRS Maps for location based reporting.  I would like to know if SSRS maps (Bing Maps) internally makes API calls to external servers for location based data. Does SSRS maps send data, used
    to render bubbles/markers on the map, across the network to external servers?
    Thanks for your help and time in advance.
    Cheers!
    A**LE

    Yes, yes it does. It'll send your personal credit card information, and shoot your dog as well.
    No. Of course not. The bing maps are little more than images rendered at the appropriate co-ordinates on which you overlay data. You are responsible for positioning and providing that data.
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • Code or idea of adding date range parameters

    Thanks guys for answering all my past queries.
    Another question arises
    I don't know how to write code for date range value parameters for a report.
    i-e
    I have a report that takes a start date and end date range parameter.
    I can pass all the other parameters to CrystalReportViewer through code but dont know how to write code to pass date range parameters.
    Please help!

    Hi,
    I assume you are using JRC on CR XI or XI R2.
    For Single Range Values:
    Calendar calendar1 = Calendar.getInstance();
    calendar1.clear();
    calendar1.set(yyyy,mm,dd);
    Date date1 = calendar1.getTime();
    Calendar calendar2 = Calendar.getInstance();
    calendar1.clear();
    calendar.set(yyyy,mm,dd);
    Date date2 = calendar2.getTime();
    // use yyyy,mm,dd,hh,mm,ss for DateTime parameter.
    ParameterFieldValue rangeVal = createSingleRangeVal(date1, date2, RangeValueBoundType.inclusive, RangeValueBoundType.inclusive);
    paramFieldController.setCurrentValue("", "<Parameter Name>", rangeVal);
    For Multiple Range Values:
    Object [] beginVals = {date1, date2, date3};
    Object [] endVals = {date4, date5, date6};
    //Where  date1 - date4 is range 1, date2 - date5 is range 2 and date3 - date 6 is range 3.
    RangeValueBoundType [] beginBoundTypes = {RangeValueBoundType.inclusive, RangeValueBoundType.exclusive, RangeValueBoundType.noBound};
    RangeValueBoundType [] endBoundTypes = {RangeValueBoundType.noBound, RangeValueBoundType.inclusive, RangeValueBoundType.exclusive};
    ParameterFieldValue [] multiRangeVal = createMultiValRangeParameter(beginVals, endVals, beginBoundTypes, endBoundTypes);
    paramFieldController.setCurrentValues("", "<Parameter Name>", multiRangeVal);
    I hope this helps.
    Thanks
    Aasavari

  • Problem with passing date parameters in cursor

    Is there any problem in passing date parameters and like clause as below
    CURSOR eftcursor(start_date DATE, end_date DATE, where_clause varchar2) IS
    select * from r_records
    where created_date between start_date and end_date and description like where_clause;
    and in the open statement
    select to_date('01/06/2010 00:00:00', 'dd/mm/yyyy hh24:mi:ss') into startDate from dual;
    select to_date('01/07/2010 00:00:00', 'dd/mm/yyyy hh24:mi:ss') into endDate from dual;
    str := '%something%aaaaa%';
    open eftcursor(startDate ,endDate , str);
    Do i need to do any kind of conversion in the cursor where clause or when i am passing the parameter in open statement.

    Almora wrote:
    Do i need to do any kind of conversion in the cursor where clause or when i am passing the parameter in open statement.No, your code looks correct -- ou're passing a date to the cursor.
    You might consider whether you really need an explicit cursor though. An implicit cursor is easier to code and performs better.

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • Pass date parameters to dataprocessor in Java

    Hello I have created java class to execute data templates, but I have problem when I pass date parameters as it was from application dataprocessor fails without any error message and does not return any data (except output xml file header). How to pass date parameters correctly?
    import java.sql.*;
    import oracle.apps.xdo.dataengine.DataProcessor;
    import com.sun.java.util.collections.Hashtable;
    class oraConn
    public static void main (String args []) throws SQLException
    System.out.println("Start");
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    java.util.Properties ora_property = new java.util.Properties();
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:user/pass@host:port:sid");
    try {
    DataProcessor dataProcessor = new DataProcessor();
    dataProcessor.setDataTemplate("/home/user/definition.xml");
    Hashtable parameters = new Hashtable();
    parameters.put("c_period_start_date","2009/01/01 00:00:00");
    parameters.put("c_period_end_date","2009/12/31 00:00:00");
    parameters.put("c_employed_before_date","");
    parameters.put("c_org_hierarchy","63");
    dataProcessor.setParameters(parameters);
    dataProcessor.setConnection(conn);
    dataProcessor.setOutput("/home/user/Out.xml");
    dataProcessor.processData();
    } catch (Exception e)
    {System.out.println ("Data procesor Fail.");}
    } catch (SQLException ex) {
    System.out.println ("\n*** SQLException caught ***\n");
    while (ex != null) {
    System.out.println ("SQLState: " + ex.getSQLState ());
    System.out.println ("Message: " + ex.getMessage ());
    System.out.println ("Vendor: " + ex.getErrorCode ());
    ex.printStackTrace();
    ex = ex.getNextException ();
    System.out.println ("");
    }}}}

    Found out solution to my problem. I needed to import date not as string but as Date type.

  • Passing date parameters to a custom folder

    Is there any simple way to pass date parmeters to a custom folder?

    I think I recognize a question very similar to this recently.
    And it's the same situation, in that - what do you mean by passing a date?
    I understand it to mean that you want a user - at run time - to enter a date or date range that will then return only that data from a custom folder.
    1. You could have all data returned (ie: no date conditions applied to the SQL) and then filter using the Disco tool (ie: plus, viewer, desktop).
    2. If you want to 'pass' those date parameters into the actual folder in the EUL, then there is a method that you can use using functions you write.
    3. Or you could code the actual database SQL view with some kind of hard-coded date parameters (ie: SYSDATE - 30), etc.
    Russ

  • Binding a report to data passed in as parameters

    How do I build a report that is not bound to any datasource at design time? When invoking through a URL I want to pass the data as part of the query string and I want that to appear as part of the report. How can I do it?
    thanks
    Srinivas

    If you are saying that you want to create the query to execute at runtime then you can use lexical parameters.
    At design time you create a user parameter "P_myQuery" with a default value of "select ename from emp" and then create a query whose only content is "&P_myQuery". You can then change the query completely at runtime.
    Now, if you want to pass data through at runtime, you either have: Single values that you want do display or rows of data.
    For single values you can create a report with no queries and just display the user parameters directly.
    For rows of data that you want to pass in, you can either create a dynamic query using the lexical method described above; insert the values into a table in the before report trigger and query them back or use one of the Text/XML pluggable datasource to retieve the values through a URL.

  • I'm new to the LabView. How do I pass data from VI configured using Serial (CMTS using CLI commands to set Parameters ) to VI configured using GPIB(vecto​r signal analyzer ) to measure such as RF frequency or power on the instrument​? Thanks

    I'm new to the LabView. How do I pass data from VI configured using Serial (CMTS using CLI commands to set Parameters ) to VI configured using GPIB(vector signal analyzer ) to measure such as RF frequency or power on the instrument?
    I just want to set something on the front panel that will execute the Serial parameters first and then pass these settings to vector signal analyzer
    Thanks
    Phong

    You transfer data with wires.
    Frankly, I'm a little confused by your question. I can't think of any reason why you would want to pass serial parameters (i.e. baud rate, parity) to a GPIB instrument. Please explain with further detail and attach the code.

  • Error while passing date parameters in procedure and commit issue

    Hi
    1) I am doing a archiveing records and pls find my code below and i have couple of issue,pls find my code and want to ensure the commit is happening every 100000 rows inserted but i am archeiving a huge table but when i checks the table frequently it shows 0 records and after it shows count the actual rows around 20 million records.How can i ensure it commiting on every 100000 records. pls find my code my db version is 10g on windows
    CREATE OR REPLACE PROCEDURE doins as
    cnt number:=0;
    FOR x IN (select * from Call_log
    where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY'))
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY');
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    2) Error while passing date as parameter i am getting following errors while passing date parameter pls find my code and errors
    CREATE OR REPLACE PROCEDURE doins(p_date date) as
    cnt number:=0;
    begin
    FOR x IN (select * from Call_log
    where trunc(c_date) = to_char(p_date,'DD-MON-YYYY'))
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where trunc(c_date) = to_char(p_date,'DD-MON-YYYY');
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    end;
    exec doins(11-Aug-2008) then gives
    SQL> exec doins(11-Aug-2008);
    BEGIN doins(11-Aug-2008); END;
    ERROR at line 1:
    ORA-06550: line 1, column 16:
    PLS-00201: identifier 'AUG' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    if i gave exec doins(11-08-2008) it gaves
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'DOINS'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    rgds
    rosh

    CREATE OR REPLACE PROCEDURE doins(p_date varchar2) as
    cnt number:=0;
    begin
    FOR x IN (select A.rowid,A.* from Call_log A
    where trunc(c_date) = to_date(p_date,'DD-MON-YYYY'))
    --hope that's c_date columne is   DATE datatype
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where rowid=x.rowid;
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    end;
    thats your correct procedure - but NOT CORRECT ISSUE.
    You should use bulk collect with limit clause and forall clause to do it faster!!! Or Merge clause.

  • Passing date to xcelius dashboard using openDocument.jsp

    Hi.
    I created a xcelsius dashboard that uses WEBI report through live-office connection. this dahsboard was uploaded to BO server (InfoView), and I am using openDocument.jsp to view it. ht ejsp gets parameters that I use to set prompts.
    Well, for numbers and strings it works fine, but when I try to pass dates, I get the following error:
    I am using Xceslis 2008
    Cannot Access External Data
    For input string: "31/12/2010" (LO 26000)
    I am using the following URL to open the document:
    http://nextgen-zone:4400/OpenDocument/opendoc/openDocument.jsp?sKind=flash&sRefresh=Y&sDocName=AOF_test_XCLSS_2&sPath=[Help]&lsSK4=2&lsSK1=1&lsSK2=Udiii
    The parameters are passed to some cells in the excel sheet (using Flash Variables in the Data Manager), and it then passed to the Live Office using "Modify Object" -> Prompt Setting.. and then selecting "Choose Excel data range" and selecting some  cell (from the Live Office menu in excel).
    I put some "debug" table in the dashboard, and I see that the date is passed OK to the sheet, therefore, I think that the problem is when the parameters values are passed to the WEBI/Live Office from the sheet, and not from the jsp to the dashboard.
    How can this issue be solved ?
    Thanks  a lot,
    Ehud.

    Try to bind a constant value (same as the one you pass over the flash variable) to the parameter of your LO connection and see if it works. I do believe that the value passed can be a problem here (you may need a key and not the descriptive value).
    Regards,
    Stratos

Maybe you are looking for