Problem of data Conversion HTTPService
I have a REST-style web service that returns an HTML document that looks like this:< a >
< b >
< c > 2.0 / < c >
< b >
< b >
< c >/< c > 3.2
< b >
< /a >
I can use the browser to view this document, and it looks as expected. However, when I use a Flex HTTPService to get the document and display its values, all numbers ending by ".". 0' are rounded/truncated. For example, the first element < c > above appears as '2' instead of '2.0 '.
Why numbers are converted? Shouldn't they have considered all other text in an XML element?
That's what I call service:
< mx:HTTPService id = "myService" url = "itsurl" method = "GET" useProxy = "false" / >
And it is an example that shows a number being trucated/rounding:
< mx:Label text="{myService.lastResult.a.b[0].c}"/ >
Thank you
Mike
The default value for HTTPService is resultFormat = "object", which causes Flex convert your xml file into a tree of dynamic objects. It is rarely what you want. Among other things, he's trying to type conversions.
Instead, the value resultFormat = "e4x". This will give you your xml code that the United Nations has changed. It also gives you access to the e4x which is very powerful API. It includes features of course, search and always.
In addition, for another thing what a banal or demonstration app, do not directly bind to the lastResult. Use a function instead of the result handler. Here is an example, untested:
(in the script)
Import mx.rpc.ResultEvent;
[Bindable] private var _xmlResult:XML; var instance to store the data
private void onResult(event:ResultEvent):void {}
_xmlResult = XML (event.result);
trace (_xmlResult.ToXmlString ()); to see exactly what you
....
}
Note your example of XML is not valid, so I can't show you an example of an e4x expression.
Tracy
Tags: Flex
Similar Questions
-
Problems of data Conversion from 8.9 to 9.1 HRMS
We do the HRMS 8.9 to 9.1 upgrade. We met below error while doing the CONVERSION OF DATA.
After the initial analysis, we found that this column is missing in the rendered Table. Please help what steps should take this problem to overcoem.
Number 1: -.
PeopleTools 8.52.04 - engine application server
Copyright (c) 1988-2012 Oracle and/or its affiliates.
All rights reserved
PSAESRV service request has started 21.51.43 2012-03-25
Process 517495 resumed after the UPG_SC90 step. HCSCM30. Step00 (108 538)
File: error vob/peopletools/src/psappeng/aedebug.hSQL. Stmt #: 1620 error Position: back 59: 904 - ORA-00904: "HR_PTCS_SERVICEID": invalid identifier
Failure of SQL stmt:INSERT IN PS_HCM_EO_TXN (nom_de_transaction, EOAWPRCS_ID, HR_PTCS_SERVICEID, DELEGATION_INIT, DELEGATION_APPR) SELECT TRANSACTION_NAME, EOAWPRCS_ID,' ', DELEGATION_INIT, DELEGATION_APPR OF PS_EO_TRANSACTIONS
Process 517495 ABENDED to step UPG_SC90. HCSCM30. Step01 (SQL) - RC = 904 (108 524)
Process %s ABENDED to %s.%s.%s (step %s) - RC = %s
PSAESRV filled with 21.51.44 service request 2012-03-25
Question No. 2: -.
PeopleTools 8.52.04 - engine application server
Copyright (c) 1988-2012 Oracle and/or its affiliates.
All rights reserved
PSAESRV service request has started 21.51.43 2012-03-25
Process 517496 resumed after the EOUFDATACONV step. Process.Step003 (108 538)
File: error vob/peopletools/src/psappeng/aedebug.hSQL. Stmt #: 1620 error Position: 90 return: 904 - ORA-00904: "GPCH_CA_RELATION": invalid identifier
Failure of SQL stmt: SELECT 'X' FROM PS_INSTALLATION WHERE NOT EXISTS (SELECT 'X' "FROM PS_GPCH_CA_DATA2 WHERE GPCH_CA_RELATION <>'")
Process 517496 ABENDED to step UPG_GPCH90. HCGCHP50. Step010 (make when) - RC = 904 (108 524)
Process %s ABENDED to %s.%s.%s (step %s) - RC = %s
PSAESRV filled with 21.51.44 service request 2012-03-25PeopleSoft Patches and site updates, I see that required to install HRMS 9.1 (need to apply to the demo), HCM91 MP5 CUMULATIVE in required.
Search
Product range: HRMS
Product: install
Version: 9.1
Option: Required for installation.MP5 contains, as you said, to bundle 7.
Just checked on an environment that has no package 8 and this area does not reside in the folder.
Errors looks like to they required to upgrade PRJ872267 HRMS UPGRADE 9.1 BUNDLE #12.
I can see the two sql sent in this patch.Have you installed PeopelSoft HRMS 9.1 or the latest version, including the Feature Packs?
-
Hi all
I'm doing an A - D conversion. Conversion table is given in attachment, as well as the file vi. I got three 8-bit during serial communication data and join them to form a 24-bit number (I mention this so there is no question why mets implement entry like that). As you can see in the table of conversion without exit number must be greater than Vref, however in this implementation, I get a flow of 2 * Vref.
Can someone please help me find the error.
Darko
The conversion formula is implemented for bipolar data while your VI U32. You cannot represent negative numbers with U32 (unsigned integer).
Lynn
-
Hi friends,
I have a problem with the conversion of the date in my PB.
SELECT eff_dt, TO_CHAR (TO_DATE (eff_dt, 'Dd-mon-yy'), 'dd-mm-yyyy') DATE from une_table;
It gives me o/p as -.
DATE OF EFF_DT
01.01.1950 00:00:00 01/01/2050
as you can see here the year is wrong, while I convert the date that I use the substr() also to cut the year of first line, but it gives me the 50 i.e. onle last (YY)
So, if someone can help me with this prob.
If eff_dt is a column DATE, then stop calling to_date on it.
If this is not the case, consider making it into a DATE column. If you are unable to do this, use the format mask appropriate when you call to_date
-
dynamic double bit data conversion
It could be very simple, but I was confused. I have current data and average data as in code. I want to build the table using these data, save them on my hard drive and open in word with header (current and average)
Problems:
I have data from two sources in lead generation and versions table as shown entry table to write on the worksheet vi. I get the error source is dynamic and double sink is a bit. It is the most difficult part of my life to find out what range of conversion to use.
When I run the vi (lets assume the good range of conversion is connected and there is no conversion error) pops up the dialog for path that comes up constantly on dialog
Ideally I want appears on the screen when I press on would go so that I can browse location to save the file, and once the path is specified vi works continuously and the data is written to the worksheet while vi is running.
Thanks a lot for reading and help
See you soon
Welcome to the evil world of dynamic data. What you really want to use is the merging of signals feature. When you do this a dynamic data conversion will be automatically added between the signals to merge and writing on a spreadsheet file.
You can consider using writing to the file position as directly accepts dynamic data.
With respect to the path, use a shift register.
-
Show date conversion frenzy...
This query runs... and after 11 seconds of processing. BOOM! ORA-01722: invalid number_
It seems to be a problem in the conversion of the date in the where clause.
Any help appreciated.
Kind regards!
-----
THKKKSELECT COUNT(1) NB_EXEC, NVL(SYSTEM,'OTHERS'), DAY, HOUR FROM ( SELECT DECODE(SUBSTR(NAME,1,3),'TZ','TERMINAL','OTHERS') AS SYSTEM, TO_CHAR(start_hour,'HH24') AS hour, TO_CHAR(start_date,'RRRR-MM-DD') AS day FROM tablename UNION ALL SELECT DECODE(SUBSTR(NAME,1,3),'TST','TEST','OTHERS') AS SYSTEM, TO_CHAR(start_hour,'HH24') AS hour, TO_CHAR(start_date,'RRRR-MM-DD') AS day FROM tablename WHERE start_date >= TO_CHAR(:P_START_DATE||' 00:00:00','RRRR-MM-DD HH24:MM:SS') AND start_date <= TO_CHAR(:P_END_DATE||' 23:59:59','RRRR-MM-DD HH24:MM:SS') ) GROUP BY SYSTEM, DAY, HOUR
Published by: the Hong Kong King Kong, Sep 17, 2010 06:12I think the problem is here:
start_date >= TO_CHAR(:P_START_DATE||' 00:00:00','RRRR-MM-DD HH24:MM:SS') start_date <= TO_CHAR(:P_END_DATE||' 23:59:59','RRRR-MM-DD HH24:MM:SS')
You use MM instead of e to the minutes.
start_date >= TO_CHAR(:P_START_DATE||' 00:00:00','RRRR-MM-DD HH24:MI:SS') start_date <= TO_CHAR(:P_END_DATE||' 23:59:59','RRRR-MM-DD HH24:MI:SS')
And a minute as '59 ' cann' t be converted to a value of months.
Published by: Sven w. on September 17, 2010 15:16 - added the two lines
-
context: a previous thread with an identical title never responded, the problem just disappeared. Well its been two weeks since then and the problem came back.
somethings which may or may not apply: internet TV seems to work better in media center. All updates have been applied to H.P. of Vista SP2. Netflix works fine in ie8 (such as the internet, of course). Tried to delete all the Internet Options, delete browsing history section of Internet Explorer. I get the same error message with my windows 7 professional media center, but netflix seems to play anyway (no game with vista). I recently installed quicktime alternative 2.72 to see what it was and how it worked, then removed and put back in quicktime.
Tried / symptoms:
-Remove all the browsing history (econcepts)
-Same message on Win7pro but works even when (econcepts)
-Works on Win7 no problem (omegafiler)
-Works in ie 8 (econcepts)
-Works in crome (Martin TX)
-Consensus is that it started around December 30, 2009 (GeoffG1, johnetX, me)
-Remove and reinstall silverlight (omegafiler)
-Remove and replace netflix plugin (omegafiler)<- how="" did="" you="" do="" that="">->
-Netflix says: microsoft problem (Nitestalker)
-Microsoft is silent (this thread - on vacation?)
-Same problem on 32-bit and 64-bit VMC (JRSMiamiFL)
-No applied update (johnetx)<- perhaps="" date="" related="" or="" drm="" date="">->
-Disconnect from netflix, you reconnect again - ultimately the same error (chicagokiwi)
-Tried to reduce the number of items in the queues to well below the limit of 200 (econcepts)
-Tried the register / unregister the third wire procedure, no joy (does not break anything else however)
-Disabled the firewall, no change (econcepts)related topics:
http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/0c154c0a-1fcb-4353-8c5e-b394e885256dSomeone else knows Netflix not being is not able to connect? It started yesterday (30/12/2009) for me. I looked fine the day before without problem. The message I get says "there was a problem of data recovery. Check the works of your internet connection and try again. Ok. I make it work with both my VMC - one with the service pack and the other without. My OS updates have been loaded in early December, so I don't see how this could it be. I searched and found this problem has come up before, but I have not found a solution. I made NO changes to my HTPC.
Those who have and solved this problem.
UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE *.
2009-01-05 has attempted to start Netflix this morning and you know, it works on both my VMCs. That's the good news. So now the real questions are:
Only 20 people reported it as a problem and only 6 on the green button. I believe that it affected all the world with Media Center. So why not discussed much?
It already happened, causes a stir and silently slips without known cause or cure. How can we find out what caused this and how to prevent it from happening again in the future?
*******************************************************************************************
-
Netflix in WMC «there was a problem of data recovery...» »
I installed the latest round of updates (Ultimate) of Windows Vista and it apparently burst Netflix in WMC. Now, I get the error:
"There was a problem of data recovery. Make sure your internet connection is working and try again. »
Internet works on the machine. I reinstalled Silverlight (v4) and Netflix for WIndows Media Center.
How to diagnose and repair the problem?
Thank you!
Keith...
Sorry for the delay, but I've been busy (in my free time) trying to get this to work.
I gave up trying to resuscitate MCE and installed a brand new Windows Vista Ultimate Edition with Service Pack 2. After apply all WIndows patches and installation of Silverlight, I have the "Netflix" element in MCE. He invites me to install, what I'm doing. However, every time I start MCE and go to Netflix, he tells me to do reinstall - no login screen.
I tried all the "mcupdate" article and then supported your steps above, but no go.
I did this twice, so it wasn't just a fluke. Apparently, the part of Netflix to MCE is not detect the plug-in that it installed.
Any thoughts on what to do then?
Thank you again...
Keith...
Later: I ran "mcupdate" after the steps you suggested, and now Netflix is gone again!
Later: same problem on my other computer running MCE and Vista. I don't want to mess up this computer so I left as what.
Later: opening of a new post on problems become Netflix to work with a clean install.
-
Original title: cannot load Netflix movies in Media Center
Netflix photo click on the message appears indicating a problem of data recovery. Check the works of your internet connection and try again.
Hi Barbarasimonetti,
(1) since when are you facing this problem?
(2) remember to make changes?
(3) what is the complete error message you receive?
Method 1: You can follow the steps described in the article below
Known issues and limitations of Netflix on Windows Media Center for Windows Vista
http://support.Microsoft.com/kb/972496
Method 2: If a Protection of resources Windows (WRP) file is missing or is damaged, Windows may not behave as expected. Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps mentioned in the link below:
How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
http://support.Microsoft.com/kb/929833
Thank you, and in what concerns:
Ajay K
Microsoft Answers Support Engineer
*************************************************************************** -
What is the problem with the conversion of objects with gradients to the gradient mesh?
What is the problem with the conversion of objects with gradients to the gradient mesh?
Radial gradients are special, and it could become difficult edit the gradient mesh resulting.
Take the layer apnel and inspect your objects. You will find a clipping mask the cracks inside.
-
Result of the handful of XML data with httpservice
Hello
Please find my xml data http://121.242.211.152/janaagraha/get_complaints
I need to load these xml data through httpservice and depending on the result of the handle, I need access to individual data as complaints.complaint.title using the service loop. I tried this I could not get the result I need
" < s:HTTPService id = 'Complaints' url = ' http://121.242.211.152/Janaagraha/get_complaints "result ="Complaints_resultHandler (event)"fault =" Complaints_faultHandler (event) "> "
< / s:HTTPService >
< fx:Script >
<! [CDATA]
protected function Complaints_resultHandler(event:ResultEvent):void
{
var complaintarray:ArrayCollection = event.result.complaints.complaint;
var carray:Array = complaintarray.toArray ();
for (var i: Number = 0; i < carray.length; i ++)
{
var cmparray:Array is ObjectUtil.toString(carray[i]).split('~~~');.
Title: string var = ObjectUtil.toString(cmparray[0]);
Alert.Show ("HI" + title);
}
}
Please suggest I need to get data like title, complainturl, latitude longtitude etc.
Concerning
Jeremi
Your node of categories is not necessary contain two category nodes, check if there is in fact two categories:
var complaint_cat:XMLList = complaint.categories.category; if(complaint_cat.length() > 0){ var mainCategory:String = complaint_cat[0].toString(); if(complaint_cat.length() > 1){ var subCategory:String = complaint_cat[1].toString(); } } trace("main category: " + mainCategory + ", sub category: " + subCategory);
--
Kenneth Kawamoto
-
VARCHAR2 to date conversion error
Hi dear experts,
I have a varchar2 column in the source with a date data as the 2008-12-26 ("yyyy-mm-dd")
I'm trying to load this in a date in the target table column.
I do to_date(SINCE_DT,'yyyy-mm-dd')
its gives me an error saying ORA-01840: not long enough for the date format of input value. I saw the forum found the discussions, but found no solution.
Help, please.Hello
You use the correct transformation of the TO_DATE(), but you must have this column values that are not complying with the format 'YYYY-MM-DD ". If you run the following:
SELECT SINCE_DT FROM your_table WHERE LENGTH(TRIM(SINCE_DT)) != 10;
You should see the records with the date format is shorter than "YYYY-MM-DD". That's the problem with dates stored in anything other than a column DATE.
-
CRIO-9066 FIFO data conversion problem
I'm having a problem with a multiple element SGL FIFO on a cRIO-9066 where data is not read correctly. Here is the configuration:
I have two Host - to - Target FIFOs, identical except for type: FXP is the other SGL. Both are 16-element. Data SGL which are read turns a conversion error. A sample minimum (2014 for the 9066) project is included.
The example works fine if the FIFO SGL 1-element; something more big fails. Is not supported on the same 9066 thought that the project allows the creation?
Thank you
David
It seems that maybe it's a bug in the Simulator. Exit the simulation mode, run it on your target and watch the interactive mode in this way. The results are what you expect. It is strange that they would be converted at some point.
-
Disqualification: Date conversion problem
Hi all
For some reason, it turns out that which was built as 00:30:15 (HH) will be automatically converted to 12:30:15 (HH) as string value. See screenshot below.
Tried several things in the reference list of date format, but no resolution yet. How can we avoid this conversion?
Problem has been resolved:
Under two date formats have been contradictory:
DD/MM/YYYY HH: mm 23/01/2014 12:30 DD/MM/YYYY HH: mm 03/01/2014-10:10 Deleted the premiera and dates are converted correctly now.
-
Hello
My version of db: Oracle 11 g
"Is there a way I can convert date in this format 04.10.15.000000000 13-SEP-06 PM' to 13-OCT-06 16:10:15 ' or 13-SEP-06 16:10:15.
Please suggest.
937454 wrote:
But I need to load it into the target as "yyyy-mm-dd hh24:mi:ss" table (as you say with year-round)
Danger Will Robinson, Danger!
If your target table is, as it should, a date data type, then you don't have to load it into a specified format. If the source table and the target table are the two dates, so no conversion is necessary at all.
Maybe you are looking for
-
My computer was stolen. Can I get my music from my iPod?
My window PC was stolen recently. Is it possible to recover my music and playlists of several iPhones and iPads? Most of the music was collected from CD and I don't want to go through this process again!
-
TWO connections Microsoft Virtual WiFi Miniport Adapter?
Hello! Recently bought a LG TV and try to mirror the screen by WiDi, but after a week of cracking my head over this, it does not work. In troubleshooting I stumbled upon the fact that I have TWO connections Microsoft Virtual WiFi Miniport adapt, even
-
Make mistake while building/running bbutil with cascades app
Hi, I am trying to build an opengl are 2.0 app and have pretty much used the tutorial for a cube with waterfalls using a foreignwindow, but the code used opengl 1.0. Since then I tried to use the code from a basic tutorial but I had difficulties to g
-
Microsoft Money 2000 Deluxe will not work on Windows 8
Original title: program programs application Applications compatibility How to overcome the problem of compatibility with Microsoft Money 2000 Deluxe running on Windows 8. Have been using it successfully on Windows XP?
-
Lightroom 5.7.1 still does not recognize the a7r2 ARW files
I updated Lightroom in Camera Raw 8.71 5.7.1, and it still does not recognize a7r2 files imported from an SD card. I also have Photoshop 6 c installed, if that makes a difference.What I am doing wrong?