since ‎04-10-2007
‎10-12-2019
atta707
Level 2
Re: HTTPService - Datagrid DataProvider
Avatar

atta707

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

Views

61

Likes

0

Replies

0
Re: HttpService with JSON from server - help please
Avatar

atta707

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 ...

Views

64

Likes

0

Replies

0
Re: how to integrated with java using HttpServices
Avatar

atta707

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

Views

56

Likes

0

Replies

1
Re: Problem with HTTPService
Avatar

atta707

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

Views

137

Likes

0

Replies

1
Re: Connecting Flex 3 to MSSQL
Avatar

atta707

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?

Views

50

Likes

0

Replies

0
Re: Datagrid and percentage formatting
Avatar

atta707

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

Views

74

Likes

0

Replies

0
Re: Row span in DataGrid
Avatar

atta707

atta707
- Adobe LiveCycle
I think AdvancedDataGrid supports such use case not theDataGrid.

Views

91

Likes

0

Replies

0
Re: Flex Database Connection
Avatar

atta707

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

Views

86

Likes

0

Replies

0
Re: Flex Database Connection
Avatar

atta707

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 ...

Views

86

Likes

0

Replies

1
Re: Problem accessing public function in another module
Avatar

atta707

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

Views

49

Likes

0

Replies

0
Re: Connect to a MS SQL Server database
Avatar

atta707

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...

Views

68

Likes

0

Replies

0
Re: Connect to a MS SQL Server database
Avatar

atta707

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...

Views

68

Likes

0

Replies

0
Re: datagrid refresh after pop up window closed
Avatar

atta707

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();

Views

43

Likes

0

Replies

1
Re: remoteObject fault code is not returned on firefox 2.0 but same returns fault code on Internet explorer
Avatar

atta707

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

Views

54

Likes

0

Replies

1
Re: escaping single quotes of query...
Avatar

atta707

atta707
- Adobe LiveCycle
try using escape() global function call on the string beforesending it over to the server.ATTA

Views

70

Likes

0

Replies

0
Re: Zipping files
Avatar

atta707

atta707
- Adobe LiveCycle
are you using Flex or AIR? If flex, do you want to uploadthese files to the server?

Views

71

Likes

0

Replies

1
Re: How to use SecureAMFChannel?
Avatar

atta707

atta707
- Adobe LiveCycle
for a quick try, in your browser address bar just add an safter http and hit enter.

Views

130

Likes

0

Replies

0
Re: How to use SecureAMFChannel?
Avatar

atta707

atta707
- Adobe LiveCycle
Try loading your main SWF file -- or the HTML file thatcontains it -- that uses SecureAMFChannel over https instead ofhttp.

Views

130

Likes

0

Replies

0
Re: dispatching event between sessions
Avatar

atta707

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

Views

94

Likes

0

Replies

1
Re: dispatching event between sessions
Avatar

atta707

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

Views

94

Likes

0

Replies

1
Re: System prerequisites to call a webservice from flex
Avatar

atta707

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?

Views

16

Likes

0

Replies

0
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
Avatar

atta707

atta707
- Adobe LiveCycle
look into result and fault events for the HttpServicetag

Views

70

Likes

0

Replies

0
Re: flex data visualization trial
Avatar

atta707

atta707
- Adobe LiveCycle
Flex Data Vis is not free. You'll have to buy Flex BuilderProfessional license for it.

Views

64

Likes

0

Replies

0
Re: Loading image from database
Avatar

atta707

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

Views

47

Likes

0

Replies

0
Re: flex : data connectivity
Avatar

atta707

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...

Views

31

Likes

0

Replies

0
Re: Connecting to SQL Server 2005
Avatar

atta707

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.

Views

40

Likes

0

Replies

0
Re: Realtime Stock list
Avatar

atta707

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

Views

40

Likes

0

Replies

0
Re: Realtime Stock list
Avatar

atta707

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

Views

32

Likes

0

Replies

0
Re: Flex and Access...
Avatar

atta707

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

Views

32

Likes

0

Replies

0
Re: FLEX: Saving to an xml file
Avatar

atta707

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

Views

42

Likes

0

Replies

0