Unable to create records in database using PHP Data Service

Hello, I've been stuck on this for a few days and search up and down for this on the net, no response I've found has worked, so I come to you...
Here are the steps I've taken, I think it's pretty standard
1. I have a macbook pro running osx 10.7.3
2. I installed MAMP all default (I've acually reinstalled this because someone suggested this might fix it)
3. Thru phpMyAdmin I created a database called my_test
4. In that database I created a table, this is the export of that table: (I've also tried this with InnoDB which is the default)
CREATE TABLE `customer` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `email` varchar(150) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
5. I created a new Flx Project (Running Flash Builder 4.5.1 Premium)
     Project Name: PHPTest
     Application Type: Desktop (Although I've done the same thing with Web and got the same results)
     >> Next
     Application Server Type: PHP
     Web Root: /Applications/MAMP/htdocs/
     URL Root: http://localhost:8888/
     Clicked 'Validate Configuration' and that worked
     Output Folder: /Applications/MAMP/htdocs/PHPService (default by Flash Builder)
     >> Finished
6. On the Data/Services tab on the bottom I click 'Connect to Data/Service...'
     Select 'PHP'
     >> Next
     Select 'Click here to generate a sample'
     Select 'Generate from database' radio button
     Username: root
     Password: root (default for MAMP)
     Host name: localhost
     Server port: 8889 (default for MAMP MySQL port, the HTTP port default is 8888 which in both cases seem to work but every video I've seen that uses MAMP on youtube uses 8889)
     Database: my_test
     Click 'Test Connection' (works)
     Table: customer
     Primary Key: id (this field is greyed out and Flash Builder selects 'id' which it figures out from the SQL table)
     >> Click OK
7. Then if I don't have the Zend Framework folder in my /Applications/MAMP/htdocs/ folder it tells me its going to create that and I say alright. Then Flash Builder says stuff about how this is really only for testing and not production server ready and I say alright.
8. Then it takes me back to the Form from Step 6 when I get the chance to select 'Click here to generate a sample'
     These fields are now filled with this data automaticly:
     PHP Class: /Applications/MAMP/htdocs/PHPTest/services/CustomerService.php
     Service name: CustomerService
     Service package: services.customerservice
     Data type package: valueObjects
     >> Click Next (shows all the functions that will be now availible)
     >> Click Finished (End of the forms and it opens Dreamweaver to the php file it created CustomerService.php which I have no need to edit so I close that down)
9. Back in Flash Builder I switch to design view and drag a datagrid onto the big white area in the middle, whatever that is called.
10. Then below in Data/Services tab on the bottom I click drag the function 'GetAllCustomer' on top of the datagrid.
     I say yes to rebound and click ok and the view of the datagrid is updated with the colums from the 'customer' table in mySQL.
(Now let me say that when I hit save and compile this, if I actually had records in this table that I insert thru phpMyAdmin, this does show in the datagrid. So for the whole CRUD thing I am able to get the R which is Read)
11. Now going back to the design view in Flash Builder I will create a form to create records in the table... (I guess this isn't really a step)
12. In the Data/Service tab on the bottom I select 'createCustomer' function and then there is an icon called 'Generate Form' that looks like a white piece of paper with a gear on the bottom of it.
13. This opens up a new form and since I don't have a crazy bunch of fields in my table I just click Finished (If you click next you can specify which fields you want to exclude from the form but this time I don't need to)
14. This actually creates 2 forms if you look at the code, the second just shows the return type from when you click 'CreateCustomer' button on the first form. Because they overlap in design view I drag the form out of the way so you can see the input form, the return form, and the datagrid
15. Then I save and compile...
(Also if your actually reading this I didn't remove the id form field, I get the same result either way, but if you do remove the form field in the code/design you also have to update the button function to not deal with the id before it gets sent off to the php page since in this case the MySQL table is set to auto_increment the id, sorry this doesn't make much sence but this little area doesn't matter much either way)
16. Now fill in whatever data you want for name and email, try differnt numbers in the id field like 0, nothing, 1, 1000 and click 'CreateCustomer'
(For me nothing happens, no return is put in the return field, no error pops up and the datagrid is not updated with the new record, also going over to phpMyAdmin and checking out the table browse doesn't show any changes either, I know the button is calling the function because if I add a state change in that function it changes, it would seem that the line:
createCustomerResult.token = customerService.createCustomer(customer2); doesn't do anything)
So any idea what is wrong here, I'm convenced it's something stupid easy simple I just can't see it.

In case you need more info, here is a code dump on a mxml project that has this problem:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                       xmlns:s="library://ns.adobe.com/flex/spark"
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       xmlns:customerservice="services.customerservice.*"
                       xmlns:valueObjects="valueObjects.*"
                       currentState="State1">
    <fx:Script>
        <![CDATA[
            import mx.controls.Alert;
            import mx.events.FlexEvent;
            protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                getAllCustomerResult.token = customerService.getAllCustomer();
            protected function button_clickHandler(event:MouseEvent):void
                var customer2:Customer = new Customer();
                customer2.id = parseInt(idTextInput.text);
                customer2.name = nameTextInput.text;
                customer2.email = emailTextInput.text;
                currentState = "Test";
                createCustomerResult.token = customerService.createCustomer(customer2);
        ]]>
    </fx:Script>
    <s:states>
        <s:State name="State1"/>
        <s:State name="Test"/>
    </s:states>
    <fx:Declarations>
        <s:CallResponder id="getAllCustomerResult"/>
        <customerservice:CustomerService id="customerService"
                                         fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                                         showBusyCursor="true"/>
        <valueObjects:Customer id="customer"/>
        <s:CallResponder id="createCustomerResult"/>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:DataGrid id="dataGrid" includeIn="State1" x="330" y="10" width="392"
                creationComplete="dataGrid_creationCompleteHandler(event)" requestedRowCount="4">
        <s:columns>
            <s:ArrayList>
                <s:GridColumn dataField="id" headerText="id"></s:GridColumn>
                <s:GridColumn dataField="name" headerText="name"></s:GridColumn>
                <s:GridColumn dataField="email" headerText="email"></s:GridColumn>
            </s:ArrayList>
        </s:columns>
        <s:typicalItem>
            <fx:Object id="id1" email="email1" name="name1"></fx:Object>
        </s:typicalItem>
        <s:AsyncListView list="{getAllCustomerResult.lastResult}"/>
    </s:DataGrid>
    <s:Form includeIn="State1" defaultButton="{button}">
        <s:FormItem label="Id">
            <s:TextInput id="idTextInput" text="{customer.id}"/>
        </s:FormItem>
        <s:FormItem label="Name">
            <s:TextInput id="nameTextInput" text="{customer.name}"/>
        </s:FormItem>
        <s:FormItem label="Email">
            <s:TextInput id="emailTextInput" text="{customer.email}"/>
        </s:FormItem>
        <s:Button id="button" label="CreateCustomer" click="button_clickHandler(event)"/>
    </s:Form>
    <s:Form includeIn="State1" x="0" y="204">
        <s:FormItem label="CreateCustomer">
            <s:TextInput id="createCustomerTextInput" text="{createCustomerResult.lastResult as int}"/>
        </s:FormItem>
    </s:Form>
</s:WindowedApplication>

Similar Messages

  • Using PHP Data Services to create an object and accessing that objects data in an unbound way in AS

    Hello,
    I've been able to use the php data services and bind the results of a function to a component. However I am having a hard time figuring out the syntax to use the data services to create an object out of the results, and then use that object as an array of filenames to provide the current index of the filename to a new sound object.
    My problem is obviously in not being able to figure out the specific syntax, I have declared the service and and object of the services returned type and in the creationComplete() function I have assigned object.token = service.getData();
    I've tried various ways of then pulling that data out of the object, with no success.
    Can someone point me in the right direction?
    This code probably looks horrible because it doesn't work yet.
    - Joel
                import flash.media.Sound;
                import flash.media.SoundChannel;
                import mx.controls.Alert;
                var playing:Sound = new Sound();
                var channel:SoundChannel = new SoundChannel();
                var sndIndex:int=0;
                var skpTr:String;
                public function init():void{
                 mp3Array.token = mp3service.getData();
                 currentTrack(mp3Array.lastResult.filename); 
                     trace(mp3Array.lastResult.filename[sndIndex]);
                public function currentTrack(t:String):void{
                    playing = new Sound();
                    playing.load(new URLRequest("mp3/" +t));
                public function skip():void{
                    stop();
                    if (sndIndex != mp3Array.lastResult.length-1){
                        sndIndex++;
                        var skipTr:String=mp3Array.lastResult.filename[sndIndex].data;
                        currentTrack(skipTr);
                        play();
                    } else {
                        sndIndex=0;
                        skipTr=mp3Array.lastResult.filename[sndIndex].data;
                        currentTrack(skipTr);
                        play();
                public function stop():void{
                    channel.stop();
                public function play():void{
                    channel = playing.play();
        <fx:Declarations>
            <s:CallResponder id="mp3Array"/>
            <mp3services:Mp3Service id="mp3service" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>

    Hello Joel;
    In retrieving your data - what is your php returning to FB, an object, object array, an array?  Either way, I have a brief example below that an object(s) is being returned.  Pull the data from the lastResult in a ResultEvent.  The object instantiated in the resultEvent will contain your data and you can do what you want from there. 
    Also, I always use Network Monitor to see what data (if any) is being returned from the server, you can also see how it is being sent back.
    John
    private function init():void
         mp3Array.token = mp3service.getData();
         mp3Array.addEventListener(FaultEvent.FAULT, faultHandler);
         mp3Array.addEventListener(ResultEvent.RESULT, mp3Array_resultHandler);
    protected function faultHandler(event:FaultEvent):void
         Alert.show("There was a fault error!" + event.message, "Fault Error", Alert.OK);
    protected function mp3Array_resultHandler(event:ResultEvent):void
         // Not sure if your service is sending back an object or an array or ?
        var info:Object = mp3Array.lastResult;
         doSomeFunction(info)
    protected function doSomeFunction(data:Object):void
         trace(info.filename);

  • How to create php login in flash builder 4 using php data service

    I have seen the tutorials for creating a php login authentication using HTTP service in flex 3 It uses genrating xml and reading it . But i want to know how to do that with the help of php services in FB4 . I'm a newbie so please any kind of help would be appriciated as 'm not able to get any flex developer in nagpur ....

    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

  • I need to know how I will create a dynamic website using php and mysql

    I need to know how will I create a dynamic website using php and mysql that people could have the abilities of registering in the website, and modify their profile where they can add their pictures and everything. apart from that, they should have the ability to search about other member. hope to here more from you.

    If you are a right-brained creative, and have no previous experience or propensity to be able to understand coding and database "stuff", and/or if your time can be better spent on other skills, I recommend you save your sanity and hire a developer... or at least the first time around. I have been attempting to grasp this for years... and have a library of marked up books to prove my efforts, all while trying to keep up with an ongoing client base that is always cramped. It's a wonder I still have my sanity... then again, I might not be the best person to determine that. Others might question it.
    That said, I still plan to master php... one of these days.

  • Populate Livecycle PDF from mySQL database using PHP

    I'm trying to set up a database of loan agreements, where users will submit a form through Acrobat and their information will be stored in a mySQL database. Later, they can go back and download the PDF, which will be repopulated with their data in the mySQL db.
    I made the form in Livecycle Designer and submit the information through HTTP POST. I can easily get the information from the form into the database...my only problem is getting that information back out into the PDF.
    What would allow me to write back to the PDF, preferably using PHP? What kind of syntax would that require?
    Thanks!

    I have a vital form that clients fill out, which is passed to many people in the company along the workflow. The form is a Planner and we have in the following PDF, Word Doc..
    Well before, the Planner.pdf was originally created in Word, since most people have access to Word.. but evolved to a PDF form created from the Word Doc via Adobe LiveCycle Designer 8.0 w/ User Rights enabled so that the form could be filled out and saved using Adobe Reader.. which was a step better than Word.. being that it is free. But this needed to be easier and more to the point b/c some clients don't particularly like installing the latest version of Reader, even if you provide them the link. Nor do they like saving the form, filling the form, and attaching the form to send back.
    My goal is to have the client fill an HTML version of the form, submit and be done with it, but everyone in the workflow be able to easily receive the filled Planner as a PDF form.
    So some months ago I ran into this post Chris Trip, "Populate Livecycle PDF from mySQL database using PHP" #8, 22 Sep 2007 4:37 pm
    which uses the command line Win32 pdftk.exe to merge an FDF file into an existing PDF on the remote server, and serve this to whoever.
    My problem was with shared hosting and having the ability to use the Win32 pdftk.exe along with PHP which is predominantly used on Linux boxes. And we used a Linux box.
    so i created the following unorthodox method, which a client fills the HTML version of the Planner, all field values are INSERTED into a table in MySQL DB, I and all filled planners that have been filled by clients to date can be viewed from a repository page where an XML file is served up of the corresponding client, but someone would have to have Acrobat Professional, to import the form data from the XML file into a blank form.. altoughh this is simple for me.. I have the PHP file already created so that when a Planner is filled and client submits. >> the an email is sent to me with a table row from the repository of the client name, #, email, and a link to d-load the XML file,
    But I also have the PHP files created so that the Planner can be sent to by email to various people in the workflow with certain fileds ommitted they they do not need to see, but instead of the XML file beiong served up i need the filled PDF Planner to be served.
    I can do this locally with ease on a testing server, but I am currently trying to use another host that uses cross-platform compatibility so i can use PHP and the pdftk.exe to achieve this, as that is why I am having to serve up an XML file b/c we use a Linux server for our website, and cant execute the exe.
    Now that I am testing the other server (cross-platform host), just to use them to do the PDF handling (and it's only $5 per month) I am having problems with getting READ, WRITE, EXECUTE permissions..
    Si guess a good question to ask is can PHP do the same procedure as the pdftk.exe, and i can eleminate it.
    or how in the heck can i get this data from the DB into a blank PDF form, like i have described??
    here are some link to reference
    Populating a LiveCycle PDF with PHP and MySQL
    http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL
    HTML form that passed data into a PDF
    http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsUsingHTML/index.htm l
    and an example
    http://accesspdf.com/html_pdf_form/

  • Error while creating physical standby database using Oracle Grid 10.2.0.5

    Hi All,
    I am setting up data guard using oracle grid.
    Primary database version: - 10.2.0.4
    Standby database version: - 10.2.0.4
    Primary OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    Standby OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    I am creating physical standby database using EM. But it is getting failed with error message in sqlnet.ora file
    Fatal NI connect error 12533, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=)(CONNECT_DATA=(SERVICE_NAME=INPRDSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=indb50.oii.com)(USER=oracle))))
      VERSION INFORMATION:
            TNS for Linux: Version 10.2.0.4.0 - Production
            TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.4.0 - Production
      Time: 17-AUG-2010 02:40:07
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12533
        TNS-12533: TNS:illegal ADDRESS parameters
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0As we can see, address_list is empty.
    Can anyone suggest what could be the reason behind this?

    Dear user13295317,
    Here is the error explanation;
    Oracle Error :: TNS-12533
    TNS:illegal ADDRESS parameters
    Cause
    An illegal set of protocol adapter parameters was specified.
    In some cases, this error is returned when a connection cannot be made to the protocol transport.
    Action
    Verify that the destination can be reached using the specified protocol.
    Check the parameters within the ADDRESS section of TNSNAMES.ORA.
    Legal ADDRESS parameter formats may be found in the Oracle operating system specific documentation for your platform.
    Protocols that resolve names at the transport layer (such as DECnet object names) are vulnerable to this error if not properly configured or names are misspelled.Hope That Helps.
    Ogan

  • Creating a new database using an MDF file

    My database saves as MDF. I want to know what are the steps to restore or create a new database using a MDF file? I tried to restore as usual but it shows an error. Please help.

    An MDF file isn’t a backup file isn’t the main data file (or master data file depending on who you ask) hence the file extension MDF. You can attach the MDF to the database by right clicking on the databases folder in Enterprise Manager (SQL 2000) or Management
    Studio (SQL 2005) then selecting all tasks and then Attach Database. When you do this you will get an error about the log file missing. This shouldn’t matter as SQL Server will simply create a new log file for you. This will only work if the SQL Server was
    stopped when you copied the MDF file from the old SQL Server. If you copied the file while the SQL Server was running this file probably will not attach either and you will need to get a valid backup of the database.
    Download help tool for sql database - SQL Server Restore Toolbox.
    http://www.sqlserver.restoretools.com/
    You can read up more on SQL Server here.
    http://www.filerepairforum.com/forum/microsoft/microsoft-aa/sql-server/498-creating-a-new-database-using-an- mdf-file?_=1416149856104

  • Create Records through OData using Jquery

    Hi All,
    I have created a OData Service in SAP ECC system in format
    http://hostname:portno/sap/opu/odata/sap/Z_PORDER_SRV/PurchaseOrderHeaderCollection
    I am trying to create a record from front end using JQuery.   I am able to retrieve all the records, but creation of records using Method "POST" fails.
    For creating records, using the method "GET", i fetch the token "X-CSRF-Token" and then pass the token to the "POST" method.
    I am getting an Exception "No Handler for Data" error is coming.   I am accessing the OData Service using the datajs framework.
    (datajs-1.1.1.min.js).
    Please help me in resolving this issue.
    Thanks,
    Divya

    Thanks for the reply Jamie.
    Code:
    OData.request({
                   "http://host:port/sap/opu/odata/sap/Z_PORDER_SRV/PurchaseOrderHeaderCollection",     
                    method : "GET",
                    user: Customer_Username, 
                    password: Customer_Password,
                    headers :
                           "X-Requested-With" : "XMLHttpRequest",
                            "Content-Type" : "application/XML",
                           "DataServiceVersion" : "2.0",
                           "X-CSRF-Token" : "Fetch"
              function(data, response)
                            var header_xcsrf_token = response.headers['x-csrf-token'];
                            OData.request(
                                    requestUri :    "http://host:portno/sap/opu/odata/sap/Z_PORDER_SRV/PurchaseOrderHeaderCollection",                     
                                    method : "POST",                 
                                    user: Customer_Username, 
                                    password: Customer_Password, 
                                    headers :
                                           "X-Requested-With" : "XMLHttpRequest",
                                          "Content-Type" : "application/XML",
                                          "DataServiceVersion" : "2.0",                      
                                          "X-CSRF-Token" : header_xcsrf_token
                                  data: 
                                     PONumber:"4500000091",
                                     CompanyCode:"TVSC",
                                     PurchaseDocCategory:"F",
                                     PurchaseDocType:"NB",
                                     PurchaseDocStatus:"9", 
                                     CreatedBy: "", 
                                     VendorAccountNumber:"V1",
                                     PurchaseOrganization:"PO01",
                                     PurchaseOrgGroup:"101",                      
                                     TotalValueAtRelase:"0.00",
                                      POItem: "00010",
                                      Material:"",
                                      MaterialNumber: "000000000000000011",
                                      Plant: "PL01",
                                      MaterialGroup: "01",
                                      TargetQuantity: "0.000",
                                      Quantity: "5.000",
                                      Unit: "ST",
                                      OrderPriceUnit:"ST",
                                      NetPrice: "10.0000",
                                      PriceUnit:1,
                                      GrossValue:"0.0000",
                                      NetValue:"0.0000",
                                      NetWeight:"0.000",
                                      WeightUnit:"",
                                     MaterialType:"",
                                     PurchaseOrderHeaderPONumber:"",
                                     PurchaseOrderHeaderPONumber1:""
                      function(data,response)
                           alert('Success. Created New Record');
                      function(err1)
                          alert('Error in Create Record...'+err1.message);
                     function(err)
                            alert('error....'+err.message);
    Output
    I get an error message "Error in Create Record. "No Handler for Data".
    I tried entering the header  details alone and also by entering the line items. Still the same error is thrown.
    Please Help.
    Thanks,
    Divya

  • Create a cloud database using an external tools of a CRM?

    I would like to create a cloud database using an external tools of a CRM . To do this, I have to configure my TNS name with all the cloud database information’s also with the port.
    Is the cloud service allows this ?
    Maurice.

    Hi Maurice -
    No SQL*Net connections are allowed for the Database Cloud Service.  This will be possible with the upcoming Database as a Service offering.
    Hope this helps.
    - Rick Greenwald

  • LSMW-unable to "create recording"

    Hi All,
    In "Create Recording" step no Batch Input data found when clicking the 'Default All' Button(i.e not getting defaulted)
    Please help.
    Regards,

    Hi,
    Our requirement is to creat LSMW for  Z report of pension amount for last 03 years.
    Attached is the sample txt file (02 nos) for uploading
    please guide/confirm, for correct txt file to be uploaded.
    PERNR
    YEAR 1
    YEAR 2
    YEAR 3
    SALARY1
    SALARY2
    SALARY3
    102333
    2011
    2012
    2013
    12345
    23456
    34567
    203456
    2011
    2012
    2013
    25643
    12356
    25631
    PERNR
    PERNR
    PERNR
    YEAR 1
    YEAR 2
    YEAR 3
    SALARY1
    SALARY2
    SALARY3
    102333
    102333
    102333
    2011
    2012
    2013
    12345
    23456
    34567
    203456
    203456
    203456
    2011
    2012
    2013
    25643
    12356
    25631
    Regards,

  • Populate ComboBox from database - NOT using Flex Data Services

    Hi there,
    We are using CF with Flex but are not using the Flex Data
    Service. I'm very much a newb and I'm having trouble finding any
    information on how to populate controles from a database without
    using Flex Data Service. Any help would be greatly appreciated.
    First I have a page... JobSearch.mxml that contains a combo
    box that I want to populate with the job_id and job_title from a
    MSSQL database.
    In Flex in the RDS DataView I used the "Create CFC" Wizard
    which generated "job.cfc" and "jobGateway.cfc". It also generated
    "job.as".
    The CF Function that selects the data appears to be defaulted
    and called "load" and the .as function is called simply "job".
    So, that all looks great. But I can't find any information on
    what I need to have on my JobSearch.mxml to actually get this data
    into the comboBox.
    I did:
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var jobData:job = null;
    ]]>
    </mx:Script>
    And then:
    <mx:ComboBox
    text="{jobData.job_title}"></mx:ComboBox>
    But I'm being told "Type was not found or was not a
    complie-time constant: job"
    I guess I'm missing something, or doing something way
    wrong... I just don't know enough of Flex at this point to know
    what it is.
    Thanks!
    April

    Using php or asp is not an option, as we are a Cold Fusion
    House.
    I was looking at an article on Ben Forta's blog (
    http://www.forta.com/blog/index.cfm?mode=e&entry=1786)
    and following his example I did this... only it doesn't work:
    I'm very very new to Flash and we are using ColdFusion but
    are not using Flex Data Services. I've been trying to figure out
    how to populate a combobox from a database and I'm just not having
    any luck.
    My project is called "PreTraffic". I have my main file as
    "JobSearch.mxml" and a folder under the root named "cfc" with a
    file called "job.cfc".
    job.cfc contains the following code:
    <cfcomponent>
    <!--- Get jobs --->
    <cffunction name="GetJob" access="remote"
    returntype="query" output="false">
    <cfset var job="">
    <cfset var results="">
    <cfquery datasource="discsdev" name="job">
    SELECT job_id, job_title
    FROM job
    WHERE status = 'O'
    ORDER BY job_title
    </cfquery>
    <cfquery dbtype="query" name="results">
    SELECT job_title AS label, job_id AS data
    FROM job
    ORDER BY label
    </cfquery>
    <cfreturn results>
    </cffunction>
    </cfcomponent>
    And JobSearch.mxml has the following code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*"
    layout="absolute"
    backgroundGradientColors="[#ffffff, #d0d0d0]"
    creationComplete="InitApp()">
    <mx:Style source="style.css" />
    <mx:Script>
    <![CDATA[
    public function InitApp():void {
    jobSvc.GetJob();
    ]]>
    </mx:Script>
    <!-- ColdFusion CFC (via AMF) -->
    <mx:RemoteObject id="jobSvc" destination="PreTraffic"
    showBusyCursor="true" />
    <mx:VBox label="Job History" width="100%" height="100%"
    x="10" y="92">
    <mx:Label text="Search jobs by"/>
    <mx:Form label="Task" width="100%">
    <mx:FormItem label="Job Name:">
    <mx:ComboBox id="jobNameCB"
    dataProvider="{jobSvc.GetJob.results}"></mx:ComboBox>
    </mx:FormItem>
    </mx:Form>
    <mx:HBox>
    <mx:Button label="Search"/>
    <mx:Button label="Clear"/>
    </mx:HBox>
    </mx:VBox>
    </mx:Application>
    My Compiler thingy points to:
    -services
    "/Volumes/flexwwwroot/WEB-INF/flex/job-services-config.xml" -locale
    en_US
    and job-services-config.xml contains the following code:
    <destination id="PreTraffic">
    <channels>
    <channel ref="my-cfamf"/>
    </channels>
    <properties>
    <source>flex.pretraffic.cfc.job</source>
    <lowercase-keys>true</lowercase-keys>
    </properties>
    </destination>
    Well, when I run the app... the combobox is not populated...
    Can anyone help with what I've done wrong?
    Thanks!
    April

  • Unable to create or update the Excel Personal data provider in Web Rich

    Hi All,
    Iam getting the below error message ,when iam using Excel as personal data provider in WEBI Rich Client.
    "Unable to create or update the Excel Personal data provider in Web Rich Client Cannot open the workbook WIS:10872"
    Please suggest a solution ,it helps a lot..
    Regards
    Mahesh

    Hi,
    Was this issue resolved? I see this post has been marked answered but there wasn't any information on what it took to resolve the issue.
    We have our CMS and processing servers on Linux while our Scheduling servers are on Windows. The WEBI reports with external data providers fail to run on Infoview/ scheduler.
    We were told this is addressed in FP 3.6 but that is not the case. We installed FP 3.6 but still continue to see these errors. It required us to manually deploy the ExtensionFactoryService package for enabling the refresh of such reports on infoview/schedulers. It also involves placing of the file used [.xls/.txt] on the linux server on the PersonalDPFiles directory.
    No luck so far!!!
    Any help would be greatly appreciated!
    Thanks
    Avinash

  • Unable to connect to the database to product shared services

    Hi
    I got an error in configuring shared services with the Oracle server database
    "" Unable to connect to the database to product shared services ""
    I created a database that is working properly when accessed by a client.
    I typed everything in config utility, Does we need to take care of any other servies?
    I appreciate if any one help with this.
    Thanks
    Abel Junior
    Version: Hyperion System 9 and Oracle 9i

    John is of course correct that XP is not a supported environment for Essbase 9.3.x.
    Having said that, I have successfully installed Shared Services, Essbase, and EAS on multiple XP laptops. I have done so with 9.2 (painful) and 9.3.1 (just about painless) although always against SQL Server. This is strictly for development/kick the tires work, never as a production environment.
    Planning has quite an issue with XP (and Vista) although I have heard that there is a Windows Registry fix for this.
    Of course Oracle support is going to gong you if you call up with questions about your laptop -- it isn't supported.
    One last thing -- Shared Services and laptop suspends =! stability. For my development purposes, I have backed off Shared Serivces and just go with Essbase as a service with native security and EAS.
    Regards,
    Cameron Lackpour
    P.S. VMs are probably the way to go if your desktop/laptop has the horsepower to drive a proper OS with the VM overhead. On a 4 gigabyte laptop with a Duo Core (no, not a Mac, I just can't remember what Intel calls it -- the power of marketing) VMServer running Windows Server 2003 and the full stack is pretty slow, but it works.

  • Problems on Windows 7 Professional 64 with PHP data service

    I've created a data service using PHP in a PHP Eclipse project and I'm trying to connect to it from my new Flash project. When I try to create a custom data type via the Configure Return Type dialog, "Auto detect the return type from sample data" radio button, I get the following error:
    There was an error while invoking the operation. Check  your operation inputs or server code and try invoking the operation again. 
    Reason:
    Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL  server on 'localhost' (10061) in  C:\Users\davidk\workspace\php-global-includes\mysqlAccess.inc.php on line  11
        /0/onStatusÿÿÿÿ �SIflex.messaging.messages.ErrorMessage extendedData faultCode faultDetail faultString rootCause correlationId clientId destination messageId timestamp timeToLive headers  body  „m …a#0  C:\Zend\ZendServer\share\ZendFramework\library\Zend\Amf\Server.php(550):  Zend_Amf_Server->_dispatch('getProductVersi...', Array, 'GetPlayData')#1  C:\Zend\ZendServer\share\ZendFramework\library\Zend\Amf\Server.php(626):  Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))#2  C:\Zend\Apache2\htdocs\play-debug\gateway.php(69):  Zend_Amf_Server->handle()#3 {main} ‚UError instantiating class GetPlayData to  invoke method getProductVersions: Error connecting to database server as user  via password configured in  config_cdna_testdb.php  IE83D9958-920E-E203-54BC-E5365BD85289 I5496259E-8C36-AC89-E234-00000D37FD49  I7E8A1BD7-9D60-9329-DBFB-00001B5BE8C7  126823334100     
    Note that I've tested the GetPlayData class and the getProductVersions() method with some simple "unit testing" code and it works fine when I execute it directly. It just won't run when called from this dialog.
    I tried to debug the gateway.php process that is used to do this connecting without much success so far.
    Is Windows 7 supported for PHP data service development in this beta release? I'm using Version 4.0 build 253292

    One more clue: the message from the exception shows that the global variables I'm using to configure the MySQL connection parameters are not set somehow. Maybe I need to upgrade my Zend Framework?
    Nope. I upgraded to the latest Zend Framework and it still did not work. The global variables are not working. When I hard coded the connection parameters into the constructor of the GetPlayData class, then it worked fine. I just switched to using define() to create constants instead of using the globals and that worked, too.
    It is as if globals set in one include file are not available in another include file. I agree that using them might be a bad programming practice of sorts, but it seems wrong to disallow / not support something that is part of the core language!
    So, I don't know if this is a Windows 7 thing or just a general behavior. Globals within the same file seem to work fine still, but not from another include file.
    So the answer for me is to not use these cross-include file globals in code that is going to be used from Flash Builder.

  • Flash Builder 4.5 Auto-Gen Code For PHP Data Service Produces Errors

    Hello
    I'm currently running a fresh install of MAMP on my Mac and when I start a new flex project, add a php data service that pulls from a mysql database I have. Everything works fine until I try to compile. The error I'm getting is 'uid' being the primary key which is a bigint(20). The file _Super_Users.as (auto-gen based on the user table below) reports 2 errors: [Managed] requires uid to be of type 'String'. (same error on 2 lines of code) Now the MySQL table wants it to be a int, the auto gen code seems to want it to be an int as well but for some reason its putting in these requires for String on the getter and setters for 'uid'. The is before I even add any of my own code, just auto-gen then compile.
         * data/source property getters
    [Bindable(event="propertyChange")]
        public function get uid() : int /*error line*/
            return _internal_uid;
         * data/source property setters
        public function set uid(value:int) : void /*error line*/
            var oldValue:int = _internal_uid;
            if (oldValue !== value)
                _internal_uid = value;
    This is what my database looks when I export it:
    CREATE TABLE `users` (
      `uid` bigint(20) unsigned NOT NULL,
      `name` varchar(150) NOT NULL,
      `first_name` varchar(50) NOT NULL,
      `middle_name` varchar(50) NOT NULL,
      `last_name` varchar(50) NOT NULL,
      `gender` tinyint(1) NOT NULL,
      `locale` varchar(5) NOT NULL,
      `link` varchar(255) NOT NULL,
      `username` varchar(50) NOT NULL,
      `email` varchar(255) NOT NULL,
      `picture` varchar(255) NOT NULL,
      `friends` text NOT NULL,
      `created` datetime NOT NULL,
      `updated` datetime NOT NULL,
      PRIMARY KEY (`uid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    It's empty right now...
    Apache 2.0.64
    MySQL 5.5.9
    PHP 5.2.17 & 5.3.5
    APC 3.1.7
    eAccelerator 0.9.6.1
    XCache 1.2.2 & 1.3.1
    phpMyAdmin 3.3.9.2
    Zend Optimizer 3.3.9
    SQLiteManager 1.2.4
    Freetype 2.4.4
    t1lib 5.1.2
    curl 7.21.3
    jpeg 8c
    libpng-1.5.0
    gd 2.0.34
    libxml 2.7.6
    libxslt 1.1.26
    gettext 0.18.1.1
    libidn 1.17
    iconv 1.13
    mcrypt 2.5.8
    YAZ 4.0.1 & PHP/YAZ 1.0.14
    I tried to give as much info as possible, if you need more let me know...

    I discovered my problem was uid seems to be a built in global or something and was filling in that data field with a bunch of letters and number, like the device id. Because of the letters flex was throwing a fit. So if you're using Facebook API in flex be sure to not go with uid for the user id, which is was facebook api calls it.

Maybe you are looking for

  • I need to upgrade to Lion. It ISN'T available on Mac App Store.

    I purchased Snow Lion directly from Apple online. How can I get Lion? It is suppose to be available for 19.99 on disk from Apple. I have used the search features and it leads me to Mac OS X 10.8. My mac can't run that. Lion is it for me.

  • ALV Grid without screens

    Hello experts, is it possible to implement ALV grid display (OO) without statements such as "call screen 100"? I have an example, logically everything should work but, unfortunatelly, nothing displays. Code: ZPROGRAM CODING *** REPORT ZTESTPROG. DATA

  • Flash problems N900

    HELP ME PLEASE!!! SOS! Ican't flash emmc.bin there is problem, attach screenshot Attachments: Screenshot.jpg ‏127 KB

  • Confirm Message using Javascript

    Hello, I'm having some problems to create a confirm message box that will return a value from a Hiden field. For example: apex.confirm('Do you realy want delete use &P80_NAME_USER.'); The name is showing but the problem is that if the P80_NAME_USER i

  • Lose display when making a call...

    I installed the IOS4 onto my 3GS phone and now when I make call I lose the display and can't get it back in order to see the number pad to dial an extension or even end the call. I have to press the power button twice in order to get the screen back