Symbian
Symbian OS Library

FAQ-0850 I'm having trouble creating a DNL to a ToDo in UIQ - it duplicates the entry. Why?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Applications
Created: 02/12/2003 Modified: 03/03/2003
Number: FAQ-0850
Platform: Symbian OS v7.0

Question:
I'm having trouble creating a DNL to a ToDo in UIQ - it duplicates the entry. Why?

Answer:
When an application DNL is passed to the ToDo detail view using KUidTodoAgendaEntry, ToDo actually interprets the received entry (given by the entry UID) as an Agenda entry. ToDo will then extract the entry details from the Agenda server and create a copy of it, casting it to be a todo entry. Naturally this will lead to a duplicated entry if the original entry was already a todo item.

To solve this, use the DNL entry KUidTodovCalEntry instead of KUidTodoAgendaEntry. When this is received by ToDo, the detail view will correctly switch to the specified entry (assuming that the entry UID does indeed belong to a valid todo item).

Please note, however, that due to a defect in this code in Symbian OS v7.0, all entries switched to in this fashion will be filed as Unfiled, even if they were previously assigned a different category.