Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 11
Registered: ‎01-19-2009
My Device: Not Specified
Accepted Solution

Help with PimListListener2 and batchOperation()

Hi there,

 

I am trying to listen for a batchOperation() and perform an action when it occurs. As far as I can tell, a batchOperation() occurs when you sync the handset with the DM. 

 

However, right now when I sync, it looks like my batchOperation() method never gets called (I store a message in Runtime as a check).

 

Also, I have confirmed that my listener does extend PimListListener2 (gotta cover the bases), and that the listener gets called on itemUpdated(), so it appears that it is registered correctly.  

 

Any thoughts on what's going on? Or am I misunderstanding something here? Have spent the past 18 hours on this problem, it's possible I'm just missing something obvious. Smiley Happy

 

I am running an 8310 on v.4.5.0.110 on the AT&T network. 

 

Thanks! 

 

p.s. My goal is to update my application data after a user syncs the handset with the DM. If PimListListener2 isn't the answer, would love to be pointed in the right direction... 

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Help with PimListListener2 and batchOperation()

What type of PIMList are you creating (ContactList, EventList, etc..)?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 11
Registered: ‎01-19-2009
My Device: Not Specified

Re: Help with PimListListener2 and batchOperation()

ContactList. We're trying to listen for changes to contacts in the address book. 

New Developer
Posts: 11
Registered: ‎01-19-2009
My Device: Not Specified

Re: Help with PimListListener2 and batchOperation()

Mark,

 

Looks like batchOperation() is called if I create a new contact on my desktop and sync via the DM, but it is *not* called if I just modify the contact on the desktop and sync. 

 

Can you confirm this?

 

If this is true, how can we listen for contact changes via DM sync? BTW, itemUpdated() doesn't seem to be called either.

 

Thanks!

 

New Developer
Posts: 11
Registered: ‎01-19-2009
My Device: Not Specified

Re: Help with PimListListener2 and batchOperation()

Would love any help here! Not sure if this is a BlackBerry bug or if we are looking at this incorrectly (probably the latter, but would be nice to make sure..).

 

Highlighted
BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Help with PimListListener2 and batchOperation()

This is an issue on with the BlackBerry API set, which I have sent to our development team.  The batchOperation method should be fired when batch updates are made using a Desktop Manager synchronization.  I do not have a work around to provide at this time.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 11
Registered: ‎01-19-2009
My Device: Not Specified

Re: Help with PimListListener2 and batchOperation()

Thanks Mark, good to know its not us. Smiley Happy