[flexcoders] Using TOTAL and AS in the SQL of a Flex app

2008-08-11 Thread bredwards358
I really don't know where to post this, as it involves both SQLite and Flex 3, but, I'll try here first. Here's what I have in FlexBuilder: sqlText = SELECT Up18RODetail.ProductID, TOTAL(Up18RODetail.Qty) AS :qtySum + FROM Up18RODetail LEFT JOIN

[flexcoders] Re: Using TOTAL and AS in the SQL of a Flex app

2008-08-11 Thread bredwards358
Of course, it was revealed to me a short while ago that you can't parameterize a column alias that was the whole problem. Thanks. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 11 Aug 2008, bredwards358 wrote: sqlText = SELECT Up18RODetail.ProductID, TOTAL

[flexcoders] SummaryObject Warning, no clue what it means...

2008-08-07 Thread bredwards358
While checking to make sure my summary information was correct, I got this warning while debugging the application: warning: unable to bind to property 'total2' on class 'mx.collections::SummaryObject' (class is not an IEventDispatcher) warning: unable to bind to property 'total3' on class

[flexcoders] More than one summary field in a summary row?

2008-08-04 Thread bredwards358
While building report generation for our application, I noticed that while trying to properly display summary information, I can only seem to get one of the desired summary fields to display, here's the code I'm using: //Sets the grouping and summary stuff rptGrpSr = new SummaryRow();

[flexcoders] Re: More than one summary field in a summary row?

2008-08-04 Thread bredwards358
Problem solved, I simply used multiple render providers in the summary row to display the data. Though if a better way exists I wouldn't mind hearing it. --- In flexcoders@yahoogroups.com, bredwards358 [EMAIL PROTECTED] wrote: While building report generation for our application, I noticed

[flexcoders] Re: How to best implement this barcode generator...

2008-07-29 Thread bredwards358
] wrote: On Monday 28 Jul 2008, bredwards358 wrote: Right now I'm trying to figure out how to implement Barcode generation in my AIR app since two of the reports I need this to be able to print require a list of Barcodes You could just use a suitable barcode font. There's a free 6of9

[flexcoders] Setting the dataGrid column's font and leaving the header alone?

2008-07-29 Thread bredwards358
So, today I found a type128 barcode font which fits the purposes of the application we're developing quite nicely. However I've hit a bit of a snag. When the font family of a dataGrid column is set, it sets both the font of the column's items as well as the column header. This would be fine if the

[flexcoders] Re: Setting the dataGrid column's font and leaving the header alone?

2008-07-29 Thread bredwards358
[mailto:[EMAIL PROTECTED] On Behalf Of bredwards358 Sent: Tuesday, July 29, 2008 11:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting the dataGrid column's font and leaving the header alone? So, today I found a type128 barcode font which fits the purposes of the application

[flexcoders] How to best implement this barcode generator...

2008-07-28 Thread bredwards358
Recently I got this barcode generation component from this place: http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailloc=en_usextid=1179012 Right now I'm trying to figure out how to implement Barcode generation in my AIR app since two of the reports I need this to be able to

[flexcoders] Numeric values drawn from a database, always int?

2008-07-21 Thread bredwards358
So far so good in the application currently in development, I feel like I'm in the home stretch. However something has come up which could prove to be a roadblock in the near future. There are some values which need to be totaled up and some of those need decimals. Now I realize that the int

[flexcoders] Re: Numeric values drawn from a database, always int?

2008-07-21 Thread bredwards358
Bingo, thanks that I believe was exactly what I needed, it would seem that when I'm making the database tables, it would be best to use REAL and/or NUMBER as opposed to NUMERIC and/or INTEGER to best utilize numbers with decimal points. Brian Ross Edwards Tech-Connect LLC --- In

[flexcoders] Finding a date between dates

2008-07-15 Thread bredwards358
Sounds like a simple question and easily answered by a search, but considering my own search-fu and not really finding anything specifically relating to my question after my search I decided just to post this. In the app I'm working on, the user can print out reports by selecting two dates and

[flexcoders] Re: Finding a date between dates

2008-07-15 Thread bredwards358
in the remote database. - Original Message From: bredwards358 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, July 15, 2008 8:35:36 AM Subject: [flexcoders] Finding a date between dates Sounds like a simple question and easily answered by a search, but considering my

[flexcoders] Re: Dynamically generated dataGrid not showing up in Print View component

2008-07-14 Thread bredwards358
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Try validateNow() at some point. Printing runs before validation so sometimes you have to force validation Ok, update time, I discovered that my dynamic dataGrid generation was

[flexcoders] Dynamically generated dataGrid not showing up in Print View component

2008-07-09 Thread bredwards358
I have a problem which is proving very difficult to place, I am implementing logic to dynamically generate an advanced datagrid and set it as the source to a printAdvancedDataGrid in a component which is the print view of whatever report that needs to be printed. Problem is, while it looks like

[flexcoders] Printing Templates: When you need more than one

2008-07-08 Thread bredwards358
So far in my odyssey to build the printing functionality for the AIR app I'm building, I've run into a dilemma. I have a print view component which holds the meat of what needs to be printed plus the header and footer which is made visible and invisible depending on what page is being printed. The

[flexcoders] Print Preview, figuring out just how to do it.

2008-07-07 Thread bredwards358
Thankfully, the basic printing functionality of Flex was all I needed to print out the very basic looking reports I need for my application. However, another requirement is adding Print Preview functionality. So far in my experimentation I've managed to display what should be on the report by

[flexcoders] Re: Print Preview, figuring out just how to do it.

2008-07-07 Thread bredwards358
PROTECTED] wrote: On Monday 07 Jul 2008, bredwards358 wrote: Now, I am aware of the marvelous looking FlexReport at http://www.kemelyon.com/bts/, however I am at a loss as how to install it so to speak (Meaning I have no idea what files and components I need to copy over in order to use

[flexcoders] Help me sort out my reporting needs...

2008-06-30 Thread bredwards358
I am well aware of the limitations with printing reports in Flex, however considering how far along we are in our project, there's no turning back now and I'm currently researching the best way to implement report printing in the application. Since this is an AIR app, it all needs to be client

[flexcoders] Re: Help me sort out my reporting needs...

2008-06-30 Thread bredwards358
Fair enough, as I said our reporting needs are very simple, just a header and the required data, after downloading AlivePDF and looking at it for a bit I can tell this is the front runner. FlexReport's lack of an install guide and not having as much documentation marked it down in my eyes but I

[flexcoders] Re: Report Formatting

2008-06-27 Thread bredwards358
There is also FlexReport which also looks just as promising http://www.kemelyon.com/bts/ --- In flexcoders@yahoogroups.com, Rick Winscot [EMAIL PROTECTED] wrote: Oh! Oh! http://www.alivepdf.org/ Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL

[flexcoders] Re: Small problem with database delete function

2008-06-25 Thread bredwards358
Okay, problem solved, mismatched with the wrong sql statement and parameters.

[flexcoders] Small problem with database delete function

2008-06-24 Thread bredwards358
I am nearly done implementing database interactivity with the piece of the application I'm working on. One problem remains before the minor stuff which will wait until after all crucial functionality is finished. What's supposed to happen and what actually does happen except for the issue is that

[flexcoders] Passing Values between windows

2008-06-19 Thread bredwards358
In the application I'm currently developing, end users need to log in to utilize it. Also I need to keep track of who is logged in so that I can input that into a local database after certain actions. I've tried using a public variable in a commonly used class, however since an instance of that

[flexcoders] Problem with getting most recently inserted ArrayCollection item

2008-06-18 Thread bredwards358
After fixing an issue regarding where best to put an insert function call in my drag and drop function I now have another issue. It seems that it is simply not seeing the most recently dropped item. For instance, when I drop the very first item, it throws an error saying that 0 (The index of the

[flexcoders] Re: Problem with getting most recently inserted ArrayCollection item

2008-06-18 Thread bredwards358
I've had a thought, would it be possible to add an event listener to well, something that would fire the insert function on dragComplete? If not then perhaps would it be best to call a function which compares the data to already existing data either in the database through select statements or

[flexcoders] Re: Help me understand custom drag/drop events(Solved)

2008-06-17 Thread bredwards358
Okay, I believe my problem is solved, I never did think that after I got my first programming job that I would have moments where I felt like a complete and utter moron sometimes. While experimenting with where to put the placeholder trace statements which stand in for the actual function calls to

[flexcoders] Re: Help me understand custom drag/drop events

2008-06-16 Thread bredwards358
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Why not just set a flag instead of calling preventDefault, then check the flag afterwards. BTW, you shouldn't be dispatching COLLECTION_CHANGE yourself. Best to use itemUpdated when changing quantity. A

[flexcoders] Re: Help me understand custom drag/drop events

2008-06-14 Thread bredwards358
I do want the dragged items inserted into the DP, I just want to add a function call to the end of that which inserts the new row into a local database table. My problem is that the for-loop which checks for duplicate entries and merely prevents the default event and updates a value in the DP

[flexcoders] Re: Need some assistance with dynamic updates done through a loop

2008-06-13 Thread bredwards358
Ok, one thing I'm going to try today is this; essentially I'm going to say, forget that for-loop, just let it update the dataProvider. What I'm going to do is write another function that runs each row of the dp through a filterFunction and checks to see if it is there or not, if it is there, then

[flexcoders] Help me understand custom drag/drop events

2008-06-13 Thread bredwards358
Shortly after posting an update to my current predicament in this topic thread: http://tech.groups.yahoo.com/group/flexcoders/message/116030 and staring at the current logic in my dragDrop event(Shown in above mentioned topic), I realized something. I don't need to do anything else other than

[flexcoders] Re: Help me understand custom drag/drop events

2008-06-13 Thread bredwards358
I'm not sure I get what you're saying but it seems that if I want to alter the default behavior to insert the new row to the database as well as the target dataProvider as it normally does I would probably need a custom DragManager to add that bit. Perhaps I could be phrasing my question wrong,

[flexcoders] Need some assistance with insert, update done in a loop

2008-06-12 Thread bredwards358
In the part of my application that I'm currently working on I'm trying to dynamically update a local database every time a change is made to the dataProvider(ArrayCollection) when a dragDrop action is done. Here's my code so far: --- private function

[flexcoders] Re: Need some assistance with dynamic updates done through a loop

2008-06-12 Thread bredwards358
. I've tried using an else and else if block to enclose the insert placeholder but it is still doing the same thing. Again, any advice and help would be greatly appreciated. --- In flexcoders@yahoogroups.com, bredwards358 [EMAIL PROTECTED] wrote: In the part of my application that I'm currently

[flexcoders] Seeking Advice regarding saving changes

2008-06-10 Thread bredwards358
In the application I am working on, the user can drag and drop items from one datagrid to another. Now regardless of how the user exits the window, the data is always saved. My question is basically, what would be the best strategy for saving these changes. The dataProviders for both grids are

[flexcoders] Re: Seeking Advice regarding saving changes

2008-06-10 Thread bredwards358
Okay, that's a lot of code to take in but thanks that should be very helpful. So far my ideas have been revolving around my second strategy, which I am considering using a modified version of this code for the drag and drop stuff. I only need to figure out the right places to put the functions I

[flexcoders] Re: dragDrop function working, but not properly

2008-06-05 Thread bredwards358
It is unfourtunately, even if it is being set to 0 it keeps incrementing itself along with the growing dataProvider of the dropTarget, I think I may have done something wrong to where it is not seeing the identical values of the duplicate entry and is simply going forward. --- In

[flexcoders] Re: dragDrop function working, but not properly

2008-06-05 Thread bredwards358
I believe I fixed my problem, I think the reason it wasn't seeing the identical value in the array representing the dragged item was because it did not know it's index so I changed this: --- private function dragToOrders(event:DragEvent):void { try { var

[flexcoders] dragDrop function working, but not properly

2008-06-04 Thread bredwards358
I finished a working dragDrop function today, but ran into a bit of a problem, this is what I have so far, my problem is highlighted in the comments private function dragToOrders(event:DragEvent):void { try { var draggedItems:Object = new Object(); draggedItems =

[flexcoders] Re: Questions regarding updating dataProviders after a drag drop

2008-06-03 Thread bredwards358
[EMAIL PROTECTED] wrote: I thought you were dragging Products From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bredwards358 Sent: Monday, June 02, 2008 7:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Questions

[flexcoders] Re: Questions regarding updating dataProviders after a drag drop

2008-06-02 Thread bredwards358
Okay, I kind of get what you're saying, it makes sense however I have some questions to clear things up further, nothing big, just simple things. Check below for the blue text, in the meantime I'll experiment, Thanks a bunch I appreciate it. Brian Ross Edwards, Tech-Connect LLC. --- In

[flexcoders] Re: Questions regarding updating dataProviders after a drag drop

2008-06-02 Thread bredwards358
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bredwards358 Sent: Monday, June 02, 2008 7:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Questions regarding updating dataProviders after a drag drop

[flexcoders] Questions regarding updating dataProviders after a drag drop

2008-05-30 Thread bredwards358
Looking through the posts regarding my search criteria of drap and drop and Array collection, I couldn't find a post which cleared up the task of updating a data provider, in this case, an array collection, after an item is dragged to its datagrid from another. Purely using the default settings(no

[flexcoders] Working with SQL Lite Indexing and how it always starts at '1'

2008-05-29 Thread bredwards358
In the AIR application I'm developing, I'm using a local SQL Lite database, it's been working well, however, after a bit of refactoring, I came across this error: RangeError: Index '1' specified is out of bounds. In this case, '1' is the index of the very first item in the datatable,

[flexcoders] Re: Working with SQL Lite Indexing and how it always starts at '1'

2008-05-29 Thread bredwards358
Okay, I discovered the solution to my problem. All I had to do was just check the length of the dataProvider before doing an insert, if the length of the arraycollection was 0(no entries) then it would amend the insert statement to insert a zero into the primary key column. If the length was

[flexcoders] Re: filterFunction problems being had

2008-05-23 Thread bredwards358
= Website; item.name = Expectal.com; [EMAIL PROTECTED], bredwards358 bredwards358@ wrote: item.url = http://www.expectal.com;; item.desc = Your Professional Flash Photo Gallery with Slideshow and Background Music; item.tags = Flash, Gallery, Slideshow, Music; dpRows.addItem(item); However

[flexcoders] Help me understand how to manipulate dataProviders

2008-05-23 Thread bredwards358
After doing some research which consisted mainly of searching through this forum, I noticed a mantra along the lines of manipulate the dataProvider, not the controls it populates. It makes sense, especially since without directly manipulating the primary key of the very first entry in a database ,

[flexcoders] filterFunction problems being had

2008-05-22 Thread bredwards358
Okay, I'm working on a filter function to sort through information in an ArrayCollection which is filled by the results of a select statement to a database. The actual functionaility is modified ever so slightly from the source I found here:

[flexcoders] Re: Help me understand the datagrid

2008-05-21 Thread bredwards358
Forgive the lateness of my response, but thanks all, I solved my problem, I didn't need to do item editing inside the datagrid at all, I simply needed to just be able to edit an item. I simply made a state of the window which contains a form populated with the necessary information. But what I

[flexcoders] Help me understand the datagrid

2008-05-20 Thread bredwards358
Now, I've been coding in flex for about six or seven weeks now and things seem to be going swimmingly so far, until I now have to climb the brick wall that is trying use more of the functions of the data Grid or actually the advanced data Grid than I was ever used to. Given the sheer number of

[flexcoders] Re: Help me understand the datagrid(Item Renderers and column manupilation)

2008-05-20 Thread bredwards358
Sorry, small bit I forgot, I also have columns which are invisible by default and need to make them visible during runtime, seems like there's no way to directly access the properties of individual columns though I think I'm probably wrong since I'm thinking there's got to be a way to access the

[flexcoders] Re: SQL Lite syntax issue, need something cleared up regarding SELECT

2008-05-19 Thread bredwards358
--- In flexcoders@yahoogroups.com, Marcus Engene [EMAIL PROTECTED] wrote: And then google for sql injection. Already taken care of beforehand, I find to be a bit of an annoyance when the solution to so many problems turn out to be incredibly simple, apparently too simply for me to readily find.

[flexcoders] SQL Lite syntax issue, need something cleared up regarding SELECT

2008-05-16 Thread bredwards358
While working on the login functionality of the application I'm developing, I noticed that SQL seems to be interpereted differently than what I'm used to. Here's my current select statement that I'm using for validation: sqlText = SELECT * FROM Up18Technicians WHERE TechName = + userName + AND

[flexcoders] ComboBox Data Display woes, Getting [object Object] instead of what I need

2008-05-15 Thread bredwards358
The AIR application that I'm currently developing, gets its data from a SQL Lite database and does it through whatever select statement it needs which then puts the results into an array collection variable which is then passed into the dataProvider for the control. So far, its just been data

[flexcoders] Re: ComboBox Data Display woes, Getting [object Object] instead of what I need

2008-05-15 Thread bredwards358
Never mind, I did a bit of messing around and found the solution to be that I simply had to set the labelField property to whatever column header I was binding the box to.

[flexcoders] Re: SQL statement is not finding my table in AIR app

2008-05-13 Thread bredwards358
Never mind, I found the problem , turns out I wasn't referencing the database file when I was opening the connection.

[flexcoders] SQL statement is not finding my table in AIR app

2008-05-12 Thread bredwards358
I've started implementing the bulk of the database logic in our current software project, and while trying to get the select statement to work in populating the datagrid in one window upon creation, I keep running into this error every time the SQL statement tries to execute. It keeps saying that

[flexcoders] Re: Need help finding and fixing SQL Error in AIR App

2008-05-01 Thread bredwards358
That's fine, I again figured something out a short while ago while experimenting with importing the text documents. Turns out you can't have the special characters such as the - or / in the column header, the actual data in the rows beneath them can have those characters. So instead of doing a

[flexcoders] Re: Need help finding and fixing SQL Error in AIR App

2008-04-30 Thread bredwards358
--- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: Nope - nothing to do with the XML. You have a comma missing between :Sheet_Depth and :Unique_Product_Code in your sqlText variable in your insertData function. Cool, thanks for pointing that out as well. I've figured a few

[flexcoders] Need help finding and fixing SQL Error in AIR App

2008-04-29 Thread bredwards358
So, I finish a simple application to turn an XML Document into a SQL Lite table, however, every time I try to run it, I simply get an error message in the error log I set up: [b]Error ID:3115 DetailsError #3115: SQL Error.[/b] As you can see, it's simply not descriptive enough. Going over my

[flexcoders] Re: Need help finding and fixing SQL Error in AIR App

2008-04-29 Thread bredwards358
Here's the Insert statement snippet since it got cut off due to length: private function insertData(node:XMLNode):void {//Quite possibly the biggest SQL statement I've ever done thus far var sqlText:String = INSERT INTO Avery(Original, Product_Code, Cross_Reference,

[flexcoders] Re: Need help finding and fixing SQL Error in AIR App

2008-04-29 Thread bredwards358
--- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: I don't know whether this is your problem but your Orientation field has no type in your create table function. --- In flexcoders@yahoogroups.com, bredwards358 bredwards358@ wrote: Snip Sadly, no, but thanks anyway

[flexcoders] Re: Programming an AIR App to accept input from a PALM device...

2008-04-25 Thread bredwards358
unorthodox, perhaps you could post the core aspects of the VB code and some of us can tell you if it's even feasible and if so, than how to move forward. !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bredwards358 Sent: Wednesday, April 23, 2008 6:21

[flexcoders] Programming an AIR App to accept input from a PALM device...

2008-04-23 Thread bredwards358
As per a suggestion from another member of the forum, I have decided to repost my question with a more descriptive title. Right now I am currently in the midst of designing an Adobe AIR application which is basically a new and improved version of legacy software coded in VB6 (I'm using Flex 3). At

[flexcoders] Hello, and a question...

2008-04-21 Thread bredwards358
Hi, I'm new to this group so I would like to get my introductions out of the way before I ask my question. I've recently begun a project at work which involves an Adobe AIR application coded in Flex 3. It is essentially a totally new version of legacy software which was coded in VB 6. I am quickly

[flexcoders] Re: Hello, and a question...

2008-04-21 Thread bredwards358
app? What happens on the server (not Flex), what on the client(Flex) and how the communication between client ans server is handled? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bredwards358 Sent: Monday, April