Date range using "Date Field" from basic component

Hello Everyone,
I have been trying to create date range option available on the dashboard based on 2 Date Filed component.
Backend for this Dashboard is BW with using BEx query. I have a info object (Z_Date)
Now I want to have 2 date box using Date Field component 1. Start Date 2. End Date.
I have tried following
1. Start Date - on Select
DS_1.setFilter("Z_Date", {"low":StartDate.getDate()});
2. End Date - on Select
DS_1.setFilter("Z_Date", {"High":EndDate.getDate()});
both the scripts do not have any problem but it doest work as it is suppose to be.
I have also tried based on following How to write script for DATE Range
But no luck so far.
Please share if any one have achieved date range working as mentioned.
Thanks,
Rajan

Hi,
Set Default Date in Both Date Prompts initially .
1. Start Date - on Select
var startDate = StartDate.getDate();
var endDate = EndDate.getDate();
var varRange = startDate + " - " + endDate;
DS_1.setFilterExt("Z_SDPCD", varRange);
2. End Date - on Select 
var startDate = StartDate.getDate();
var endDate = EndDate.getDate();
var varRange = startDate + " - " + endDate;
DS_1.setFilterExt("Z_SDPCD", varRange);
Or
Select Dates First Then Provide a Button (Done) .
And write code On Click Event of that Button
var startDate = StartDate.getDate();
var endDate = EndDate.getDate();
var varRange = startDate + " - " + endDate;
DS_1.setFilterExt("Z_SDPCD", varRange);

Similar Messages

  • CRVS2010 beta - Date field from database does not display in report

    Hi there - can someone please help?!
    I am getting a problem where a date field from the database does not display in the report viewer (It displays on my dev machine, but not on the client machines...details given below)
    I upgraded to VS 2010
    I am using the CRVS2010 Beta
    My development machine is Windows 7 - and so is my fellow developer's
    We are using Microsoft SQL Server 2000
    We run the queries within VS and then we send the data table to VS using .SetDataSource
    We have a few reports which display the date on our dev machines (whether we run the EXE or from within Visual Studio)
    When we roll out to the client machines (running Windows XP SP3) then everything works, except that the date does not display (on quite a few reports)
    This is the only real issue I have had - a show stopper for me
    The rest works well - any input will be greatly appreciated
    Regards,
    Ridwan

    Hi Ridwan,
    After much testing I have it all working now using CRDB_adoplus.dll as a data source ( XML )
    Alter your Config file to look like this:
    <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
    </startup>
    Then using the code below, and CR requires the Schema to be able to read the date format.
    private void SetToXML_Click(object sender, EventArgs e)
    CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    ISCDReportClientDocument rcd;
    rcd = rptClientDoc;
    string connString = "Provider=SQLOLEDB;Data Source=dwcb12003;Database=xtreme;User ID=sb;Password=password";
    string sqlString = "Select * From Orders";
    OleDbConnection oleConn = new OleDbConnection(connString);
    OleDbDataAdapter oleAdapter = new OleDbDataAdapter(sqlString, oleConn);
    //OleDbDataAdapter oleAdapter2 = new OleDbDataAdapter(sqlString2, oleConn);
    DataTable dt1 = new DataTable("Orders");
    oleAdapter.Fill(dt1);
    System.Data.DataSet ds = new System.Data.DataSet();
    // We need the schema to get the data formats
    ds.WriteXml("c:
    sc.xml", XmlWriteMode.WriteSchema);
    //Create a new Database Table to replace the reports current table.
    CrystalDecisions.ReportAppServer.DataDefModel.Table boTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();
    //boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
    PropertyBag boMainPropertyBag = new PropertyBag();
    //boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
    //In the main property bag (boMainPropertyBag)
    PropertyBag boInnerPropertyBag = new PropertyBag();
    //Set the attributes for the boInnerPropertyBag
    boInnerPropertyBag.Add("File Path ", @"C:\sc.xml");
    boInnerPropertyBag.Add("Internal Connection ID", "{680eee31-a16e-4f48-8efa-8765193dccdd}");
    //Set the attributes for the boMainPropertyBag
    boMainPropertyBag.Add("Database DLL", "crdb_adoplus.dll");
    boMainPropertyBag.Add("QE_DatabaseName", "");
    boMainPropertyBag.Add("QE_DatabaseType", "");
    //Add the QE_LogonProperties we set in the boInnerPropertyBag Object
    boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
    boMainPropertyBag.Add("QE_ServerDescription", "NewDataSet");
    boMainPropertyBag.Add("QE_SQLDB", "False");
    boMainPropertyBag.Add("SSO Enabled", "False");
    //Create a new ConnectionInfo object
    CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo boConnectionInfo =
    new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
    //Pass the database properties to a connection info object
    boConnectionInfo.Attributes = boMainPropertyBag;
    //Set the connection kind
    boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
    //*EDIT* Set the User Name and Password if required.
    boConnectionInfo.UserName = "";
    boConnectionInfo.Password = "";
    //Pass the connection information to the table
    boTable.ConnectionInfo = boConnectionInfo;
    //Get the Database Tables Collection for your report
    CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables;
    boTables = rptClientDoc.DatabaseController.Database.Tables;
    //For each table in the report:
    // - Set the Table Name properties.
    // - Set the table location in the report to use the new modified table
    boTable.Name = "Orders";
    boTable.QualifiedName = "Orders";
    boTable.Alias = "Orders";
    rptClientDoc.DatabaseController.SetTableLocation(boTables[0], boTable);
    //Verify the database after adding substituting the new table.
    //To ensure that the table updates properly when adding Command tables or Stored Procedures.
    rptClientDoc.VerifyDatabase();
    MessageBox.Show("Data Source Set", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
    Thanks again
    Don

  • Production finish date differs from basic finish date in backward schedulin

    Hi, experts.
    When i do scheduling the planned order,
    production finish date differs from basic finish date in backward scheduling as below.
    Scheduling: Backward
    Basic finish date : 2010.01.22
    Basic start date : 2010.01.21
    Production finish date : 2010.01.23  09:00:00
    Production start date ; 2010.01.22 03:57:09
    *GR time : 0.
    *Scheduling Margin key : 0.
    I don't know why production finish date set in 2010.01.23 09:00. ( Basic finish date +1 day)
    Please reply me.
    Thanks.

    Dear Jong,
    1) what is the parameter used in MRP run, Basic scheduling or lead time scheduling
    2) you must find a exception Mssg for that plan order in MD04
    3) basic scheduling take the time from material master & lead time scheduling will take time
    from Routing
    Regards
    Madhu

  • How to load date field from a remote Oracle DB with DB Connect

    Hi,
    Does any one have experience extracting Date field from a remote Oracle database through DB Connect to BW?  I am experiencing data format issue.  The extracted data shows '04-Oct-0' for '10/4/05'.  It works fine if I create a view in Oracle database to preformat the data to '20051004'.  But, I am not allowed to create view in Remote DB.
    Any suggestion is very appreciated.
    Regards,
    Frank

    You have to change it to a varchar2 field. YYYYMMDD. I do not know of any other option.

  • Importing Date fields from Oracle always defaults to DT_DBDATETIME, and won't accept chages

    Hi
    I am trying to import date fields in an Oracle database in to SQL Server 2012, using SSIS. The package is using DT_DBTIMESTAMP type in the Data Flow, but this has the same range as SQL Server datetime, and it bombs out all the time.
    I have tried to change the type used to DT_DBDATE, but no matter what I do the data type on the input columns is readonly and will not change.
    Any help would be much appreciated
    Andy
    CRM 4, SQL Server and .Net developer using C#

    Hi Andy,
    From the Mapping of Integration Services Data Types to Database Data Types section of the document, we can get the detailed information about mapping the Oracle data types to Integration Services data types. To change the data type from DT_DBTIMESTAMP to
    DT_DBDATE, we can use the following two methods:
    Method 1:
    Right click on the Source component and click “Show Advanced Editor”.
    Switch to the “Input and Output Properties” tab, expand the XX Source Output node, and expand the Output Columns node.
    Click the target column, and change the DataType property to DT_DBDATE.
    Method 2:
    Add a Data Conversion component to the Data Flow Task
    Double click the Data Conversion component to open the Data Conversion Transformation Editor
    Select the target input column, and change the Data Type to database date [DT_DBDATE].
    If I have anything misunderstood, please feel free to let me know.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Loading Date fields from flat file to Oracle tables

    Hi,
    I have a flat file with a few date columns. I have given the format for the date field while creating the data store for the flat file. The format I used is 'YYYY-MM-DD'.
    But I get an error when I execute it after associating the module with LKM & IKM.
    The error message is as follows:
    org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
    File "<string>", line 3, in ?
    OS command has signalled errors
    Can anyone help me out.
    Thanks

    At the time of DataStore creation. You take that date field as string.
    After this, in interface, when you map this date field with table field. You should use CONVERT(<field name>,DATE) in expression editor.

  • DTP can Not extract data of date field from PSA to Target DSO

    Hi everyone.
    I enhanced several fields in datasource "2LIS_12_VCITM". that is date field "BLDAT" and another date type fields.
    The data of date type fields are extracted very well from datasource to PSA.
    But only field "BLDAT" among them are NOT extracted from PSA to target DSO.
    Another date type fields is good. but only "BLDAT" field is empty.
    I added "BLDAT" later than another date fields.
    Is that the reason??
    I don't know why.
    Let me know the solution. pls~~~~

    Hi,
    Try deleting and recreating the DTP and loading again.
    This solution refers to note 925941 and should be solved in SPS10.
    Best regards,
    Olav

  • Copy data customer PO and PO date field from quotation to sales order

    Hi Friends,
    Can you please let me know what copy control settings I need to maintain in order to copy customer PO# and PO date field data in quotation to sales order.
    All the data is getting copied from quotation to sales order when I create sales order with reference to quotation but the customer PO no. and PO date is not getting copied.
    Can anyone please help.
    Regards,
    Wasim.

    HI
    Not sure if this is possible via Customization or not but you can try the user-exits or Routines for the Sales Order program for this
    You need to change the include FV45C102 (assuming you have copied standard order and the copy controls). ABAP team should be able to make changes to this routine and achieve your requirement.
    In VTAA, after choosing the Source and Target order type and choosing the right Quatation item, check the routine for 'Bus.data/item compl.' and it will be what has been mentioned above.
    Please check &Revert
    Thanks&Regards
    Raghu.k

  • Adf-Struts/JSP/BC4J- and setting date fields from jsp

    Hi,
    I'm working with the new ADF Frameworks (JDev 9.0.5.1) and ran into some questions regarding exception handling using BC4J, Struts and JSPs.
    I have a DATE column in database and an entity and VO with a datefield with type oracle.jbo.domain.Date.
    My JSP shows a textfield and the user should enter a valid date. Everything fine, until date is of wrong format or contains illegal characters...
    Problem:
    ADF tries to do a setAttribute on the datefield in VO row which expects a parameter with type oracle.jbo.domain.Date. When the user entered e.g. "NiceWeather" as date, I get an IIlegalArgumentException while converting to the correct Date format. This exception isn't thrown by bc4j as AttrValException and therefore my JSP renders a global error instead of a message directly behind the date field.
    I tried to validate the datefield in my DataForm and in my Action in the validateModelUpdates() method, but with no fitting solution.
    Any ideas how to validate a datefield with adf/struts/jsp/bc4j?
    Thanks for your help!
    Torsten.

    Torsen - In the first instance I'd recommed that you try and handle it declaritively using the Struts Validator Framework . See http://otn.oracle.com/products/jdev/howtos/10g/StrutsValidator/struts_validator_howto.html
    There is a section in there on how to use the validator with ADF databound pages and you can check the format the user enters via generated JavaScript.
    Also check out the matching sample project:
    http://otn.oracle.com/sample_code/products/jdev/10g/ADFandStrutsValidator.zip - this has a data field check on it as well

  • Problem With Crystal Reports Reading Date Fields From CSV File

    I have a date field in a CSV file in the format 06/28/09 17:23:55.523. When I use ODBC the configuartion picks it up a character field. I overright the recommendation type by specifing it is a date field but whne I bring the data into crystal reports the dates are blanks. Any suggestions on how to get around this problem. I need to use the date for selection records.
    Phasor

    The question was answered under another thread. I had to use the split commmand to get rid of the fractions of a second

  • Combined more Data Fields from different segments in single report

    Hi all,
    i want to combined report from more then one segment(like 2 fields from Sales & Distribution & one Field from Inventory) then what should i do so far,
    should i create cubes in respective segment,
    either i create that but when i add it into Select item in that after selection of a field all of others segment disabled.

    Hi
    By far the simplest method would be to concatenate the two fields in a calculation like this: FIELDA || FIELDB
    Should you want spaces between them then do this: FIELDA || ' ' || FIELDB
    If you want a dash and spaces either side you do this: FIELDA || ' - ' || FIELDB
    Does this help?
    Best wishes
    Michael

  • Use Department field from user profile

    Hi,
    When user uploads a document - "Created By" takes its name automatically.
    We need the data of the department of the user also.
    I see that i can change the column to display any field from user profile in the "Created By" (user name / email/ department...).
    What should i do in order to use more than one field? (it's like set 2 "created by" columns to each doc - one to get the user name and one for department).
    It is for use department values in search.
    keren tsur

    Hi keren,
    According to your description, my understanding is that you want to get user name and department for the user who created the document.
    I recommend to get the department using the default Created By column and use workflow to get the user name from Created By column in a new column.
    Create a workflow associated with the library and set the workflow to start when an item is created.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Error in cfqueryparam, when getting date field from cfpop

    Hi all,
    i'm taking data from cfpop to store them in the database.
    There are problems with date data:
    INSERT .....
    POST_DATE = <cfqueryparam value="#date#"
    cfsqltype="cf_sql_timestamp">
    But it fails in some situations, for instance:
    The cause of this output exception was that:
    coldfusion.runtime.locale.CFLocaleBase$InvalidDateTimeException:
    "19 Sep 2006 00:51:33 +0200" is an invalid date or time string
    Ok, I'm using English locale and tried to use
    ParseDateTime(date, 'pop'). But it doesn't work either (!):
    "19 Sep 2006 00:51:33 +0200" is not a valid date format. But
    'pop' supposes, that this is format with time zone offset!!
    P.S. The problem was that some email messages had incorrect
    date format: one didn't have a day of week, another one - even day
    of month!!!
    To make life simpler, i've just added a regexp check:
    <cfif
    ReFindNoCase("[A-z]{3}\,\s[0-9]{2}\s[A-z]{3}\s[0-9]{2,4}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\s(?: \+|\-)?[0-9]{4}",
    date, 0)>
    <cfset dateField = date>
    <cfelse>
    <cfset dateField = now()>
    </cfif>
    I'm not going to parse every possible date format
    error.

    I don't believe there's anyway to have Access ignore it on an import. What you can try instead is link to the file (instead of importing it) and write a query that updates the table based on the linked table, with an appropriate edit on the date/time field.
    Doug Steele, Microsoft Access MVP
    http://www.AccessMVP.com/djsteele (no e-mails, please!)
    Co-author
    Access Solutions — Tips, Tricks, and Secrets from Microsoft Access MVPs (ISBN 978-0-470-59168-0)

  • How to separate date fields from t:calender ip?

    Hi All,
    I am using tomahawk calender in my jsf page.
    <t:inputCalendar id="startDate" value="#{bean.startDate}" renderAsPopup="true" popupDateFormat="MM/dd/yyyy" forceId="true" />
    Inside bean , I have
    Date startDate= new Date();
    when I print this startDate, I get
    Tue Apr 24 00:00:00 IST 2007
    I want to get date and month separately..how to do this?
    because in Date class getDate() method is deprecated...
    Thanks in advance...

    I do not have 2008, but you should be able to edit the subreport and run it seperate of the main report.
    add a formula to the sub to return the dates that are comming from the main report.
    Check the links to the sub-report.
    You should have two links, one for mindate one for max
    Check to see if you have a checkbox above a section that says
    Select data in subreport based on field.
    This advice may be way off for 2008.  but is valid in CRXI

  • Data transfer from FPM component to non FPM component error

    Hello,
    I have component A which is created using FPM .In this there is a interface node.
    Now there is a component B .This not FPM based .Now i reused component A into component B.Since the node of component A is interface ,so i can see the node in B .
    But when i am trying to read the node i am getting dump of null object reference .
    Is it because both the components are of different type ?
    How to resolve it ?
    Edited by: pr@t on Oct 28, 2009 2:00 PM

    Hi,
    you can always use the same abap class as assistance class
    and pass the data that way.
    grtz,
    Koen

Maybe you are looking for

  • Cannot send photos from iPhoto

    This is driving me nuts! I am on a MacBook Pro running Mavericks and iPhoto 9.5.1. I am using Yahoo as my primary mail. When I try to send photos using iPhoto, I get the common message "The email server didn't recognize your user / Password combinati

  • Why do I have to re add all songs/apps/movies/shows to Itunes??

    Itunes seems to lose all my songs/apps/movies/shows every once and a while and it all has to be re added?? HELP, why does it keep doing this??

  • Add a Digital Signature to email sent from an APEX Application

    Hi Folks. Can anyone advise how we could go about digitally signing our outbound emails? Anything that could be configured within APEX? Or would it have to be configured on the email server being used to transmit the emails? Couldn't find anything re

  • RoutercallsQnow not displaying in Skill group statics in ctios desktop 9.0

    RoutercallsQnow not displaying in Skill group statics in ctios client  Desktop. I reviewed this bug CSCma08461 but was repaired in version 5.0 and the problem as I have in version 9.0 any recommendations? Thanks Ivan

  • Unit test code problem

    I'm doing my first proper unit test and I get an error, think min_size> is the problem Element type "application" must be followed by either attribute specifications, ">" or "/>". this generated code <?xml version="1.0" encoding="utf-8"?> <!-- This f