How to filter for a range of dates calendar events in OS10

In earlier versions of BlackBerry, I used blackberry.find.FilterExpression to filter the events calendar for a specific range of dates.

However for BlackBerry OS10 I scoured the web to find a way to do it. I found:http://developer.blackberry.com/html5/apis/blackberry.pim.calendar.calendarfindoptions.html

I also googled a lot of other sites, but I am unable to understand how to use CalendarFindOptions to refine the calendar of events of a specific timetable. For example, the current week or the next 7 days.

I found this code example...
Function listEvents (limit) {}
Calendar var = blackberry.pim.calendar;
  var CalendarFindOptions = calendar. CalendarFindOptions;
  var findOptions = {}
'Sort': [{}
"fieldName": CalendarFindOptions.SORT_FIELD_SUMMARY.
'desc': false
}],
'detail': CalendarFindOptions.DETAIL_AGENDA,
'limit': limit
};

But unable to find examples how adequately limited by date?
I'm guessing that something like this:
'Start': new Date (' January 1, 2013, 13:00 "): CalendarFindOptions.SORT_FIELD_START.
'end': new Date (' January 1, 2013, 16:00 "): CalendarFindOptions.SORT_FIELD_STOP.

But it is an assumption and does not work I can find no example of how do

Any help would be appreciated

See the example for pimcalendar on Github:

https://github.com/BlackBerry/BB10-WebWorks-samples/tree/master/pimcalendar

You can find the JS to set filters of beginning and end starts here:

https://github.com/BlackBerry/BB10-WebWorks-samples/BLOB/master/pimcalendar/index.html#L107

Tags: BlackBerry Developers

Similar Questions

  • How to filter through a set of data based on user input

    Hi all

    I'm trying to filter through a set of data, purchase only the files that meet the requirements of users.

    I ask the user to enter three different values, one for a frequency to start another for a frequency of end and also the value of the rated power.

    The way I am filtering from now thanks to this data set is using a function called the regular expression function as well as the analysis of string function to break up the name of file and data digital take-away, then compare these data on the entries of users.

    These values that meet the conditional statement will be sent to a ring of results for a user to go through.

    For now, I filled it is not as much functionality in this method, the user must be very careful in the way which he or she saves files and my program may work correctly.

    I am ataching a photo of this part of the program.

    Thanks for the help.

    I think that my second statement should check on a white paper OR PDM.  Have you noticed the color?  This is a clickable link.  If you read the material here, it should clear up confusion in the first part of my post.

    I have a colleague who, like you, encodes the parameters of the study of the (very long) string of the name of the file.  I always shout at him about it, because it requires him (because you are considering do) build routines for (a) analyzes the names (to retrieve the information hidden in them), (b) to organize the data in a form of "LabVIEW Database" and then (c) figure out how (in LabVIEW) for write "queries" on this database.  More file names are not particularly easy for a human to read, are extremely long and invite more mischief (have you thought about putting your files in folders which are similarly 'file-information-coded'?  Becomes even more messy more fast).

    You might think Oh, "it's too late to make a change, I have already all of these data", but what good is it if you can't analyze easily, group them, sort, etc. ?

    Bob Schor

  • Report with 2 settings of filtering by day and 3 measures for a range of dates

    Hello

    I need to establish a relationship with the following criteria:

    (a) I have 5 settings

    (b) tell of 2 measures of data should be based on a date 01/01/2015

    (c) rest of 3 data measures should be based on a range of dates say 01/01/2015-31/01/2015

    No idea how to achieve this?  If so please help me.

    Thanks in advance

    LonaD

    You cannot filter the reports by using the filter function in the formula in the column?

  • code to run a process for a range of dates, ignoring Sundays and holidays

    I have a proc by name (P_NAME, P_BIZDATE) INS_INVENTORY (P_NAME IS OF TYPE VARCHAR2, P_BIZDATE IS PRESENT). Actuallythis proc runs every day in our Planner. I had to make changes to this procedure. Now, I need to run this proc for P_BIZDATE taking the dates of 1 January 09 to 31 December 09. We also have a table by its PT_HOLIDAYS name, which consists of the list of holidays from 1 January 2009 to 31 December 2009. Now I need a code or a process through which I can run this proc 1 January 09 to 31 December 09 and also this proc should not be run 'SUNDAY' and public holidays as specified in the PT_HOLIDAYS table

    CREATE TABLE PT_HOLIDAYS
    (
    HOLIDAY_DATE DATE NOT NULL,
    DISPLAY_NAME VARCHAR2 (35 BYTE) NOT NULL,
    )

    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (1 January 2009 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), "New Year Day");
    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (25 May 2009 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), "Memorial Day");
    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (4 July 2009 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'July 4');
    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (7 September 2009 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), 'Labor Day');
    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (26 November 2009 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'Thanks Giving Day');
    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (26 December 2009 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), 'Christmas');
    COMMIT;


    Please advice

    Like this?

    declare
    start_date date := to_date('01/01/2009','MM/DD/YYYY');
    end_date date :=to_date('12/31/2009','MM/DD/YYYY');
    cur_date date;
    total_run number := (end_date - start_date)+1;
    holiday number := 0;
    begin
    for i in 1..total_run loop
         cur_date := start_date + (i-1);
              begin
                   select 1 into holiday from PT_HOLIDAYS where HOLIDAY_DATE = cur_date;
              exception
                   when no_data_found then
                   holiday:=0;
              end;
         if to_char(cur_date,'DY') != 'SUN' and holiday != 1 then
              dbms_output.put_line(cur_date||'-'||to_char(cur_date,'DY'));
              --INS_INVENTORY( , cur_date)
         end if;
         end loop;
    end;
    /
    

    Kind regards
    Prazy

    Published by: Prazy on March 29, 2010 12:39

  • How can search for a file by date of creation in c programming please help me please!

    I want to search for a file using a date, then the output should be a value for this file!

    These forums are intended mainly the consumer so you probably better ask in the most relevant forums TechNet/MSDN from Microsoft here:

    http://social.technet.Microsoft.com/forums/en-us/categories/

    http://social.msdn.microsoft.com/Forums/en-US/categories .

    Thank you.   :)

  • When zoomed in on a waveform graph, how can I get all of the data points that is currently displayed on the graph?

    I use X-zoom tool on the graphic palette. In this chart, the x-axis are time. Thus, for example, if I have 30 seconds displayed on the x-axis of the complete graph, and I want to zoom in on the Middle 10 seconds, how can I get the axis y data points that correspond to this average 10 seconds?

    Similar to Cory's suggestion, could you use the X - Scale-> range-> the Min and Max properties to retrieve the appropriate data?

    Maybe even link your sweater of data for the range of scale change event?

  • How to filter the catalog images that are/are not in a collection?

    Hi all.

    Simple enough question: how to filter for images of catalog that are or are not in a collection?

    I want to know this, so when I'm removing not classified images can I make sure I have avoid the dumping of those I have added to a collection, but neglected to give them a rating.

    Thank you


    David

    There are two non-obvious ways to find photos that are not in any regular collection of (non-puce):

    1. to add all these photos in the quick Collection:

    1. In the catalog Panel, right click on the Collection quick and make clear quick Collection.
    2. In the catalog Panel, select all photographs.
    3. Photo > stacking > expand all stacks.
    4. In the Collections Panel, select all collections by clicking on the first collection and then shift-click on the last one. If you don't want to include smart collections, then Ctrl/Cmd-click on them in order to exclude them.
    5. Edition > select all.
    6. In the catalog Panel, select all photographs.
    7. Edition > reverse selection.
    8. Photo > add to quick Collection.

    2 create a smart collection with the following criteria:

    Collection does not contain a b c d... z 1 0... 9

  • Filter for PES 11 offline media

    How a filter for the media offline and PES 11?

    Use the Panel on the left view of "folders". The default is 'My Folders', go to 'View files', click on the little yellow icon to the right of the title "folders."

    "Media offline" should show at the bottom of the list of foldets.

  • Filter for table data, the range of data obtained and defined 2D

    I produce data of an ultrasonic sensor at 1 K Hz, and there is a lot of data (data points range of 0 to 10). However, in some cases when I know that the data should be about 7 (for example) I get outliers (about 9 and 10). Is it possible to define a filter for data in the defined range.

    I averaged the data to get an average value, and outliers are distorting. In the worst case, my outliers are 30 to 40% of the data generated. I created a filter to sort the data and, taken from the lowest value. I stop the loop when data reaches a value greater then 9. But this seems to take a long time (because the loop checks for each data point and there are 1000s of them).

    Is there a better way to filter data and define a predefined table range to collect?

    I enclose my filter.vi... and a set of samples of my previous data. The ranges of data of 10-8 and would like to have the range 7.5 to 8.5 to consider. The sensor records tension here and the problem can be solved by installing a different type of sensor, but if a filter in LabView can due it, the sensor that we use now is absolute.

    I am in kind of emergency, my design in unfinished because of this problem, if someone can find some time to share some suggestions, I will be grateful.

    Thanks in advance.

    See attachment.  I have incorporated the data you've posted in the vi.  It doesn't seem like any data were less than 8.7 or so, so I modified the scope so it would be a few points on average.  Some games were completely out of reach while the average came back like NaN (not a number) due to a division by zero.

  • HOW TO FILTER DATA IN MICROSOFT ACCESS

    HOW TO FILTER DATA IN MICROSOFT ACCESS BASED ON THE DATE AND TIME AND GIVE THE RESULT IN A TABLE?

    I need a few examples of files, can someone help me please?

    Fix your keyboard. If it has not been broken, be a little more polite and stop screaming.

    Research, are thousands of examples on the web related to the jet and sql database. This is a very basic select statement. Access to a query wizard that can then show the sql code. If you don't know how to design a query in access, you need a Basic for this tutorial. No question of LabVIEW here.

  • How to filter data in cursors within the procedure

    Hello

    Yesterday, I tried all night, but couldn't do it.

    I know that is incomplete, I just want to know how to filter the data based on the setting in

    Basically, here I want to get only the records that match the id_fichier


    create or replace PROCEDURE clearing_details (p_file_id in varchar2)
    IS
    strStatusCode VARCHAR2 (6);
    CURSOR PD1 IS
    SELECT COUNTRY_CODE, EOD_MARK OF LINK_STATUS WHERE FILE_ID is p_file_id


    Can someone help me on this please:


    Thanks for reading.

    Does do the same if you run the query itself in SQL * Plus with the same value you pass as a parameter?

    Without seeing your data and which parameter you're passing, we will fight help more as the concept itself works great as you have been demonstrated.

  • How to use mobile data for large app download data

    How to use mobile data for large app download data

    How can I set big data

  • How will I know if I am being charged for the use of data on the mini2 ipad

    How will I know if I am to be charged or billed for usage on my ipad mini data 2?

    Hello

    You can be charged for the use of data on an ipad, if it has a SIM card

    Cellular data.

    If your home wifi is unlimited you will not be charged more.

    Unless your WiFi has a hat of data ie download limit.

    See you soon

    Brian

  • How to define the range of data to a strict typdef through the control reference

    Hello world

    I'm trying to define the range of data to a strict typdef through the reference of the order, when I do, I get an 'error of property node.

    Is it possible to set the range of the strict typdef.

    Thank you

    Vignesh

    Vignesh1987 wrote:

    I'm trying to define the range of data to a strict typdef through the reference of the order, when I do, I get an 'error of property node.

    Is it possible to set the range of the strict typdef.

    Try to set the original control (type-def) and not its instances... to open the reference of the original type-def command, use 'Open VI reference'.

    Published:

    These properties are not available with STRICT TYPE DEF.

    a. data entry limits: increment property

    b. data entry property of limits: Maximum

    c. property limits: Minimum for the data entry

  • Get errors for the user input data filter no KB 911895 HID

    OT: iI have windows xp S/P 3 installed also apple i pad I get errors for the user input data filter no KB 911895 HID
    What should I do to get rid of this popup that wizzard windows keeps giving me?

    Hi Graybeard,

    What is the exact error message you get?

    HID Non-User Input data filter is an optional update. I suggest you try the steps from the following link:

    The screen saver does not start after the installation of a wireless pointing device
    http://support.Microsoft.com/kb/913405

    What version of the operating system Windows am I running?
    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update
    http://support.Microsoft.com/kb/910339

Maybe you are looking for