BUG: Incorrect data returned with JSON and CF8

I don't know if this is a bug, but I am trying to create a
JSONDataSet that will call a cfc which returns a query in json
format. However, I have a problem with a column datatype
varchar(20), for which some rows contains numbers as the value
(01,02,03,...etc) but when the dataset is returned, the value for
this column comes as (1.0,2.0,3.0,...etc)
HELP!!!
This is my code...
var dsCities = new
Spry.Data.JSONDataSet("/remoting/remotegeodataservice.cfc?method=getgeodata&countrycode=u s&featureclass=a&queryformat=column&returnformat=json",
{path:"DATA", pathIsObjectOfArrays:true});

I just dumped the dataset like this...
<div spry:region="dsStates">
<ul style="margin:0; padding:0;">
<li spry:repeat="dsStates">{ADMINCODE1} -
{ASCIINAME}</li>
</ul>
</div>
For Australia this is my result dumped:
* 1 - Australian Capital Territory
* 0 - Heard Island and McDonald Islands (general)
* 3 - Northern Territory
* 2 - State of New South Wales
* 4 - State of Queensland
* 5 - State of South Australia
* 6 - State of Tasmania
* 7 - State of Victoria
* 8 - State of Western Australia

Similar Messages

  • [svn] 4793: Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds

    Revision: 4793
    Author: [email protected]
    Date: 2009-02-02 11:20:06 -0800 (Mon, 02 Feb 2009)
    Log Message:
    Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds
    Fix: When calculating the bounds position we should take into account the implicit scaling factor actualSize/naturalSize. Also did some refactoring, getting rid of the protected method calculateTopLeft.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17734
    Reviewer: Ryan
    tests: mustella gumbo/layout/GraphicElement
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17734
    http://bugs.adobe.com/jira/browse/SDK-17734
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Ellipse.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s

    Thank you so much for replying.
    Yes I have removed and reinstalled WMP.
    I had good results with the PD6 application installed on the default path onto the C: drive with the one exception that if the application was launched by accident and the user data path was not available, the PD6 application would blow away my custom user path registry settings. Now that I know what they are I have made a .reg file to repair my registry to my desired user data paths.
    Installing the application on the removable drive appeared to help prevent me from launching the application by accident and overwriting my registry with default user paths.
    So which is the less of the two evils?
    If the application directory is not available, windows media player still tries to launch the .msi for installing PD6.
    If I install the application to the C: drive but the user data to the removable drive, launching the PD6 application without the user data drive will still corrupt my registry settings for a user data path.
    Both these issues seem like a logical (if not easy) fix that should be done in the PD6 application and installation package. I mean really, cannot anyone tell me why windows media player is checking the PD6 application directory? Why in PD4 did we have an option control for setting the user data path from the PD4 application? Why is this option not in the PD6 application, just the installer?
    I am given a choice during installation to move the user data to another non default location. Why else would this be provided if not to accommodate my kind of request to store the user data into an alternate location other than “My Document”. Certainly Palm is not trying to force the users on how to protect and store their personal data?
    Post relates to: Centro (Verizon)

  • How do you generate random data info using json and spry?

    I have a mobile applicaton that uses spry datasets that dynamically populate a jquery mobile listview by using a json file. Everything is operating as it should.
    However, I would like to understand how to pull random objects from the json file to have them displayed on a different page.
    My json file is standard and not complicated. It has several levels. Each is represented as below:
                                  { "Level1":
                                                                {"imageurl":"images/_myimage.png",
                                                                "someData":"S,A,P,R",
                                                                "levelLongDesc":"further description",
                                                                "name": "John Doe",
                                                                "page": "referencepage",
                                                                "description":"The description of the image"
    {"imageurl":"images/_myimage.png",
      "someData":"S,A,P,R",
      "levelLongDesc":"further description",
      "name": "John Doe",
      "page": "referencepage",
      "description":"The description of the image"
    Json file Level1 has about 70 objects
    What I would like to do is randomly load one of the Level1 object arrays into the page when the user selects a Level 1 radio button that is on the screen. I know how to create the page, radio buttons and basics, but just don't know how to pull in the random data.
    I've found one code sample on this site that speaks to spry and xml, but I haven't been able to apply it in any way that works for me with the json file:
    http://forums.adobe.com/message/662551
    I've also googled. There isn't much on spry datasets with json and generating random info. There was a little bit on sorting, but that didn't help either.
    Does anyone have a good example/tutorial of how to use the random function with spry/json?
    TIA
    -Rachel

    I've done similar things before.  A few thoughts for you:
    1. I'm assuming you're doing a buffered period or frequency measurement on the incoming encoder pulses, right?  First key point is that you'll have data that is spaced equally in position, but not equally in time.  If you are looking for a time-based FFT such that increasing speed will shift your spectrum, you're going to need to go through an interpolation process to resample your data as though equally-spaced in in time. 
    2. Your 149 pulse per rev encoder may be a significant source of error unless its 149 pulses are placed with extreme accuracy.  Any error in pulse placement violates your underlying assumption of data that is equally-spaced in position.  It'll be very helpful to send your data through a software lowpass filter to attenuate those artifacts. 
    3. I am not sure what you mean by "decompose the buffered data (array) into a single datastream."  You'll get an array of periods / frequencies from the call to DAQmx Read.  If you want to use it in a LabVIEW waveform datatype, you'll first need to do the resampling to create equally-spaced-in-time data.  The LabVIEW waveform datatype (and all the analysis functions like FFT that use it) depend on receiving data with a fixed constant time interval between samples.
    -Kevin P.

  • Can someone please help, I have a dvd disk containing lecture videos, on a Windows pc it works fine, and the disk opens to the dvd menu. However on my macbook pro running Mountain Lion, it opens as a data disk, with video and audio in two seprate files??

    Can someone please help, I have a dvd disk containing lecture videos, on a Windows pc it works fine, and the disk opens to the dvd menu. However on my macbook pro running Mountain Lion, it opens as a data disk, with video and audio in two seprate files??

    You may need a 3rd party application to view the DVD in a wWindows format such as
    http://flip4mac-3.en.softonic.com/mac
    https://www.macupdate.com/app/iphone/5758/vlc-media-player

  • Vendor returns with delivery and shipping

    i'm doing vendor returns with delivery. made the necessary settings;
    1) flagging vendor as returns in Vendor master
    2) creating customer master record and assigning to vendor, maintaining Shippping condition in shipping tab page of customer master
    3) maintaing Sorg, DC, DV and Sorg, DC, -PLANT combination
    4) maintaing shippoing point. assigning shipping point - shipping condition combination for the plant.
    5) shipping data for material master maintained as well
    despite this, while doing vendor returns with deliveries, system still pops up the following error message, "shipping data not maintained", message no, "ME 393"
    any help in this regard would be greatly appreciated

    hi Srinivas,
    no shiping tab page in PO. If shipping data determined by system, shipping page appears in the PO. Since, no shipping data could be determined, sysytem throws up the above error message. I've maintained all the possible info that had to be maintained.
    thanks in advance

  • Incorrect data returned when using a date prompt

    We are using BO XI R3.1 with fix pack 1.3 on windows with a CMS and report database on Oracle 11i. There is one report in which a date range is set by prompting for the Start and End date, depending on the dates entered it sometimes erroneously displays the message `No data to fetch`.  It can be confirmed that there is actual data rows, by either running the SQL script in an application such as Toad or by hard-coding the start and end dates into the condition, indicating that it is the `Prompt` which is causing the problem.
    For example if the start and end dates are 28/06/2010 - 02/07/2010 there will be no data returned, but if the end date is extended to 30/07/2010 then data will be returned which includes transactions from 28/06/2010 - 02/07/2010.  Whether the date range is set using the SQL `between`  operator  or  using the start date greater than or equal and end date less than or equal results in the same `no data to fetch` message displayed.
    Is this a known issue or have other users come across this behaviour in their desktopIntelligence reports ?. It may be that it is fixed in subsequent service packs but for the time being our environment cannot upgrade beyond the existing fix pack. This problem can also be replicated on new reports and even on other date fields in the database, and if the prompt is incorporated into the Universe the problem still remains.
    Meanwhile any thoughts or ideas on the problem are appreciated.
    Edited by: Peter Gibbs on Jul 26, 2010 1:14 PM

    Hi Peter,
    I've noticed similar behaviour in the past, and it had to do with a difference in language setting between client and server side.
    So let's say dutch client, american oracle.
    So oracle expects MM/DD/YYYY whereas the users think they must input DD/MM/YYYY.
    Now happens something that I consider BO being to clever for its own good.
    If a user enter 28/06/2010 it knows that can't have been MM/DD/YYYY since it is invalid that way,
    so it swaps it! and gives 06/28/2010 to the database.
    A date like 02/07/2010 doesn't get swapped because its valid,
    so it gives 02/07/2010 to the database.
    So ultimately the database tries to retrieve between Jun 28th and Feb 7th, which gives no data to fetch...
    Thats why in situations with different date formats I never use a data field to prompt,
    but request the data in a certain format as string and convert it myself in the universe to a dateformat for the database to process. I just state the expected input format to the user so there are no surprises anymore.
    Something like "Give date from (ddmmyyyy)"...
    Hope this helps,
    Marianne

  • Does anyone have problems with data usage with att and Iphone5?

    Hello, Does anyone have problems with data usage or non usage I should say with Iphone 5 and AT&T?

    After 4+ months of dealing with this data usage and battery drain problem that included 3 data captures of my wife's iMac, the trigger for us regarding the problems syncing with iCloud, and 5 hours of logs off my iPhone 6 to be analyzed by Apple engineers that included times my wife's computer was both on and off to demonstrate the difference in data usage and battery drain under those conditions, I can say with very reasonable certainty that the iOS 8.3 and corresponding Mac OS 10.10.3 update has solved the problem. 
    We have now been running for about 2 weeks and data usage with the iCloud Servers attempting to sync has dropped from a rate of 31 GBs to under 15 MBs per month.  Yes, you read it right.  We were burning 2000 times as much data doing absolutely nothing important on both of our phones, a 5s and a 6.  Just imagine what that does to battery life!  The 5s would last about 5 hours and the 6 was dead in less than 14.
    The distasteful aspect of this process was how the engineers were quietly fixing the problem at the same time sending messages to my contact person within Apple that were dismissive in nature in the face of indisputable unreasonable results. I must say, this experience with the multiple times the engineers' responses were inappropriate put a little tarnish on the old Apple shine of the ‘It just works’ mantra. This was my first experience in 34 years that caused me to stop recommending Apple products without reservations and with a disclaimer.
    Since the update solved the problem, then I can only conclude that there was a logic bug regarding the reaction within the process to the incoming data that was corrected.  There was noting short of logging out of iCloud that circumvented the problem for us, Gator5000e and probably many others noted on other threads.  I am not trying to imply that this is the cause of everyones battery use problem, but it is reasonable that it was a cause for many.

  • Date Picker with Previous and Next Year Options

    Hi All,
    I am implementing a date picker in my application which is tied to an attribute of type PA0001-BEGDA. Date Picker as such works fine but navigating to previous year and Next year options are not available. User has to go month by month to different years if they have to navigate.
    Is this the normal behavior of the Date Picker or am I missing something else to get the previous and Next year icons in the Date Picker.
    Thanks,
    Nagarajan.

    hmm..I tried using the select options and it did give the same date picker with the previous and Next navigation icons...The only problem with the select options is that its a single field which has the range and can accept multiple values too...
    I tried to figure out how the date picker that we use in the custom application and the one in Select Options differ but no luck...Does this ring any bell?
    Thanks,
    Nagarajan.

  • Sales return with warranty and without!

    Hi,
    I have a scenario like sales return,
    2 cases, with warranty and without warranty
    I need your guidance on controls,
    1st case with warranty,
    Stock has been taken in to the plant with respect to sale return order.
    I generate service order SM01 (Non revenue generated)
    Maintain operations and material
    goods issue and operation confirmation
    technical completion.
    Now I run DP90 for resource related billing. And need to control that service order cost does not go to billing document. But I don't want to bill the customer.
    Please correct me, I only settle my service order and leave it. How should I go about it. Please help me.
    2nd case, when there is no warranty,
    I create a service order SM02 (revenue posting allowed)
    Maintain operations and material
    Then run DP80 to generate quotation and confirm quotation.
    goods issue and operation confirmation
    technical completion.
    Run DP90 for billing the customer.
    Could you please suggest me if I need to make any changes to this. If so, which part of it (SPRO) i need to configure.
    And as per my understanding if service contract exist then it will help to determine fixed price in with out warranty case.

    Hi,
    Yes I could able to run DP90 though I don't declare the order as revenue based. Infact the if refurbishement order (SM03) has to trigger automatically from sales order RA. Infact if it is revenue based we canot even generate it from sale order.
    You can even refer to this following link which states that cycle.
    [http://help.sap.com/saphelp_46c/helpdata/en/e6/4a8df09e0311d189b70000e829fbbd/frameset.htm]
    I have only doubt during this process billing is based on DIP profile. But how does pricing procedure is coming in to picture. And how and where to link Pricing procedure. Please guide me. And from one of my collegue came to know that accounting Indicator can be used to get discount condition in pricing procedure so, that when we run for Warranty cycle we can bring that condition to get 100% discount through KBM1 condition type.
    Regards,
    N,Nagaraju

  • Date Profile with Actions and Deadline Monitoring

    Hi Folks ,
    I have met an requirement of Actions with Deadline Monitoring of Date Profile . I could able to see Date profile with Day Rules in the standard , But i have met an requirement for very high imp - 2 hrs , High - 4 hrs .... etc. Where in Standard Date Profile i checked all the Date Rules which were in the XML format which describes about Day only.
    I m looking for an XML code for Date - DDMMYY & Time Format - HHMMSS and which supports my requirement.
    Would be very thankful if any could forward any step for Actions with Date profile with Time depandant.
    Thank you
    Regards,
    Amrita

    Hi Amrita,
    You take the standard XML code for the date time and copy as per your requirement and give the duration and time unit. Then assign to the action profile and see the action is appearing in transaction.Then go to tcode CRMC_ACTION_JOB and execute that transaction from their. Then the date you want to trigger the mail it will trigger in that time.
    Thanx
    Chinmaya

  • Sql query data horizontally with sum and condition in a row

    I am trying to get data from the following query in a row with total but not succeed and getting error message. Please help and advise.
    Select empid,name,country,
    sum(case category when 'JOB' then sum(core+RR) else 0 end) as 'JOB-Sum',
    sum(case category when 'PRIVATE' then sum(core+PP) else 0 end) as 'PRIVATE-Sum',
    group by empid,name,country
    Note: Following query is good for getting result in one row but i have to put sum calculation with 'THEN' and want result in a row.
    SELECT ID, MAX(case when Col1 = 'Yes' then 1 else 0 end) AS Col1,
    MAX(case when Col2 = 'Yes' then 1 else 0 end) AS Col2
    FROM MyTable
    GROUP BY ID

    Please show some sample data and expected output.
    Regards,
    Rob.

  • Delete data dynamically with JSP and servlet (Very Urgent)

    Hi,
    I am new with servlets and JSP. On my jsp page I am populating customer names in a drop box from database and I have 3 buttons ADD, DELETE and EDIT.
    Now when I press DELETE buttong I am calling delete function which is writen in Javascript on my jsp file only,now I want to pass these selcted values ehich I have stored in an array to be pass to servlet,so I can write Delete query for it and delete.
    Could anyone help with sample code>
    Here what I am trying to say:
    <HTML>
    <HEAD>
    <script language="JavaScript" type="text/javascript">
    <!--
    function remove()
    var u = confirm("Are you sure you want to Delete Selected names?")
    if (u==true)
         var selectedArray = new Array();
         var selObj = document.getElementById('CUSTOMER_NAME');
         var i;
         var count = 0;
         for (i=0; i<selObj.options.length; i++) {
         if (selObj.options.selected) {
         selectedArray[count] = selObj.options[i].value;
         count++;
         alert("names to be deleted are:"+selectedArray);
         // selectedArray has the selected items stored
         alert("Items Deleted!")
    else
    alert("No data were deleted!!You pressed Cancel!")
    //-->
    </script>
    </HEAD>
    <BODY>
    //calling servlet on action tag of form
    <FORM METHOD= 'POST' ACTION='Remove_Customer'>
    <form ><INPUT TYPE='submit' NAME='DELETE' VALUE='DELETE' onclick="remove()"></TD></form>
    <form><INPUT TYPE='submit' NAME='MODIFY' VALUE='MODIFY' onclick="modification()" ></TD></form>
    </BODY>
    </HTML>
    PLEASE HELPME,it's very urgent.
    Since the selected Array is in javascrip language , I don't know how can I pass that to servlet.
    request.getParameter is not working,since it's an array
    Many thanks in Advance.

    Hey,
    I am having problem deleting multiple values.
    If I just select one value,it deletes it
    But for multiple values the code is not working right.
    If there 2 values selcted then the last value gets deleted,if there are more than 2 values selected none values delete.
    Could plese check the code,and let meknow what mistake am I doing?
    Please help
    String delName="";
    int pos = tStr.indexOf(",");
    System.out.println(pos);
         if (pos != -1)
                   delName = tStr.substring(0, tStr.indexOf(","));
              tStr = tStr.substring(tStr.indexOf(",") + 1 );
                   System.out.println("DElName:"+delName);
                   System.out.println("tStr::"+tStr);                              
                        delName = tStr;
                        delete_Customer(delName);
    Thanks
    ASH

  • How we can use existed REST data services with JSON to create MBO??

    Web site having REST web services with JSON format data interchange. By using these service call how we can create MBO ( MOBILE BUSINESS OBJECT ) in SAP Mobile Platform. Any Limitations are there for hybrid application development in SMP?? 

    You would need to parse the XML feed into your site with PHP or JavaScript. 
    http://www.w3schools.com/php/php_xml_simplexml.asp
    Nancy O.

  • Problem formatting date labels with DateTimeAxis and parseFunction

    I'm working with a line chart that gets its data from a MySQL
    database and
    I'm using a DateTimeAxis to try to display the date on the
    x-axis. The date
    is formatted in the database as "YYYY-MM-DD" - however when I
    run the
    application I am only seeing the date displayed as MM/YY. I
    am using a
    parseFunction as follows:
    public function myParseFunction(s:String):Date {
    var a:Array = s.split("-");
    var newDate:Date = new Date(a[0],a[1]-1,a[2]);
    return newDate;
    I was trying to experiment with setting dataUnits to days or
    weeks but it
    doesn't seem to change. Can anyone figure out what I'm doing
    wrong?
    Thanks,
    -Dan
    The code for the line chart is:
    <mx:LineChart x="10" id="linechartHist"
    dataProvider="{dataProvider1}"
    showDataTips="true" width="100%" height="100%" y="10">
    <mx:horizontalAxis>
    <mx:DateTimeAxis displayName="Date" title="Date (Month)"
    parseFunction="myParseFunction" dataUnits="days"/>
    </mx:horizontalAxis>
    <mx:horizontalAxisRenderer>
    <mx:AxisRenderer canDropLabels="true"/>
    </mx:horizontalAxisRenderer>
    <mx:verticalAxis>
    <mx:LinearAxis title="Price" id="vAxis"
    labelFunction="vLongLabels"
    interval="10"/>
    </mx:verticalAxis>
    <mx:series>
    <mx:LineSeries displayName="MSFT" yField="MSFT"
    xField="date"/>
    <mx:LineSeries displayName="PG" yField="PG"
    xField="date"/>
    <mx:LineSeries displayName="NTDOY" yField="NTDOY"
    xField="date"/>
    </mx:series>
    </mx:LineChart>

    Hi
    Try using "sv_SE" locale.

  • Bug in PDF generation with Report Builder CF8

    Hello
    there is a bug in the calculation of the left margin of a
    page.
    I upgraded from MX 7.02 to CF8. My "old" Reports worked fine,
    but when I export them to PDF an print them the left margin is
    different.
    I'm using metric settings in the Report Builder. I created a
    new Report with Left Margin 2 cm and a single Field with the left
    Property = 1 cm (0.9879 cm). The printed paper with these poperties
    where fine. I could measure appoximatly 3cm . But if I use Report
    Left Margin = 1.27 cm and Field left Property = 0.35cm. The left
    margin of the printed paper is only 1.1cm.
    So it depends on the choosen Values of report left margin and
    the left property of a field.
    Does anybody else have the same problem?

    I found this posting as I have now "rediscovered" this issue. I came to the same conclusion - edit ALT TEXT for every image.
    However, I think it is confusing that these paths of image file are not considered Personal Information that can be removed using the Inspect Document feature (I tried - was not successful). The list of things to be removed using this wizard is quite extensive
    - and some of them less visible than these file paths.
    It would be interesting to know if this is going to change with future updates of Word. Why is an ALT TEXT included at all per default? I think using the file path in ALT TEXT should be made optional. Is there a way to turn off this default embedding of
    the full path?
    As the OP I also used Office 2013 on Windows 7 64bit.
    Elke

Maybe you are looking for