BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-27-2007, 09:38 PM   #1 (permalink)
New Member
 
Join Date: Aug 2007
Location: Cincinnati, OH
Model: 8100
PIN: N/A
Carrier: Cincinnati Bell Wireless
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question How to set reminder alarm on ToDo object?

Please Login to Remove!

Does anyone know how to programmatically set the reminder alarm on a ToDo object? I have the following code that sets the Summary, Note, and Due date, but I could not find a constant for setting the Alarm.

Code:
ToDoList list = (ToDoList) PIM.getInstance().openPIMList(PIM.TODO_LIST, PIM.READ_WRITE);
BlackBerryToDo e = (BlackBerryToDo) list.createToDo();
if (list.isSupportedField(BlackBerryToDo.SUMMARY)) e.addString(BlackBerryToDo.SUMMARY, 0, subject);
if (list.isSupportedField(BlackBerryToDo.NOTE)) e.addString(BlackBerryToDo.NOTE, 0, bodyText);
if (list.isSupportedField(BlackBerryToDo.DUE)) e.addDate(BlackBerryToDo.DUE, 0, scheduleDate);
Here is some similar code that I use to set the Alarm for a Calendar Event, but I can't seem to find the corresponding code for a ToDo.

Code:
EventList list = (EventList) PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE);
BlackBerryEvent e = (BlackBerryEvent) list.createEvent();
...
if (list.isSupportedField(BlackBerryEvent.ALARM)) e.addInt(BlackBerryEvent.ALARM, 0, 0);
I've tried setting the reminder manually on an existing ToDo, and then reading it by cycling through the getFields() result, but I can't find anywhere that it stores my reminder.

Any help would be greatly appreciated!

-Brian
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

High Speed TL866CS Programmer USB EPROM EEPROM FLASH BIOS AVR AL PIC 40pin
$36.99
High Speed TL866CS Programmer USB EPROM EEPROM FLASH BIOS AVR AL PIC 40pin pictureLOT OF 26 PCS. ATMEL AT93C46EN-SH-B IC EEPROM 1KBIT 2MHZ 8SOIC
$15.0
LOT OF 26 PCS. ATMEL AT93C46EN-SH-B IC EEPROM 1KBIT 2MHZ 8SOIC pictureOKI M28C16A-20, 2Kx8 CMOS Parallel EeProm, used, 24 Pin Dip. Plastic
$4.35
OKI M28C16A-20, 2Kx8 CMOS Parallel EeProm, used, 24 Pin Dip. Plastic picture 93c46bt/sn ic, eeprom, 1kbit, microwire, 2mhz soic8 (5 pieces)
$9.71
 93c46bt/sn ic, eeprom, 1kbit, microwire, 2mhz soic8 (5 pieces) pictureNEW IN BOX ALLEN-BRADLEY SLC 500 EEPROM MEMORY MODULE 1747-M1 SERIES A
$59.95
NEW IN BOX ALLEN-BRADLEY SLC 500 EEPROM MEMORY MODULE 1747-M1 SERIES A picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.