since ‎04-10-2007
‎10-12-2019
atta707
Level 2
Re: HTTPService - Datagrid DataProvider atta707 - Adobe LiveCycle
check the resultFormat property of the HTTPService instanceand you might have to set to e4x to have it treat the response asXML.http://livedocs.adobe.com/flex/3/langref/mx/rpc/http/HTTPService.html#resultFormatATTA
53
Views
0
Likes
0
Replies
Re: HttpService with JSON from server - help please atta707 - Adobe LiveCycle
First off, you'll need to read your response as a simple textby specifying resultFormat="text" in your service:Now in your result event you'll read the response as simpletext:var rawData:String = String(event.result);Of course, now you need to encode this string as JSON Object.Flex don't have a built-in JSON encoder/decoder. So here is librarydone by Adobe/Flex folks that hanldes JSON:http://code.google.com/p/as3corelib/Once you've downloaded this library and have copied in yourlib foleder, the ...
46
Views
0
Likes
0
Answers
Re: how to integrated with java using HttpServices atta707 - Adobe LiveCycle
Here are the keywords for your research on google: BlazeDS,Live Cycle Data Services, RemoteObject!Basically, you need a service side infrastructure that wouldexpose your pojos as callable objects and RemoteObject on the Flexclient to call these pojos. This is, of course, an alternative to you JSP, Strtus Actionor some other Java server side code creating XML and writing it tothe HttpResponse and you'd use HttpService class to call suchresources. ATTA
40
Views
0
Likes
1
Replies
Re: Problem with HTTPService atta707 - Adobe LiveCycle
try putting your crossdomain.xml file at the root of your webserver. That is, in this case, it should be available at http://localhost:8080/crossdomain.xml.You might want to hit that URL in the browser to confirm thatyou're indeed have placed the file at the right place.ATTA
118
Views
0
Likes
1
Replies
Re: Connecting Flex 3 to MSSQL atta707 - Adobe LiveCycle
Are you sure you're using correct parameters, like host name,port, user name and password, for you MySql DB? Can you connectusing same values from the command line?
36
Views
0
Likes
0
Replies
Re: Datagrid and percentage formatting atta707 - Adobe LiveCycle
have a look at the sortCompareFunction property ofDataGridColumn. This function allows you to define you customsorting implementation is meant exactly for these kind ofscenarios. Flex Builder help and web has examples of this.ATTA
58
Views
0
Likes
0
Replies
Re: Row span in DataGrid atta707 - Adobe LiveCycle
I think AdvancedDataGrid supports such use case not theDataGrid.
71
Views
0
Likes
0
Replies
Re: Flex Database Connection atta707 - Adobe LiveCycle
Hi Mike,Unfortunately, the answer is no! Just like you can't showyour result set on an HTML page without iterating it, getting it'sproperties -- rows and columns -- and converting them them to HTMLtext for browser to show; there is no way for Flex to understandsemantics of a result set.Your best bet could be a third party library that quicklyconverts a result set into more portable XML or CSV or JSON.ATTA
61
Views
0
Likes
0
Replies
Re: Flex Database Connection atta707 - Adobe LiveCycle
The most important thing to realize about Flex and it'sability to connect to a database is that i cannot! There is nothing in Flex that knows anything about .Net orvice versa! Absolutely, Flex can talk to old simple ASP pages. It'sentirely upto the ASP page to figure out about how it wants toconnect to a database. Once it has retrieved that data fromdatabase, all it has to do is to write it to the Response objectas, let's say, XML or JSON or what have you. Once you have this page and you hit it ...
61
Views
0
Likes
1
Replies
Re: Problem accessing public function in another module atta707 - Adobe LiveCycle
have you tried and then in your script this.fn.doInit() should work!Do you have the event on which you're chaning thecurrentState? If so, that would be place to add more logic. For a more graceful solution of the latter take a look at theenterState and exitState event of the State class.By the way, are you sure why are you using 'modules' versuscustom components here?ATTA
36
Views
0
Likes
0
Replies
Re: Connect to a MS SQL Server database atta707 - Adobe LiveCycle
No. You don't have to. Consider a ASP.NET page. It can connect to SQL Server usingODBC driver -- or whatever MS call the driver these days -- you runyour query and get a result set. you process the result set andconvert it to an XML string. Maybe using some library or built-insupport for XML in .NET framework. Now you XML ready. Just write tothe Response object of your page. Have you made any Ajax calls for data in your project? If so,you already know how to get this data in Flex. Using HTTPServ...
50
Views
0
Likes
0
Answers
Re: Connect to a MS SQL Server database atta707 - Adobe LiveCycle
You can't! Flex cannot *directly* connect to SQL Server or any otherdatabase for that matter. You get data into flex using a HTTP layer: like for exampleusing a ASP or ASP.NET page to generate XML -- or any other formatof your choice JSON, CVS -- use HTTPService class, send a requestto your server, get the data using result event of the class and dowhatever you want to do wit this data.Similarly, you'll need to post the data to the server overHTTP and store in the database.There is no FDBC, like...
50
Views
0
Likes
0
Answers
Re: datagrid refresh after pop up window closed atta707 - Adobe LiveCycle
try moving these two statementsds.send();xmlList.refresh();to the result event of the underlying HTTPService that'sbeing used at srv.send();
33
Views
0
Likes
1
Replies
Re: remoteObject fault code is not returned on firefox 2.0 but same returns fault code on Internet explorer atta707 - Adobe LiveCycle
it's because you browser (in this case FF) has cached thresponse. Try to add a dummy timestamp to your URLs to force thebrowser to go to the server on each request:var dummy:Number = new Date().getTime();myURL += "&dummy="dummy
33
Views
0
Likes
1
Replies
Re: escaping single quotes of query... atta707 - Adobe LiveCycle
try using escape() global function call on the string beforesending it over to the server.ATTA
52
Views
0
Likes
0
Replies
Re: Zipping files atta707 - Adobe LiveCycle
are you using Flex or AIR? If flex, do you want to uploadthese files to the server?
45
Views
0
Likes
1
Replies
Re: How to use SecureAMFChannel? atta707 - Adobe LiveCycle
for a quick try, in your browser address bar just add an safter http and hit enter.
97
Views
0
Likes
0
Replies
Re: How to use SecureAMFChannel? atta707 - Adobe LiveCycle
Try loading your main SWF file -- or the HTML file thatcontains it -- that uses SecureAMFChannel over https instead ofhttp.
97
Views
0
Likes
0
Replies
Re: dispatching event between sessions atta707 - Adobe LiveCycle
Jaysheel,See if this helps you start up:http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1361167#4952016ATTA
75
Views
0
Likes
1
Replies
Re: dispatching event between sessions atta707 - Adobe LiveCycle
The use case you've defined can easily be addressed by usingTimer class that ticks an event after a given timespan and sendingaHTTPService request to the server on the tick. For more involved apps BlazeDS has built-in messagingmechanism:http://www.adobe.com/devnet/flex/articles/data_entry.htmlhttp://www.adobe.com/devnet/flex/articles/yahoomaps_collaboration.htmlATTA
75
Views
0
Likes
1
Replies
Re: System prerequisites to call a webservice from flex atta707 - Adobe LiveCycle
is your second machine connected to internet? what happens ifyou put the url http://localhost:7531/SapMiddleTier/REST/ewcs/service/rfctin a web browser on that machine?
15
Views
0
Likes
0
Replies
Re: I made a HTTP request using a <mx:HTTPService> tag and I want to use a XML variable to store the result, however, the sy atta707 - Adobe LiveCycle
look into result and fault events for the HttpServicetag
49
Views
0
Likes
0
Replies
Re: flex data visualization trial atta707 - Adobe LiveCycle
Flex Data Vis is not free. You'll have to buy Flex BuilderProfessional license for it.
51
Views
0
Likes
0
Replies
Re: Loading image from database atta707 - Adobe LiveCycle
Yes. Sure, this should work. Have you tried it? Are youhaving any problems?Easiest check would to start off with componentand set it's url to the servlet that's pumping image bytes and seeif it displays it right. ATTA
44
Views
0
Likes
0
Answers
Re: flex : data connectivity atta707 - Adobe LiveCycle
so you hit your asp.net page, what do you see? Some XML? You would use the HttpService class to hit the same URL fromwithin your MXML code as you're using in your browser. While usingHttpService class, you'll need to register an event listener forresult event. Once server returns the response, flex would fireyour event listener with the data from the server. Now this is up to you what do you want to do with this data.If you've worked with AJAX calls, this should sound familiar.Please look up doc...
27
Views
0
Likes
0
Answers
Re: Connecting to SQL Server 2005 atta707 - Adobe LiveCycle
FDS -- rebranded as LiveCycle -- is totally optional. No. Flex won't connect to any DB server directly.Yes. You'd need XML or JSON or any other format. Essentially you'll be using HttpService fronted to a,perhaps, as ASP.NET page that gives you the data.
32
Views
0
Likes
0
Replies
Re: Realtime Stock list atta707 - Adobe LiveCycle
You're speaking good English! Don't worry! Please look into Timer class on how to poll your data sourceperiodically to get the data. Showing it would be same as firsttime.ATTA
39
Views
0
Likes
0
Answers
Re: Realtime Stock list atta707 - Adobe LiveCycle
The question is too vague, IMO 🙂 I'll try though. Yes, flexcan help you show a stock list. Where is the data coming from? From a HTTP interface? A webservice? You'll need to look into HttpService and WebServiceclasses respectively on how to get data. How do you want to display this data? As a list? Maybe youwant to look into DataGrid or other list based components.Do you want/need to show trends? Flex Charting is what wouldhelp you chart these trends?Or are you looking for some other info?ATTA
31
Views
0
Likes
0
Answers
Re: Flex and Access... atta707 - Adobe LiveCycle
No. You don't need FDS. Let me ask you another question: how do you currently connectto your Access DB in your WEB APP? JEE, .NET, ColdFusion, PHP...?You'd keep your server side code as it is, let's just say in.NET. And hit the application url using Flex frameworks HTTPServiceclass. This is exactly like using Ajax to get data from serverside.ATTA
29
Views
0
Likes
0
Replies
Re: FLEX: Saving to an xml file atta707 - Adobe LiveCycle
Hi,I'm assuming you're trying to store this XML on the clientmachine. If that's the case, have a look at SharedObject class.ATTA
30
Views
0
Likes
0
Replies