[flexcoders] need help to print text file available on server

2009-08-02 Thread raja_s_patil
Hi,

If a text file is created on server through PHP
Can Flex application print it directly on client's
LAN printer ? If yes HOW ?

Can it print that in Fast DMP mode i.e. raw text printing to
dot matrix printers ? if not what alternative can be used ?
I am able to download it from server and save locally or
show it in another browser window/tab.

The user wants it to be printed directly from flex application
in fast DMP mode rather than using DOS commands 
like copy filename.txt lpt1: cr
or any other local GUI program which can put raw output to windows
print queue but that is not acceptable.

Thanks and best regards.

Raja




Re: [flexcoders] Re: creation timing on panel component

2009-08-02 Thread claudiu ursica
Hi did not go throgh your code but the problem is that you get your data on app 
creationComplete. By the time you have the data the poanel is not created yet. 
That is why you get the error. I don't know what are you trying to accomplish 
and why are you loading another swf in the main app. My suggestion is to 
restructure you code a little bit MVC style. Get the data into a model, put a 
variable currentPlanType and wit respect to that bind to you current selected 
plan. It will work with binding as you already said, because the bindings fire 
first when null and secionnd time after you get your data and have the 
component created.
You keep duplicated code in createBreakfast , Luynch and dinner which is not 
OK. 

HTH,
C





From: Jason B nos...@advancedonsite.com
To: flexcoders@yahoogroups.com
Sent: Saturday, August 1, 2009 10:07:02 PM
Subject: [flexcoders] Re: creation timing on panel component

  
I didnt include all the code I'll zip it up and email it to you.

--- In flexcod...@yahoogro ups.com, claudiu ursica the_braniak@ ... wrote:

 From what I see here the button click does not make the call to the http 
 service.
 
 The general rule of the thumb is aftter the service call you push the data 
 into a model which usually updates the view via binding. I always parse data 
 into array collections or other strong typed objects. Having the items into 
 an array collection enables you to bind to it if you're using List based 
 components in the view. However in your case yuou could listed to the 
 collection change event and do your thing manually. Send me the code via 
 email and I'll try to debug it. I cannot figure it out from what I see. I 
 guess you make the call for the data and the result gets back before the 
 creation complete venet fopr the panel fires.
 
 C
 
 
 
 
  _ _ __
 From: Jason B nos...@...
 To: flexcod...@yahoogro ups.com
 Sent: Saturday, August 1, 2009 9:14:34 PM
 Subject: [flexcoders] Re: creation timing on panel component
 
 
 
 mx:Button label=Create Breakfast click=createBreakf ast()/ 
 is in the main.mxml
 
 --- In flexcod...@yahoogro ups.com, claudiu ursica the_braniak@ ... wrote:
 
  when are you calling the service?
  
  C
  
  
  
  
   _ _ __
  From: Jason B nospam@
  To: flexcod...@yahoogro ups.com
  Sent: Saturday, August 1, 2009 5:51:26 PM
  Subject: [flexcoders] Re: creation timing on panel component
  
  
  Just so you know if I use this on the component it works fine
  
  mx:VBox 
  nutrition:Panelcre atemeal id=pnlCreateBreakf ast meal={nutritionDat 
  a.breakfast} /
  /mx:VBox
  
  
  --- In flexcod...@yahoogro ups.com, Jason B nospam@ wrote:
  
   Main.mxml
    --
   
 [Bindable]
 private var nutritionData: XML;
   
   
 //  create breakfast
 private function createBreakfast( ):void
 {
 vsMain.selectedInde x = 1;
 vsCreateMeals. selectedIndex = 0;
 plantype = 'Breakfast';
   
   #1009 ERROR HERE BELOW !
 pnlCreateBreakfast. meal = nutritionData. 
   breakfast;
   
 }
   
   
   mx:HTTPService id=hsNutrition url=/main.php/ flexnutrition/ 
   nutritioncal
 result=nutritionRe sultHandler( event)
 fault=nutritionFau ltHandler( event) resultFormat= e4x/
   
   
 mx:VBox width=100% height=100% 
 mx:ViewStack width=40% height=410 
   borderStyle= inset borderThickness= 2 id=vsCreateMeals 
   
 mx:VBox 
  nutrition:Panelcre atemeal 
   id=pnlCreateBreakf ast /
 /mx:VBox
   
   
    - - - - -
   panelcreatemeal. mxml
    -
   ?xml version=1.0 encoding=utf- 8?
   
 borderThicknessLeft =0 borderThicknessRigh t=0 borderThicknessBott 
   om=0
 dropShadowEnabled= false
  horizontalAlign= center xmlns:containers= com.dougmccune. 
   containers. * title=Select An Item from below creationPolicy= all
   
 mx:Script
 ![CDATA[
 //import com.createmealPanel ;
   
 [Bindable]
 private var _meal:XMLList;
   
 public function set meal(value:XMLList) :void
 {
 if(value)
 {
 _meal = value;
 createContainers( );
 }
 }
   
 private function createContainers( ):void
 {
 for each(var item:Object in _meal.itemdata)
 {
 if(item.available == yes)
   

Re: [flexcoders] HSLIDER

2009-08-02 Thread claudiu ursica
I thing Doug Mc Cune did something like that, a similar component. Google for 
it on its blog.

C





From: ram ramesh ram_y...@yahoo.co.in
To: flexcoders@yahoogroups.com
Sent: Sunday, August 2, 2009 1:18:12 AM
Subject: [flexcoders] HSLIDER

  
 Hi 
I have one requirement in my project.Please help me How can do that.
It is releated to HSLIDER in FLEX3.
PFB UI image and explanation.
Please share me your experience.
 
 
 
 
  
 
Hslider Requirement:
Year is selected from 2001 to 2005. The visible years in the Line 
chart are highlighted with blue. The selected years are also displayed 
underneath the slider (2001, 2005).
 
 Thanks in advance,
Ramesh

   


  

[flexcoders] unsubscribe

2009-08-02 Thread Michael Paley



[flexcoders] Re: xml as dataprovider to datagrid

2009-08-02 Thread shizny
Thanks for the response.  I've decided the best/most flexible way for me to 
work this out is to build my own arraycollection from traversing xml and use 
that as my dp 

--- In flexcoders@yahoogroups.com, Guy Morton g...@... wrote:

 Single item nodes get turned into objects, not arraycollections.
 
 This is a common source of confusion and pain. AFAIK, there is no easy  
 way to deal with this - your code must anticipate the two data types.
 
 Guy
 
 On 02/08/2009, at 11:34 AM, shizny wrote:
 
  Hello,
 
  I'm having some really weird issues with populating an  
  advanceddatagrid with xmlList (quoteXMLList) data. Here is my  
  situation. I've got an xmllist that, when looking at one entry  
  (xmlList[0]), has xml looking like this.
 
  response
  cost
  totalCost20/totalCost
  /cost
  /response
 
  Now I'm trying to get totalCost as a datafield and for it to show up  
  in a adg column. So I tried something like this
 
  mx:AdvancedDataGrid editable=false width=100% height=100%  
  variableRowHeight=true id=quoteDataGrid  
  dataProvider={this.quoteXMLList}
  mx:columns
  mx:AdvancedDataGridColumn dataField=cost.totalCost  
  headerText=Total Cost /
 
  But nothing shows up. So, I changed my dataprovider to  
  this.quoteXMLList.cost and put dataField=totalCost and it shows up  
  fine. But I can't do that cause I have more info I need to gather  
  for other columns that is in different areas of the xml in the  
  current xmlList. So, can you not put e4x notation in datafield, if  
  not what do I do here? Thanks in advance.
 
  Josh
 
 
 
 





[flexcoders] Flex scheduler application

2009-08-02 Thread joyfulrodger
Hey all,

I have been assigned a new project where i have to code a reminder scheduling 
application in flex with a coldfusion backend and sqlserver db. Basically user 
will select an hour when they receive a reminder to do a task. Its intended to 
be deployed world wide so I have to take into consideration time zones. What i 
wanted to know is, how is the date in flex worked out if i create a new date 
variable like so.

var myDate:Date = new Date();

Will it pick up the time in the client computers timezone? Will it allow for 
daylight savings time?

All help much appreciated.

Thanks,
Dave



RE: [flexcoders] Flex scheduler application

2009-08-02 Thread Jake Churchill
It will use whatever the client computer's current date/time is.  It only
takes daylight savings time into account if the client's computer has it set
correctly and you'd be surprised how many times that doesn't happen.  

 

My company wrote a stock charting application and ran into some issues with
this.  I suggest attempting to do date operations on the server and pass the
current date/time into the flex app on load.

 

I recently wrote an AIR (Flex) reminder application
(http://www.reynacho.com/projects/reminder-application/).  If this is the
type of thing you need, I'd be happy to share some of the code with you.  It
uses a SQLite DB to store everything and depends entirely on the computer's
time settings

 

Jake Churchill

CF Webtools

11204 Davenport, Ste. 100

Omaha, NE  68154

http://www.cfwebtools.com

402-408-3733 x103

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of joyfulrodger
Sent: Sunday, August 02, 2009 9:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex scheduler application

 

  

Hey all,

I have been assigned a new project where i have to code a reminder
scheduling application in flex with a coldfusion backend and sqlserver db.
Basically user will select an hour when they receive a reminder to do a
task. Its intended to be deployed world wide so I have to take into
consideration time zones. What i wanted to know is, how is the date in flex
worked out if i create a new date variable like so.

var myDate:Date = new Date();

Will it pick up the time in the client computers timezone? Will it allow for
daylight savings time?

All help much appreciated.

Thanks,
Dave





RE: [flexcoders] Any suggestion for server (java) side run-time styling solution?

2009-08-02 Thread Tim Rowe
I'm a bit puzzled that you mention the need to compile in changes.  Surely a 
SWF can load in an external css file?  If so, could the swf not typically be 
made to access a CSS file (via whatever method) specifically for that user via 
their credentials, or via a token?

This would allow run-time loading, and the ability to store, modify and 
retrieve it however you like on the server-side.

Tim Rowe
Software Engineer
carsales.com Ltd


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of guy.tomer
Sent: Saturday, 1 August 2009 6:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Any suggestion for server (java) side run-time styling 
solution?



Hi,

We read the documentation about loading styles from out side but unfortunately 
they all discuss loading swf compiled files.

While it is possible to let an editor edit the style on the server and then run 
the compiler on the server to generate a swf file, it looks like redundant 
complexity. The server is a cluster and it'll require additional set-up for 
every server.

Does anyone have a different solution?

Just to clarify - the requirement is to have the client load the style in 
run-time. This style should be manageable on a management interface running on 
a java server.

Thanks,
Guy




__
Notice: This email and attachments (if any) is for the exclusive use of the 
addressee and may contain information that is privileged and confidential. Any 
unauthorised use of the contents of the email and/or attachments is expressly 
prohibited. If you are not the addressee of this email, please notify me 
immediately by email and then immediately destroy any electronic or paper copy 
of this email and/or attachments. Carsales.com Ltd and its related companies do 
not accept responsibility for the views expressed in the email or for the 
consequences of any computer viruses that may be transmitted with this email. 
This email is subject to copyright. No part of it should be reproduced, adapted 
or transmitted without the written consent of the copyright owner.

RE: [flexcoders] Re: xml as dataprovider to datagrid

2009-08-02 Thread Tracy Spratt
That is certainly a very good solution.  In fact, it will be the most
performant if you use strongly typed value objects in your array collection.
For complex displays, there can be a noticeable performance hit when
accessing XML.  There are other advantages to doing it this way also, such
as making calculated properties, sorting, etc.

 

To stay with e4x XML, use a labelFunction, which can traverse the nested xml
nodes as needed.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of shizny
Sent: Sunday, August 02, 2009 11:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: xml as dataprovider to datagrid

 

  

Thanks for the response. I've decided the best/most flexible way for me to
work this out is to build my own arraycollection from traversing xml and use
that as my dp 

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Guy Morton g...@... wrote:

 Single item nodes get turned into objects, not arraycollections.
 
 This is a common source of confusion and pain. AFAIK, there is no easy 
 way to deal with this - your code must anticipate the two data types.
 
 Guy
 
 On 02/08/2009, at 11:34 AM, shizny wrote:
 
  Hello,
 
  I'm having some really weird issues with populating an 
  advanceddatagrid with xmlList (quoteXMLList) data. Here is my 
  situation. I've got an xmllist that, when looking at one entry 
  (xmlList[0]), has xml looking like this.
 
  response
  cost
  totalCost20/totalCost
  /cost
  /response
 
  Now I'm trying to get totalCost as a datafield and for it to show up 
  in a adg column. So I tried something like this
 
  mx:AdvancedDataGrid editable=false width=100% height=100% 
  variableRowHeight=true id=quoteDataGrid 
  dataProvider={this.quoteXMLList}
  mx:columns
  mx:AdvancedDataGridColumn dataField=cost.totalCost 
  headerText=Total Cost /
 
  But nothing shows up. So, I changed my dataprovider to 
  this.quoteXMLList.cost and put dataField=totalCost and it shows up 
  fine. But I can't do that cause I have more info I need to gather 
  for other columns that is in different areas of the xml in the 
  current xmlList. So, can you not put e4x notation in datafield, if 
  not what do I do here? Thanks in advance.
 
  Josh
 
 
 
 






[flexcoders] Printing in fast DMP modde.

2009-08-02 Thread raja_s_patil
Hi, 

I would Like to print local/remote plain text files
in fast dot matrix mode i.e. raw text output to printer,
equivalent to DOS command is copy filename.txt lpt1:. 

Raw text output to printer is required since its almost
10/15 times faster than equivalent gfx printing.

Can It be done in flex ? How ?

Thanks and best regards

Raja