From issues-return-30-apmail-flex-issues-archive=flex.apache.org@flex.apache.org Fri Jun 21 13:43:23 2013 Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 361AF10E59 for ; Fri, 21 Jun 2013 13:43:23 +0000 (UTC) Received: (qmail 79123 invoked by uid 500); 21 Jun 2013 13:43:23 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 78826 invoked by uid 500); 21 Jun 2013 13:43:22 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 78400 invoked by uid 99); 21 Jun 2013 13:43:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2013 13:43:22 +0000 Date: Fri, 21 Jun 2013 13:43:22 +0000 (UTC) From: "Alex Harui (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33591) How to add comma separated numbers in the address field of message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13690273#comment-13690273 ] Alex Harui commented on FLEX-33591: ----------------------------------- I would recommend making a very simple test in an ActionScript-only project that just calls navigateToURL to eliminate any potential side effects from Flex code. The first variation I would try is to not call encodeURIComponent on groupSmsString, but rather, call it on each phone number so the comma doesn't get encoded. > How to add comma separated numbers in the address field of message > ------------------------------------------------------------------ > > Key: FLEX-33591 > URL: https://issues.apache.org/jira/browse/FLEX-33591 > Project: Apache Flex > Issue Type: Bug > Components: .Unspecified - Mobile > Affects Versions: Adobe Flex SDK 4.6 (Release) > Environment: Mobile > Reporter: Saju Thankathurai > > I have developed a Flex mobile application using Flex 4.6 sdk. Its a Contact manager application. I have given additional functionality to the Employee contact manager sample app of Adobe. > I am facing an issue while sending a group message. > I have a xml file to store user data. Later i use sqlite db to read and store the xml data into the dataBase. > I have a requirement, If we click on a menu item, Message box should be opened and all the mobile numbers should be populated in the TO address. > So i have a menuItem > > > > On click of this,, > public function grpeMsgMenu_clickHandler():void > { > > var groupSmsString:String = ""; > // TODO Auto-generated method stub > var phoneCollection:ArrayCollection = new ArrayCollection(); > phoneCollection = srv.populatePhoneNumbersForGroupMsg("group"); > > if(phoneCollection != null) > { > for(var i:int = 0 ; i < phoneCollection.length ; i++) > { > if(i == phoneCollection.length-1)//means last record is going to insert, So dont append comma > { > groupSmsString += phoneCollection[i]; > } > else > { > groupSmsString += phoneCollection[i] + ","; > } > } > }else > { > //Phone arrayCollection is null. > groupSmsString = ""; > } > if(groupSmsString != "") > navigateToURL(new URLRequest("sms:"+encodeURIComponent(groupSmsString))); > > trace(groupSmsString); > } > Where srv is the DAO class, It calls the method, Executes the query and returns all the phone numbers from the .db file. > Finally the groupSmsString holds the value as [+919223454345,+919565678876,+9192233223344,+919122221111] and so on > So i have comma separated values to be passed to the TO field of SMS. > The problem is in the TO field of message, the groupSmsString is not coming as comma separated, rather it is coming as +919223454345+919565678876+9192233223344+919122221111 > This problem is observed in LG Optimus mobile. But strangely it is working fine in Sony Xperia. > I spent many times in tracing the issue, by > 1.replacing encodeURIComponent with encodeURI, > 2.without using encodeURIComponent and encodeURI > 3.passing %2c instead of comma.. > But could not succeed. > I feel it could be a bug, So posting in Jira. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira