BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-05-2005, 05:42 PM   #1
scottlj
New Member
 
Join Date: Apr 2005
Location: Bellevue, Washington, USA
Posts: 8
Default Can't modify address record via custom menu item?

Please Login to Remove!

Am I missing something here? In 4.0 if you add a custom menu item to Address Book (via class ApplicationMenuItem) then when it is invoked, the 'context' argument is not a current copy of the record, if the user has modified it on the screen. Instead, you get the original copy of the record before the user modified it. This makes the custom menu item feature basically useless for interacting with the current record, such as for data validation or automated data entry. Is this correct?
Offline  
Old 04-12-2005, 09:08 PM   #2
arconsulting
Thumbs Must Hurt
 
Join Date: Aug 2004
Location: Metro NYC
Posts: 175
Default

You are correct.

The context of custom menu items when called from an edit screen is *not* what is on screen.

To edit what is on screen, you must manipulate the fields on the screen. Forget the context.
__________________
-- Aric Rosenbaum
BlackBerry consulting, BlackBerry development
www.arconsultinginc.com
BlackBerry consulting and development (RIM SI Partner)
Offline  
Old 04-20-2005, 04:19 PM   #3
Ragnorok
New Member
 
Ragnorok's Avatar
 
Join Date: Apr 2005
Location: Nashua, NH
Model: Vario
Posts: 5
Default

- Forget modifying the address, or anything for that matter, while the editor is running. RIM doesn't think anyone wants to do that. You can trap the message open with a listener and stick stuff in before the editor actually loads, though, if that will do what you want.
- The close listener is well nigh useless. Same with any flavor of listener that might trap a message being sent. I've been hitting these walls for years on a RIM.
- Nice that it's Java. Implementation "could be improved".
- Hope this helps...
Offline  
Old 04-20-2005, 06:45 PM   #4
DoomBringer
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2005
Model: 7280
Carrier: cingular, no wait, AT&T
Posts: 300
Default

Screenscrape it. Im sure you can grab the current fields, and do lots of voodoo magic to do it. You'd have to iterate through the PIMList to see who you're dealing with, but no biggie. You could delete the old entry, and make a new one and repopulate it. Not efficient, but it could work.
Offline  
Old 04-20-2005, 06:47 PM   #5
DoomBringer
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2005
Model: 7280
Carrier: cingular, no wait, AT&T
Posts: 300
Default

Quote:
Originally Posted by arconsulting
You are correct.

The context of custom menu items when called from an edit screen is *not* what is on screen.

To edit what is on screen, you must manipulate the fields on the screen. Forget the context.
Depends on what you're talking about. With an email menu item, you will get the current email message on the screen, if you use 3.8+.
Offline  
Old 04-26-2005, 03:17 PM   #6
scottlj
New Member
 
Join Date: Apr 2005
Location: Bellevue, Washington, USA
Posts: 8
Default

Thanks everybody, for confirming my findings. For now I'll investigate other design ideas (not involving extending the built-in PIM apps in this way) and hopefully won't have to actually resort to the screen-scrape "hack".
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


Vintage V-Mac Industries Inc. Pipe Threader Vosper Drophead Threader - READ picture

Vintage V-Mac Industries Inc. Pipe Threader Vosper Drophead Threader - READ

$199.00



VINTAGE MAC TOOLS 30 PSI/200 KPA AIR PRESSURE GAGE picture

VINTAGE MAC TOOLS 30 PSI/200 KPA AIR PRESSURE GAGE

$24.95



Vintage MAC Tools ET905 Voltage Ohms Dwell Tach Multimeter (K) picture

Vintage MAC Tools ET905 Voltage Ohms Dwell Tach Multimeter (K)

$59.99



Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver  picture

Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver

$40.00



Vintage Mac Warehouse  3.5” Floppy Disk Solar Powered Calculator Company Swag picture

Vintage Mac Warehouse 3.5” Floppy Disk Solar Powered Calculator Company Swag

$66.60



Vintage MAC Knife Japan 4.75

Vintage MAC Knife Japan 4.75" Folding Lock Blade Knife Chef Pocket Knife Utility

$224.99







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