×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    179

    Error in editing the inbox

    Dear,

    I'm trying to Edit the messages in the Inbox using EditStoreL(), ReadStoreL(), and StoreBodyTextL, but it gives me KErrAccessDenied, i heard that the inbox is read only, so how to make it not readonly in order to change the messages content (body and header) and save it again in the inbox ??

    I'm using the Encryption Example here:

    http://wiki.forum.nokia.com/index.ph...#Hide_Messages


    thanks in advance

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: Error in editing the inbox

    It should not create problem. But I must confess that I have not checked that code in S60 3rd edition. I created that article which I tested on S60 2nd edition devices.

    Anyways, try to execute the code on Emulator and see if you are missing any capabilities. Epocwind.out

    On the first attempt, try using ReadUserData, WriteUserData (perhaps WriteDeviceData) capabilities in your .mmp file.
    Nokia Developer Wiki Moderation team

  3. #3
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: Error in editing the inbox

    I have also not checked whether the SMS in inbox is read only or not.
    In this case you can delete and re create SMS in inbox with edited details. I mean you can get the details of SMS from inbox, edit the SMS text and delete the older SMS and create new one.

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    179

    Re: Error in editing the inbox

    Quote Originally Posted by kiran10182 View Post
    It should not create problem. But I must confess that I have not checked that code in S60 3rd edition. I created that article which I tested on S60 2nd edition devices.

    Anyways, try to execute the code on Emulator and see if you are missing any capabilities. Epocwind.out

    On the first attempt, try using ReadUserData, WriteUserData (perhaps WriteDeviceData) capabilities in your .mmp file.
    thanks for your replay,
    i tried to put all capabilities except AllFiles, DRM, and TCB, and the problem is the same.

    have you checked it on 3rd ed ?

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    179

    Re: Error in editing the inbox

    Quote Originally Posted by aficianado_001 View Post
    I have also not checked whether the SMS in inbox is read only or not.
    In this case you can delete and re create SMS in inbox with edited details. I mean you can get the details of SMS from inbox, edit the SMS text and delete the older SMS and create new one.
    this will not work with me because the problem also appear when trying to hide the messages also

  6. #6
    Registered User
    Join Date
    May 2008
    Posts
    179

    Re: Error in editing the inbox

    Dear friends,

    please it becomes very urgent now .. i need a help how to edit the inbox messages or how to make it not read only ?

    thanx in advance

  7. #7
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: Error in editing the inbox

    Quote Originally Posted by the_king2008 View Post
    Dear friends,

    please it becomes very urgent now .. i need a help how to edit the inbox messages or how to make it not read only ?

    thanx in advance
    Ok. I found the issue. Use ReadStoreL() instead of EditStoreL(). I also updated the article which you can look into. http://wiki.forum.nokia.com/index.ph...crypt_Messages

    PS: Tested on N85(S60 3rd FP2)
    Nokia Developer Wiki Moderation team

  8. #8
    Registered User
    Join Date
    May 2008
    Posts
    179

    Re: Error in editing the inbox

    Quote Originally Posted by kiran10182 View Post
    Ok. I found the issue. Use ReadStoreL() instead of EditStoreL(). I also updated the article which you can look into. http://wiki.forum.nokia.com/index.ph...crypt_Messages

    PS: Tested on N85(S60 3rd FP2)
    thanx kiran for your interest the ReadStore work fine now ... but it still gives me the same error on StoreBodyTextL in the line :

    inboxStore->StoreBodyTextL(RichText);

    .. how to solve ?

  9. #9
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: Error in editing the inbox

    Quote Originally Posted by the_king2008 View Post
    thanx kiran for your interest the ReadStore work fine now ... but it still gives me the same error on StoreBodyTextL in the line :

    inboxStore->StoreBodyTextL(RichText);

    .. how to solve ?
    Call LoadMessageL() on Mtm before calling StoreBodyTextL()

    Code:
    TMsvId entryID = entries->At(i);
    iSmsMtm->SwitchCurrentEntryL(entryID);
    iSmsMtm->LoadMessageL();
    
    CMsvEntry* entry= iSession->GetEntryL((*entries)[i]);
    CleanupStack::PushL(entry);
     
    TMsvEntry entry1 =  entry->Entry();
     
    CMsvStore* inboxStore= entry->ReadStoreL();
    ...
    ...
    Last edited by kiran10182; 2009-11-16 at 16:31. Reason: Updated description
    Nokia Developer Wiki Moderation team

  10. #10
    Registered User
    Join Date
    May 2008
    Posts
    179

    Re: Error in editing the inbox

    Quote Originally Posted by kiran10182 View Post
    Call LoadMessageL() on Mtm before calling StoreBodyTextL()

    Code:
    TMsvId entryID = entries->At(i);
    iSmsMtm->SwitchCurrentEntryL(entryID);
    iSmsMtm->LoadMessageL();
    
    CMsvEntry* entry= iSession->GetEntryL((*entries)[i]);
    CleanupStack::PushL(entry);
     
    TMsvEntry entry1 =  entry->Entry();
     
    CMsvStore* inboxStore= entry->ReadStoreL();
    ...
    ...
    thanx for your effort
    i tried this ... but not work
    Last edited by the_king2008; 2009-11-17 at 13:04.

  11. #11
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: Error in editing the inbox

    Quote Originally Posted by the_king2008 View Post
    thanx for your effort
    i tried this ... but not work
    Actually there is a problem. We are opening a message store with ReadStoreL() method which opens the store in Read Only access. And later we are trying to modify the store which apparently results into leave, which is correct behavior.

    Message store should be opened with EditStoreL method when we want to edit it but EditStoreL function leaves for some reasons. I will see if I can find out anything useful.
    Nokia Developer Wiki Moderation team

  12. #12
    Registered User
    Join Date
    May 2008
    Posts
    179

    Re: Error in editing the inbox

    Quote Originally Posted by kiran10182 View Post
    Actually there is a problem. We are opening a message store with ReadStoreL() method which opens the store in Read Only access. And later we are trying to modify the store which apparently results into leave, which is correct behavior.

    Message store should be opened with EditStoreL method when we want to edit it but EditStoreL function leaves for some reasons. I will see if I can find out anything useful.
    thanks for your reply ..

    i will be grateful if you notify me when you find something useful.

    Regards.
    Last edited by the_king2008; 2009-11-19 at 13:57.

Similar Threads

  1. Editing inbox sms
    By totetote in forum Symbian
    Replies: 7
    Last Post: 2011-05-11, 12:12
  2. receiving a message both in Inbox and my midlet
    By vinhtung in forum General Messaging
    Replies: 0
    Last Post: 2009-03-18, 03:11
  3. Editing sms from inbox
    By darrarski in forum Symbian
    Replies: 1
    Last Post: 2007-09-11, 17:13
  4. How to get list of subfolders under Inbox
    By Gayathri Lokesh in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-03-25, 06:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×