Flex Project Help

Ok on my flex app I have a place where they create a new
client with session's, and each client has the ability to buy
different add ons. I'm using a repeater to pull the add ons from
the database then when checked, and submitted it will Insert the
information back to the database. What I have, so far is when you
click the submit button I get no errors, but it doesn't submit
anything. My <cfmail looks like this.
INSERT INTO
glb_order_details
(sessions,order_id,hosting_notification,product_id)
SELECT '1',407,1, id
FROM glb_products
WHERE id IN(0)
As you can see I'm trying to pull the product id from
glb_products, but its choking on that. Here is my cfc query.
<cffunction name="NewSessionTotal" access="remote"
returntype="void">
<cfargument name="sessions" default="" type="String"
required="no">
<cfargument name="order_id" default="" required="no">
<cfargument name="hosting" default="" required="no">
<cfargument name="product_idlist" default=""
required="no">
<cfquery name="SessionTotal" datasource="omnitrac">
INSERT INTO
glb_order_details
(sessions,order_id,hosting_notification,product_id)
SELECT
'#arguments.sessions#',#arguments.order_id#,#IIF(arguments.hosting,DE("1"),DE("0"))#,
id
FROM glb_products
WHERE id IN(#ListAppend(arguments.product_idlist,0)#)
</cfquery>
</cffunction>
And here is my flex app code.
var SelectedSalesProducts:Array=new Array();
var SelectedSalesProductslist:String="";
for (var i:int = 0; i < gsalesproducts.length; i++){
if(fff0
.selected){
SelectedSalesProducts.push(r0.dataProvider.getItemAt(i).id);
this.dataManager.NewSessionTotal(this.nsessiontotal.text,order_id,hosting.selected,Select edSalesProductslist);
I know its the product_id code that cause everything to choke
up, but I been working on this for 4 days and cannot find a
solutions. Any help would be great.

I found what was wrong. Here, is the fix :) in the flex app I
needed to add this line
SelectedSalesProductslist=SelectedSalesProducts.join(",");
I forgot to join my string, and array. Also the biggest thing
I missed was on this line
SelectedSalesProducts.push(r0.dataProvider.getItemAt(i).id);
Instead of id it actually needed to be product_id

Similar Messages

  • Help Configuring PHP Server with new Flex project.

    Hi,
    I'm curious if someone can help me with a frustrating problem.
    While creating a new flex project, I can't seem to validate the configuration of the php server. I keep getting the message: "Cannot access the web server. The server may not be running, or the web root folder or root URL may be invalid."
    I'm running MySQL, PHP and Apache 2.2. These program have worked indepentally without flex, so I know the program isn't with the install of the stack.
    For my web root I entered: "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs" the location where I installed Apache
    And for root url I'm using "http://localhost"
    The other wierd part of this is that even though Flex would not validate this connection, I went ahead and started the project anyway and made a succesful connection to mysql, obviously though when I tried to launch the project it couldn't connect to the server.
    Any suggestions would be much appreciated because flex is pretty much useless to me unless I can figure out how to connect with php and mysql.
    Steve

    hey ya
    you were responding to like a real old post
    what exactly is your problem perhaps i can help

  • Help with project/folder setup for new flex project??

    Hello all,
      I need help deciding how to set up my projects for a new flex application we're developing.
    We have an in-house custom java/jsp "framework". This framework has JSP pages for administering applications that are built using this framework. One part of the framework generates all java base and model objects from our database tables to be used in the new application.
    The new application will have a back-office part (Adobe AIR) and a web facing part (Adobe Flex).  Both the AIR and Flex parts of the application need to access the java model objects via AS3 classes (I believe I'll do this using remoteobject).
    My questions are as follows:
    After I create the base and model AS3 classes that remoteobject with the java classes can I put these in a common library project so both my AIR and Flex app can access common AS3 code.  I feel I should do this to keep from duplicating code by copying the AS3 classes in both my AIR and Flex projects.  Can you give my any examples or links to information on how to do this??
    I plan to also create a common java project for all base and model objects generated from my db tables so that the common library project with AS3 classes could remoteobject interface with the java classes in the java project. I would like to keep all of my business logic in the java model classes.  Does this seem appropriate for the projects/setup listed above?
    Here are the projects I think I need in Flex Builder.
    FlexWebApp
    AIRBackOfficeApp
    JavaApp - Common
    AS3FlexLibraryApp - Common
    The FlexWebApp and AIRBackOfficeApp will reference the AS3FlexLibraryApp and the AS3FlexLibraryApp will remoteobject to the java classes in JavaApp.
    Any help or direction with this is greatly appreciated.
    Thanks,
    Whitney

    Hi,
    Please post only once (do not post same thread across multiple forums).
    help with Financials setup from very basics...
    Re: help with Financials setup from very basics...
    Regards,
    Hussein

  • Help me with a flex project... how do i use it ?!?

    i have this entire project and i don't know how to use it... what should i do with it ?!?
    Any help ?

    In Flex Builder menubar:
    File - Import - Flex Project - Import project from - Archive file      and navigate to the file.
    If this post answers your question or helps, please mark it as such.

  • Is there an emailing function I can use in Flex? Help this poor noob.

    My boss just gave me a Flex project that displays a database worth of data in the browser. After making a selection (a selection counts as picking any number of columns or rows), a user can right click on the table where the selection was made and click the "Email Selected" menu option on the right click menu. This has all been done for me.
    My job is to take all the selected rows (irrespective of what columns have been selected) and take their "E-mail" field (i.e.,  the address that is in the column called "Email") and send an email to all these addresses (populate the BCC field with the email addresses), I guess in their default email client. Right now all that happens is a pop up comes up (similar to the JavaScript Alert) that says "Lets email these guys!" and I am supposed to make it a mailto popup. Any ideas? I am a complete novice in every respect to Flex and Flash programming, so saying I am in over my head right now is an understatement.
    I would really, really, really appreciate any help with this.
    (If you need more info on what it is that I am doing, please don't hesistate to ask for a clarification)
    EDIT #1: After some researching it turns out I am working with a datagrid and I just tried using the selectedIndex property of the datagrid that I am working off, but it only returns the row of the first selected row of the multirow selection. How would I know the row number of the first and last row selected?

    There is a tutorial here on using APA format with Microsoft Word on a Mac:
    http://www.youtube.com/watch?v=IAhHWNcU3vM

  • FLEX Builder Pro 3 New Flex Project cannot configure J2EE

    I have FLEX Builder Pro 3 installed on a Windows XP machine.  LiveCycle Data Services is installed (with Tomcat) on a Linux RHEL 5 machine.  When trying to create a new FLEX project and configuring a J2EE server am very confused on what to put in Root Folder and Root URL.  I have tried various paths on the Root Folder (with a drive mapped through windows and also with just using the servername) and keep getting the error message:
    Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
    I've located the flex-confing file in the tomcat5\webapps\ROOT\WEB-INF directory, but still get the error.
    Please any help would be greatly appreciated.

    Are your new classes referenced from the old code? Mxmlc employs a questionable form of "as-needed" linking, so classes that are not referenced from the main application are not even compiled. This referencing requirement is recursive; that is, any classes that are to be included have to be referenced from the main application, or from classes referenced by the main application, or from classes referenced by classes referenced by the main application, and so on. But if your new classes are not referenced at all from the old code, they will be ignored.

  • Create library (swc) in Flash Builder 4 / Flex Project (not in a Library Project)

    I want to create a swc file to use it in an other project. I can't use the Flash 4 Library Project to do this, because in a Library Project I
    haven't the possibility to use data/services, which I need for my library. After click on "data / services" I get the message "This view is only for Flex-Projects available".
    Has anyone a solution for my problem?
    Thanks for your help.

    Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
    However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
    So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
    Does this help?
    -Sunil

  • Flex Project ; Compile Locally

    When I set up a Flex project in Flex Buiilder 2 , and select
    Flex Data Services, Compile Application locally in Flex Builder ,
    then select root folder, root URL and context root, the application
    fails to compile locally . I get an error in the problems section
    stating , "Unexpected attribute 'url' found in 'endpoint' from
    file: services-config.xml" . I am using LiveCycle Data Services ES.
    Anyone having the same issue ? My co-worker was able to do a
    similar set-up successfully using FDS2 , so I'm wondering if there
    is an issue with LCDS ?
    Thanks, Steve

    sjlib,
    I was able to resolve my same error by updating the Flex SDK
    2. I found some information to do this here:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=640&threadid =1253123&highlight_key=y&keyword1=flex%20Builder
    I followed the directions posted on 03/29/2007 by
    "nodogbite".
    After updating the Flex SDK, I removed my projects from the
    workspace & the J2EE DIR and rebuilt them from the source path.
    After doing this I no longer got the "Unexpected attribute 'url'
    found in 'endpoint' from file: services-config.xml" when I
    recompiled.
    I hope this helps, good luck!
    -Gavin

  • Cant install air-flex projects

    Hello, my AIR applications cant be installed in my system
    because Windows do not recognizes files with .air extension.
    Do you know if is needed additional software (like Adobe AIR
    Runtime) to install my air based flex projects? I thought that the
    installers detected if you have or not the necessary libraries to
    run the file.
    Regards

    http://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_1.html
    Uops!

  • How can I load a youtube stream in a video AIR flex project?

    I'm trying to implemente OSMF youtube plugin into a flex project, but I can.
    There is one sample about it? I need to see the code of one YouTubeElement playing to understand how I can use it. Can anyone help me?

    even i faced this problem..
    the image remain static though it has animation,
    well the beat way to put animation in flex is to run a .flv
    video.. and show the kind of animation u want

  • Flex Project with Java

    Hi,
    I want to create a Flex Project which uses Java EE Server.
    This is my requirement...I have a login Page, Register Page...when I Register the data should be sent to Database Table. when I login with existing username and password, It should validate from the Database and then a new page opens up which shows any info.
    Can anybody tell me, how this can be achieved??
    Thanks for the Help...

    You'll probably use the Flex RemoteObject to connect to your J2EE app.
    http://livedocs.adobe.com/flex/3/html/help.html?content=transitions_2.html
    http://www.summa-tech.com/blog/2009/03/05/flex-remote-object-services-blazeds/
    http://learn.adobe.com/wiki/display/Flex/Creating+Flex+Builder+Projects+that+Use+Server+Te chnologies
    http://livedocs.adobe.com/flex/3/html/help.html?content=projects_3.html
    If this post answered your question or helped, please mark it as such.

  • Shifting Flex project from Flex SDK 3.5 to Flex SDK 4.0

    Hi,
    I am currently working on a Flex project using Flex 3.5 SDK. I want to shift my project to Flex 4.0 SDK.
    When I changed the project settings to use SDK 4.0, I got lot of unknown location errors.
    1) 1046: Type was not found or was not a compile-time constant: ImportExportConfiguration
    2) 1061: Call to a possibly undefined method setSelection through a reference with static type mx.core.ITextInput
    While the same code of flex was working satisfactorily in Flex SDK 3.5.
    Please tell, how can I get rid of these error and successfully shift my project to Flex SDK 4.0.
    Regards,
    Nitika Agarwal

    Hi,
    While I am migrating my project from flex 3.5 to Flex 4, I have to keep the Flex 3 compatibility mode off and theme as Flex 4 default theme that is Spark.
    Then while i compile I get foloowing errors:
    The   style 'backgroundAlpha' is only supported by type 'mx.controls.TextInput'   with the theme(s) 'halo'.
    The style 'backgroundColor'   is only supported by type 'com.app.model.WLSMSTextArea' with the theme(s)   'halo'.
    The style 'borderColor' is   only supported by type 'mx.controls.ComboBox' with the theme(s) 'halo'.
    The style 'borderThickness'   is only supported by type 'mx.containers.Canvas' with the theme(s) 'halo'.
    The style 'cornerRadius' is   only supported by type 'com.app.model.WLTextInput' with the theme(s) 'halo'.
    The style 'cornerRadius' is   only supported by type 'mx.controls.TextArea' with the theme(s) 'halo'.
    The style 'fillAlphas' is   only supported by type 'mx.controls.Button' with the theme(s) 'halo'.
    The style 'fillAlphas' is   only supported by type 'mx.controls.ComboBox' with the theme(s) 'halo'.
    The style 'fillColors' is   only supported by type 'mx.controls.Button' with the theme(s) 'halo'.
    The style 'fillColors' is   only supported by type 'mx.controls.ComboBox' with the theme(s) 'halo'.
    The style 'themeColor' is   only supported by type 'com.app.model.WLSMSTextArea' with the theme(s)   'halo'.
    The style 'themeColor' is   only supported by type 'com.app.model.WLTextInput' with the theme(s) 'halo'.
    What is the resolution for these, as for most of the controls there is no substitute to these properties. If I do not want ot change my <mx:> controls to <s:>controls because it will hamper my UI look and field, which I cannot afford to do.
    I have added following lines at the beginning of my stylesheet (*.CSS) as well:
         @namespace "http://www.adobe.com/2006/mxml";
        @namespace "library://ns.adobe.com/flex/mx";
        @namespace s "library://ns.adobe.com/flex/spark";
         Button { .... }
         ........ / * other styles */
    Please help me on this.
    Regards,
    Nitika

  • "Import Flex Project" Menu Disappear [FB 4.6]

    Hi All,
    I am not sure what's going wrong here but I'm not able to see "Import Flex Project" menu item under File Menu.
    Can any one knows how to get it back ?
    Thanks
    Mac

    I'm having the exact same issue as he described. This doesn't help at all.
    I am using a fresh install of Flash Builder 4.6.
    I have tried closing and re-opening the project, and cannot get the design view to work.
    I have tried creating a completely new project, it comes up bad.
    **Edit**
    I think the problem has to do with the workspace. Most of my projects are flex 4.5. I started using an old flex 4.5 workspace that I have been using for several months. It worked well for a few hours of development, and then the design view started messing up.
    I created a fresh new workspace, and imported the projects into the workspace by using file->import flash builder project->Folder, and manually selected the projects I needed.
    This method worked for me and I am good to go.
    Another point of note, is that my workspace was in my dropbox folder, which may have had some tampering going on in the background, I doubt it, but that could also have been the issue.
    Good luck guys, hope this helps.
    Message was edited by: darkscrypt

  • Flex Project Exports - Adobe SWC Distribution

    Hi,
    I'm having a difficult time trying to find any information regarding this so I would be really grateful for any help here. Let's say I have created an ActionScript project in Flex Builder -- I am not using a Flex SDK, it has been removed from the project's library path -- instead I have added one of the playerglobal SWC files from Flash CS4 to the project. This essentially allows me to program within Flex Builder without the overhead of the Flex Framework - which I never use.
    Now, if I wanted to export that project (as a Flex Builder project) when it was completed and make it available via a website, would I run into any legal problems if the playerglobal SWC was exported/distributed along with the rest of the project files - keeping in mind that the project could only be imported/re-published using Flex Builder?
    Thanks in advance for any info.

    Hi si-robertson, I understand what your dilemma is but I'm not sure I follow why you have your development environment setup like this. You can create pure ActionScript projects from within Flex Builder and these don't use the Flex framework at all - obviously you can't use MXML in these projects .
    While AcionScript projects in Flex Builder might use the same compilers as a Flex project they don't compile in the Flex framework classes; so I'm somewhat confused why you'd even need the playerglobal.swc from Flash CS4 in your project as it'd already have a complementary version of it available?
    If on the other hand you want to access Flash Player 10 functionality, again if you have the Flex SDK 3.2 or greater you can create content via the pure ActionScript projects without the overhead of the Flex framework.
    I know this isn't exactly what you were asking, but in a round-about way it would negate your concern about distributing your project if it contained the playerglobal.swc from Flash CS4 as you wouldn't need to.
    HTH
    regards
    m
    Mike Jones
    FlashGen.Com
    Adobe Community Expert For Flex
    Adobe Certified Expert for Flex 3 & AIR
    w./ www.flashgen.com
    b./ blog.flashgen.com
    Catch Me At
    Scotch on the Rocks London '09
    Flash on the Beach Brighton '09
    Author Of Developing Flex Components
    Addison-Wesley (Q4 / 2009)

  • Add a TextArea to a Sprite, in a Flex project

    Hi guys!
    I'm fighting with this problem and i can't get the solution.
    I've a Flex project (in FB 3.0.1) with a Sprite in which i do some drawings (coded in AS3). The Sprite is wrapped in UIComponent, that is contained in a WindowedApplication.
    Now, i want to display a TextArea in the Sprite. As long as i understood i can't add an mx.controls.Textarea to Sprite (i tried it and nothing is displayed), but i can use fl.controls.TextArea.
    i tried to import fl.controls.TextArea but FB can't find the package. How can i include it in build path ? Where i can find the right SWC ?
    Before you suggest me to recompile library sources i tell you i don't own Flash CS and i don't know where to find sources.
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/TextArea.html says Runtime AIR 1.0 and Player 9.0.2 . Why it's not included in FB 3 ??
    Thanks

    yes you can add TextArea to Sprite
    set the x,y, width and height of the TextArea object and added to Sprite using
    spriteObj.addChild(textareaObj);
    If this post answers your question or helps. Please mark it as such

Maybe you are looking for