BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-19-2008, 09:06 AM   #1
Mikaël Donini
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 7100T
PIN: N/A
Carrier: none
Posts: 32
Default how to set the subject and location fields of a calendar appointment

Please Login to Remove!

Dear All,

I am starting with BlackBerry JDE and I have a question regarding the calendar appointments.

I use the following code line to open a new calendar entry:

Invoke.invokeApplication(Invoke.APP_TYPE_CALENDAR, new CalendarArguments(CalendarArguments.ARG_NEW));

It works fine. However, I need that this new calendar entry appear with already filled-in subject and location fields.

My question is : how can I programatically set the subject and location fields of a calendar appointment before opening it with the invokeApplication command?

Thanks in advance for your support,

Best Regards,

Mikaël Donini, Arkadin France.
Offline  
Old 09-19-2008, 09:18 AM   #2
Ivanov
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Default

use another CalendarArguments constructor:

Quote:
public CalendarArguments(String arg, Calendar date)

Creates a new CalendarArguments instance with provided arguments. Used to open the Calendar to a specific date.
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)
Offline  
Old 09-19-2008, 09:19 AM   #3
Ivanov
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Default

sorry the wrong one...

Quote:
public CalendarArguments(String arg, Event event)

Creates a new CalendarArguments instance with provided arguments. Used to open the Calendar to a specific event.
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)
Offline  
Old 09-19-2008, 10:00 AM   #4
Mikaël Donini
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 7100T
PIN: N/A
Carrier: none
Posts: 32
Default

Thank you a lot, it works perfectly. A last question : I have succeded to set subject, location, notes .... But do you know if it is possible to set the invites emails?

Thanks again for your precious help.

Mikaël Donini.
Offline  
Old 09-19-2008, 10:54 AM   #5
Mikaël Donini
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 7100T
PIN: N/A
Carrier: none
Posts: 32
Default

The solution for this last question is to use BlackBerryEvent instead of Event:

BlackBerryEvent.ATTENDEES
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Cisco CP-8811-K9 Unified Office IP VoIP PoE Business Phone w/ Stand & Handset picture

Cisco CP-8811-K9 Unified Office IP VoIP PoE Business Phone w/ Stand & Handset

$14.99



"NEW" RingCentral Polycom VVX 311 6-Line VoIP IP SIP Business Media Phone

$12.95



Fortinet FON-570 VoIP Phone - Corded picture

Fortinet FON-570 VoIP Phone - Corded

$30.00



ZIP 57i Zultys VOIP Phone picture

ZIP 57i Zultys VOIP Phone

$22.00



Zenitel TKIS-2 Vingtor Stentofon VOIP Intercom Module picture

Zenitel TKIS-2 Vingtor Stentofon VOIP Intercom Module

$299.99



VoIP-GSM Topex VoiBridge picture

VoIP-GSM Topex VoiBridge

$250.00







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