Filters for Rowrepeater using date field

Hi ,
  I have 2 date Picker controls like from date and enddate i want to filter rows using this from date and end date fields.
Please help me on this.

Hi  Sridevi,
  Thanks for your reply.  Here we are binding a string to date type and we are setting the filter.
  new sap.m.HBox({
           items:[new sap.ui.commons.TextView({text:"Created on:"}),
                  new sap.ui.commons.TextView("TV11"/*{text:'{CM_List>CREATEDON}'}*/)
              .bindProperty("text",
               path: "CM_List>CREATEDON",
               type: new sap.ui.model.type.Date({pattern:"MMM dd, yyyy",
                source : {pattern : "dd.MM.yyyy"}})
var CM_FDATEVAL = sap.ui.getCore().byId("EV_AE_DATE1").getValue();
   var CM_TDATEVAL = sap.ui.getCore().byId("EV_AE_DATE2").getValue();
var CM_Date = new sap.ui.model.Filter('CM_List>CREATEDON',
     sap.ui.model.FilterOperator.BT,CM_FDATEVAL,CM_TDATEVAL);
var oCM_VBOX1 = sap.ui.getCore().byId("EV_CM_VBOX");
   var oCM_RR1 = sap.ui.getCore().byId("EV_AE_ROWREPEATER");
  // oCM_RR1.bindRows('CM_List>/list',oCM_VBOX1,null,CM_FILTERMODE);
   oCM_RR1.bindRows('CM_List>/list',oCM_VBOX1,null,[CM_Date]);
it is not working, please help me find the error.
Thanks & Regards,
Jayasree

Similar Messages

  • I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    Hi Abdul,
    Sorry for my unprecise answer, but you talk about a tcode, but you're using a BAPI Call. Maybe you want to call the transaction in batch mode?
    http://help.sap.com/saphelp_erp60_sp/helpdata/de/fa/09715a543b11d1898e0000e8322d00/content.htm
    Regards,
    Franz

  • 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);

  • Table for Valid To date field in C203 Tcode

    Let me know the table name for "Valid To Date" field in C203 transaction.
    Thanks,
    Angavai.E

    Hi Angavai,
    Check with table PLMW.
    Regards,
    Raghu

  • How to Modify Search for Leads using Date types in the Assgmnt Block Date

    Hello Experts,
    I have a requirement to modify the search for Leads using Dates in the Assignment Block Dates and using the Posting Date of the transaction.
    Any ideas?
    Thank you in advance,
    Justin

    If you look at the grants, you'll see that there are over 170 objects from the FLOWS_030000 granted to PUBLIC:
    SQL> select count(*) from dba_tab_privs where owner= 'FLOWS_030000' and grantee = 'PUBLIC';
    173
    If we were go grant these privileges to a role, called APEX_APP_RU, and grant this role to APEX_PUBLIC_USER and any schemas an application is linked to (Workspace to Schema), would that be a workable solution?
    The only problem I see right off hand that this might not work is that PUBLIC has synonyms created for the FLOWS_030000 objects. If we revoke the underlying privileges, because of the synonyms, this might not work.
    SQL> select COUNT(*) from dba_synonyms where table_owner = 'FLOWS_030000' and owner = 'PUBLIC';
    176
    Does anyone else have any ideas?

  • Error While using date fields in HIbernate Criteraia

    I am trying a sample applciation using Hibernate with JPA. I am using annotations to map database table with Java class.I am using org.hibernate.Criteria to form where clause. My code looks as follows:
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("PERSISTANCE_UNIT");
    EntityManger em = emf.createEntityManager();
    Session session = em.getDelegate();
    Criteria criteria = session.createCriteria(MyDO.class)
    criteria.add(Restrictions.eq("myDO.date",myDO.getDate()));
    List list = criteria.list();
    I am searching the data base based on the date field (myDO is an instance of MyDO.class which contains the mapping to the data base table). While running the application first time after publishing to server, I am getting the following error. For subsequent running of the application I am not getting any error and the appliaction was running with actual results.
    JDBCException W org.hibernate.util.JDBCExceptionReporter logExceptions SQL Error: -181, SQLState: 22007
    JDBCException E org.hibernate.util.JDBCExceptionReporter logExceptions THE STRING REPRESENTATION OF A DATETIME VALUE IS NOT A VALID DATETIME VALUE
    org.hibernate.exception.DataException: could not execute query
         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
         at org.hibernate.loader.Loader.doList(Loader.java:2223)
         at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
         at org.hibernate.loader.Loader.list(Loader.java:2099)
         at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
         at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
    Can anybody help in fixing the problem.
    Thanks in advance.

    Resolved the issue by setting System date where expected

  • How to handle Multiple date formats for the same date field in SQL*Loader

    Dear All,
    I got a requirement where I need to get data from a text file and insert the same into oracle table.
    I am using SQL*Loader to populate the data from the text file into my table.
    The file has one field where I am expecting date date data in multiple formats, like dd/mon/yyyy, yyyy/dd/mon, yyyy/mon/dd, ,mm/dd/yyyy, mon/dd/yyyy.
    While using SQL*Loader, I can see Loading is failing for records where we have formats like yyyy/dd/mon, yyyy/mon/dd, mon/dd/yyyy.
    Is there any way in SQL*Loader where we can mention all these date formats so that this date data should go smoothly into the underlying date column in the table.
    Appreciate your response on this.
    Thanks,
    Madhu K.

    The point being made was, are you sure that you can uniquely identify a date format from the value you receieve? Are you sure that the data stored is only of a particular limited set of formats?
    e.g. if you had a value of '07/08/03' how do you know what format that is?
    It could be...
    7th August 2003 (thus assuming it's DD/MM/RR format)
    or
    8th July 2003 (thus assuming it's MM/DD/RR format)
    or
    3rd August 2007 (thus assuming it's RR/MM/DD format)
    or
    8th March 2007 (thus assuming it's RR/DD/MM format)
    or even more obscurely...
    3rd July 2008 (MM/RR/DD)
    or
    7th March 2008 (DD/RR/MM)
    Do you have any information to tell you what formats are valid that would allow you to be specific and know what date format is meant?
    This is a classic example of why dates should be stored on the database using DATE datatype and not VARCHAR2. It can lead to corruption of data, especially if the date can be entered in any format a user wishes.

  • Custom metadata field with date filtering like built-in Date field

    I've added a custom metadata field OK and now want to add an additional custom metadata field that contains the date the photos were exported by my plugin.  The types of metadata values don't include a date field.
    I've tried using a string with the value returned by os.date() and that does indeed add the date and time but what I'm really looking for is a way to add a date field so it will have the same behaviour that the built-in Date field does. 
    When I use Library Filter: Metadata, the Date column shows the date with a series of disclosure buttons in a hierarchy, e.g.,
    Date
    All (1 Date)
    V 2009
       V November
          V 27-Friday
    Is this some magic for the built-in field or is there some way of formatting the date so Lightroom knows it's a date and can treat it the same way as the built-in date?
    Abe

    Thanks.  I've just added a date string.  It's not an ideal solution but it's the best I can manage at this time.  Maybe in LR3.
    Abe

  • Needed Enhancement in IW31 for populating the date fields

    Hi,
    We need to populate the date fields like RELEASE DATE, TECHNICAL COMPLETION DATE via Enhancement for the Transaction IW31.
    We are using LSMW to upload the data.
    Can anyone provide more insight in this.
    Vijayanand.

    hi
    This exit is available for IW31..
    Exit Name           Description
    IWO10012            Maintenance order: Priority handling on central header
    If this is not applicable you would have to go for badi's
    To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
    double click on method get_instance, get a break point on case statement.
    execute and start the required transaction in new session.
    look for variable <b>exit_name.</b> It would show the available badi's.
    Hope this helps
    if it helped, you can acknowledge the same by rewarding
    regards
    dinesh

  • Replacement for FormCalc Date2Num Date Field Calculations in Mobile Forms?

    I have a number of forms that use the FormCalc Date2Num function. According to the Adobe documentation this function is not supported in mobile forms. If I were doing pure html5 forms I would use a JavaScript library to use a similar function. What's the best practice for handing Date2Num in Mobile Forms?

    What's the formatted value of your date field?

  • What are the 'gotcha' for exporting using Data Pump(10205) from HPUX to Win

    Hello,
    I have to export a schema using data pump from 10205 on HPUX 64bit to Windows 64bit same 10205 version database. What are the 'gotcha' can I expect from doing this? I mean export data pump is cross platform so this sounds straight forward. But are there issues I might face from export data pump on HPUX platform and then import data dump on to Windows 2008 platform same database version 10205? Thank you in advance.

    On the HPUX database, run this statement and look for the value for NLS_CHARACTERSET
    SQL> select * from NLS_DATABASE_PARAMETERS;http://docs.oracle.com/cd/B19306_01/server.102/b14237/statviews_4218.htm#sthref2018
    When creating the database on Windows, you have two options - manually create the database or use DBCA. If you plan to create the database manually, specify the database characterset in the CREATE DATABASE statement - http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5004.htm#SQLRF01204
    If using DBCA, see http://docs.oracle.com/cd/B19306_01/server.102/b14196/install.htm#ADMQS0021 (especially http://docs.oracle.com/cd/B19306_01/server.102/b14196/install.htm#BABJBDIF)
    HTH
    Srini

  • Schedule vibration mode for iphone using date/time

    Can we schedule iphone using date/time  (duration in each day) , so that iphone can go into vibration/silent mode as per the schedule!!
    Please share your views , Thanks in advance.

    Thank you , I'm aware of this , but the bet is to make some app to play around for myself, any idea !!

  • Formula for compare two date fields

    Please help me,
    There are two date fields in DSO , I want to create a key figure by Query Designer, the condition as blow
    Count ( If field DateA > field DateB = 1 else 0 ).

    http://www.sd-solutions.com/SAP-HCM-BW-Replacement-Path-Variables.html
    create 2 formula varaibles like above and comapre it

  • In Ztable creation, How can we display error message for a 'To date' field.

    Hi all,
    I have a requirement like this.
    There r two fields in ztable. From date and To date.
    The field 'To date' in table ZKM007 is taking before date than From date field.
    To date should always be greater than from date i need to throw an  error or don't  allow to enter date  if date is less than From date.
    How can we do this?
    Can any one help on this?
    Rewards to all.
    Thanks & Regards,
    Anu.

    I have written below code at event "Creating a new entry" (05) in table maintainance generator.But it is not working. If we give the to date < From date ,
    it is saving.
    Can any one help on this code? Pls Give me code And which event i have to put this?
    ***INCLUDE LZEXE3F01 .
    FORM AT_entry.
    IF ZEXE3-TODATE LT ZEXE3-FROMDATE.
      MESSAGE I001(0) WITH 'ENTER TO DATE GREATER THAN FROM DATE'.
    ENDIF.
    ENDFORM.
    Rewards to all.
    thanks
    Anu.

  • Is doing configuration for FB60 using customer field a core mod?

    Hello,
    For our project, a customer field 'ZZAPPROVER' was added in FB60 transaction code.
    It is possible through configuration through the following path:-
    SPRO --> Financial Accounting (New) --> Financial Accounting Global Settings (New) --> Ledgers --> Fields --> Customer Fields --> Edit Coding Block --> Customer-Defined Account Assignments --> Customer Include Structure
    This basically added the customer field 'ZZAPPROVER' to the include structure CI_COBL.
    The important point to note here is that it adds to BSEG table too.
    Now the business is asking whether this is considered as a core modification to SAP.
    Can anyone update where it is a core mod or not, and if there is any documentation to prove this?
    Your comments are highly appreciated!
    Regards,
    Sanjiv Janardhanan

    Hi,
    The adding of additional Customer field is available from ECC 6.0 onwards. This is a standard functionlity to enable the customer to add their own fields for better reporting. But SAP cautions that it is better to take backup before doing this addtioin. No posting transactions shall be performed while you are including the customer field. SAP recommends using the u201Clightu201D mode. For this, you only need to make the following entries so that all necessary changes to the dictionary and to the tables are performed automatically in the background:
    ●      Collection (package)
    ●      Field name
    ●      Field description
    ●      Data type
    Character field (CHAR)
    Character field with digits only (NUMC)
    Trust this helps much!
    Cheers!

Maybe you are looking for

  • Can i use 2 devices on the same itunes

    i have just recieved a new iphone 3gs and i have given my girlfriend my old 3g. i was wondering if there was any way i could transfer the stuff from old phone to my new one and add it on to the itunes i have already. help please

  • Applet is not working and I do not know why it is not working

    I cannot figure out why my applet is not working. Can someone assist me with this problem? Here is the code: As you will soon find out some of those imports can be ignored. import java.lang.Integer; import java.awt.*; import java.awt.event.*; import

  • ITunes 10.4.1 will not download via Software update after I click to agree to terms, nothing happens

    I have OS Lion and went to Software Update to get the latest iTunes 10.4.1 (currently running 10.4 64 bit).  Software Update notifies me of the update, I click install, and then I agree to new terms....and that's all that happens.  Software Update re

  • Saving as smaller PDF

    I am using Adobe Technical Communication Suite ( with Framemaker)and trying to create a PDF of a book of Framemaker documents. Note that from within the Book, I am just going up to the file menu and clicking Save book as PDF (I have also just tried S

  • Logo In Excel sheet, through mail

    Hi folks,         I have developed a report, where data is sent from Internal table to the vendors through mail as an Excel attachment. Now i need to include mu company logo in the attachment.Is it possible to create logo in Excel and send it as an a