×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    8

    View SMS Sent Box

    Hi

    I have read documentation ect and I cant seem to access my sent messages

    I tried
    [code]
    criteria = { Type: "Sent"};
    so.IMessaging.getList(criteria) and it just fails.

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: View SMS Sent Box

    Hello,

    The only supported value for criteria.type is "Inbox"
    http://library.forum.nokia.com/topic...1-46F1B963C6B9

    Br,
    Ilkka

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    1

    Re: View SMS Sent Box

    I have found a workaround for this problem.
    Use the Logging API to read the sent messages. It's true, that this is not perfect, because not all characters will be shown, if the message is long, but it might do the job.

    Code:
    var so = device.getServiceObject("Service.Logging", "IDataSource");
    var criteria = new Object();
    criteria.Type = "Log";
    criteria.Filter = new Object();
    criteria.Filter.EventType = 3; // this is for short messages
    criteria.Filter.Direction = 1; // this if for outgoing direction
    var result = so.IDataSource.GetList(criteria);
    ReturnValue part:
    Code:
          var msg = "";
          var obj;
          var it = result.ReturnValue;   
          while ((obj = it.getNext()) != undefined) {
            msg = msg + "id: " + obj['id']+ "<br>";
            msg = msg + "RemoteParty: " + obj['RemoteParty'] + "<br>";
            msg = msg + "PhoneNumber: " + obj['PhoneNumber'] + "<br>";
            msg = msg + "Subject: " + obj['Subject'] + "<br>";
            msg = msg + "Description: " + obj['Description'] + "<br>";
            msg = msg + "DeliveryStatus: " + obj['DeliveryStatus'] + "<br><br>";
          }      
          it.reset();
          document.getElementById(DIV_ID).innerHTML = msg;
    This should work. (I haven't tried this code, but even if there's a mistake, after debugging, this method will surely show outgoing messages.)
    Last edited by phaet0n; 2010-05-20 at 10:13.

Similar Threads

  1. SMS View
    By gammav in forum General Messaging
    Replies: 2
    Last Post: 2008-06-09, 05:04
  2. how to send sms but not save to the sent box?
    By shsunyang in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-01-10, 08:05
  3. Replies: 1
    Last Post: 2005-12-01, 23:57
  4. SMS View
    By rakesh_pccs in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-11-04, 14:29
  5. SMS Inbox View
    By amitapm in forum Symbian
    Replies: 3
    Last Post: 2004-11-04, 07:30

Posting Permissions

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