Cannot create files in the database by using the PHP Data Service

Hello, I was stuck on this during a few days and get up and down for this on the net, no response, I found did work, so I come back to you...

Here are the steps I took, I think that's pretty standard

1. I have a macbook pro running osx 10.7.3

2. I installed MAMP default all the (I've acually reinstalled this because someone suggested it could fix)

3. via phpMyAdmin, I created a database called my_test

4. in this database, I created a table, it is the export of this table: (I also tried with InnoDB, which is the default)

CREATE TABLE 'client')

int (10) 'id' 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 project of Flx (running Flash Builder Premium 4.5.1)

Project name: PHPTest

Type of application: Desktop (although I did the same thing with the Web and got the same results)

> > Next

Type of application server: PHP

Web root: / Applications/MAMP/htdocs /.

Root of the URL: http://localhost: 8888 /

Click on "Save Configuration" and who worked

Output folder: / Applications/MAMP/htdocs/PHPService (default value of Flash Builder)

> > Finish

6. in the Data/Services on the background tab, I click on "connect to data or services...". »

Select "PHP".

> > Next

Select «Click here to generate a sample»

Select the option "Generate database"

User name: root

Password: root (default for MAMP)

Host name: localhost

Server port: 8889 (default for MAMP MySQL port, the default HTTP port is 8888, which, in both cases, seems to work, but all the videos I've seen that use MAMP on youtube uses 8889)

Database: my_test

Click 'Test connection' (work)

Table: customer

Primary key: id of (this field is dimmed and Flash selects Builder 'id', which it appears in the SQL table)

> > Click OK

7. then if I do not have the Zend Framework folder in my/Applications/MAMP/htdocs/folder it tells me its going to do this and I mean. Then Flash Builder said some things about how it really is for testing, not production server ready and I mean.

8. then it brings back me to the form of step 6 when I have the chance to select «Click here to generate a sample»

These fields are now filled with these data automatically:

PHP class: /Applications/MAMP/htdocs/PHPTest/services/CustomerService.php

Name of the service: customer service

Package: services.customerservice

Type of data package: valueObjects

> > Click on Next (shows all functions, which will now be availible)

> > Click done (end shapes and she opens Dreamweaver in the php file it created CustomerService.php that I didn't need to change so that I have that closes down)

9. back in Flash Builder I switch to design mode and drag a datagrid control onto the large white area in the Middle, no matter who is called.

10 slide below in the Data/Services on the bottom tab I click the "GetAllCustomer" function on the top of the data grid.

I say yes to bounce, then click ok and the display of the data grid is updated with the columns of the 'customer' table in mySQL.

(Now I would like to say that when I hit save and compile it, if I actually had documents in this table I have insert via phpMyAdmin, this is displayed in the datagrid control) So for all the CRUD, I am able to get the R which is read)

11. now go back to the designer view in Flash Builder, I'll create a form to create the table records... (I guess this isn't really a step)

12. in the data on background tab/Service I select the function 'createCustomer' and then there is an icon called "Form generating" that looks like a white sheet of paper with a sprocket on the bottom of things.

13. This opens a new form and because I don't have a crazy bunch of fields in my table I click just finished (if you click then you can specify which fields you want to exclude from the form, but this time I don't have to)

14. This creates actually 2 forms if you look at the code, the second shows just the return type of when you click on the button 'CreateCustomer' on the first form. Because they overlap in design mode I drag the form so you can see the entry form, the return form and the datagrid

15 then I save and compile...

(Also if your reading this fact does not delete the field in form of code, I get the same result, so be it, but if you do not delete the form field in the code/design you must also update the function button do not deal with the id before he is deported to the php page, since in this case the MySQL table's auto_increment sorry id value that does not have a lot of) sense, but this small area does not matter much anyway)

16. now fill some data you want for name and email, try different numbers in the field id as 0, nothing, 1, 1000, then click on 'CreateCustomer '.

(For me that nothing happens, no return is put on return, no error appears and the datagrid control is not updated with the new record, passing also to phpMyAdmin and checking her browse the table does no changes, I know that the button calls the function because if I add a state change it in this function of changes) , it seems that the line:

createCustomerResult.token = customerService.createCustomer (customer2); does nothing)

So no idea what is wrong here, I am convenced that's something stupid easy simple, I can't see it.

So, I thought about it after 24 hours to post my question and probing every thing I could think about. I've been stuck with this problem for over a week, so I'll give myself credit for this one...

userService.commit ();

need to be added at the end of the function of button to force flex to do what seems every tutorial that I've ever read on how to do online is no need or mention, don't know why it worked without them but at this point I don't really like.

Tags: Flex

Similar Questions

  • ORA-02327: cannot create indexes on the LOB data type expression

    DB 10.2.0.4
    DB 5.2

    I am not able to move lobindex and lobsegment. While try occurs below error

    SQL > ALTER INDEX dev. "" SYS_IL0000718396C00002$ $"REBUILD THE TABLESPACE DATA_TEMP;
    ALTER INDEX dev. "" SYS_IL0000718396C00002$ $"REBUILD TABLESPACE DATA_TEMP
    *
    ERROR on line 1:
    ORA-02327: cannot create indexes on the LOB data type expression

    Thank you

    Published by: user13382934 on October 16, 2012 14:05

    correct syntax is
    ALTER TABLE.

    MOVE the LOB ()
    STORE AS (tablespace );

    Where is a name of the / columns LOB, not the name of the segment. Moving type LOB data will move its indexes as well.

  • SetupCopyOEMInf cannot create file/copy the .inf to System32\DriverStore\FileRepository files?

    When you try to install any device (e.g. USB key) that I don't have a driver supplied, I get the following error message:

    "Windows found driver software for your device, but has encountered an error trying to install it."

    Here is an example from windows/inf/setupapi.dev.log:

    > [Device setup (DiShowUpdateDevice) - USBSTOR\DISK & VEN_KINGSTON & PROD_DT_100_G2 & REV_PMAP\001CC0EC2F47BAB0E5F001F6 & 0]
    > Section start 02:44:23.630 04/02/2011
    cmd: "C:\Windows\system32\mmc.exe" C:\Windows\system32\devmgmt.msc
    DVI: {DIF_UPDATEDRIVER_UI} 02:44:23.630
    DVI: no installer class for "Kingston DT 100 G2 USB Device"
    DVI: no CoInstallers found
    DVI: Default Installer: enter 02:44:23.645
    DVI: Default Installer: exit
    DVI: {DIF_UPDATEDRIVER_UI - exit (0xe000020e)} 02:44:23.645
    NDV: {Assistant software update driver for USBSTOR\DISK & VEN_KINGSTON & PROD_DT_100_G2 & REV_PMAP\001CC0EC2F47BAB0E5F001F6 & 0}
    INF: opened PNF: 'C:\Windows\INF\disk.inf' ([strings] )
    INF: {SetupCopyOEMInf: C:\Windows\INF\disk.inf} 02:45:05.313
    INF: location of the pilot store: C:\Windows\System32\DriverStore\FileRepository\disk.inf_f14e87fb\disk.inf
    Released INF: Inf path: C:\Windows\INF\disk.inf
    INF: opened PNF: 'C:\Windows\INF\disk.inf' ([strings] )
    INF: support OEM source location: C:\Windows\INF\
    INF: {SetupCopyOEMInf exit (0x00000000)} 02:45:05.406
    DVI: looking for the hardware ID:
    DVI: usbstor\diskkingstondt_100_g2___pmap
    DVI: usbstor\diskkingstondt_100_g2___
    DVI: usbstor\diskkingston
    DVI: usbstor\kingstondt_100_g2___p
    DVI: kingstondt_100_g2___p
    DVI: usbstor\gendisk
    DVI: gendisk
    DVI: search compatible identification:
    DVI: usbstor\disk
    DVI: usbstor\raw
    !    INF: unable to load INF: ' C:\Windows\System32\DriverStore\FileRepository\disk.inf_f14e87fb\disk.inf'(00000003)
    !    INF: error 3: the system cannot find the path specified.
    !!!  INF: failed to load INF "C:\Windows\System32\DriverStore\FileRepository\disk.inf_f14e87fb\disk.inf."
    !!!  INF: error 3: the system cannot find the path specified.
    !!!  NDV: import of driver Package failed for the new device... installing NULL driver.
    !!!  NDV: error 0xe0000203: there is no driver selected for the item or a set of device information.
    DVI: {Plug and Play Service: installation of the device for USBSTOR\DISK & VEN_KINGSTON & PROD_DT_100_G2 & REV_PMAP\001CC0EC2F47BAB0E5F001F6 & 0}
    UMP: creating the installation process: DrvInst.exe 02:45:05.453
    !    NDV: installing NULL driver!
    DVI: selected driver complete Set.
    Pol: installation of the device is subject to the policy
    DVI: {DIF_ALLOW_INSTALL} 02:45:05.500
    DVI: no installer class for "Kingston DT 100 G2 USB Device"
    DVI: no CoInstallers found
    DVI: Default Installer: enter 02:45:05.500
    DVI: Default Installer: exit
    DVI: {DIF_ALLOW_INSTALL - exit (0xe000020e)} 02:45:05.500
    DVI: {DIF_INSTALLDEVICE} 02:45:05.500
    DVI: no installer class for "Kingston DT 100 G2 USB Device"
    DVI: Default Installer: enter 02:45:05.500
    !    DVI: installing NULL driver!
    DVI: writing common driver property settings.
    DVI: {restarting devices} 02:45:05.531

    DVI: restart: USBSTOR\DISK & VEN_KINGSTON & PROD_DT_100_G2 & REV_PMAP\001CC0EC2F47BAB0E5F001F6 & 0
    DVI: full restart.
    DVI: {restarting devices exit} 02:45:05.609
    DVI: Default Installer: exit
    DVI: {DIF_INSTALLDEVICE - exit (0x00000000)} 02:45:05.609
    UMP: installation of the server process is completed with the code 0 x 00000000 02:45:05.625
    UMP: {Plug and Play Service: Device install exit (00000000)}
    NDV: {update driver software Wizard exit (e0000203)}
    <  section="" end="" 2011/02/04="">
    <  [exit="" status:="">

    -End journal-

    IF I create the folder and copy the .inf appropriate folder manually, through installation and device is correctly installed. This, however, is too demanding offer. I would like to know how to solve this problem (and maybe what caused it).

    Here's what I do in fact (using this key USB for example - any other device that I have not yet installed as for example my old digital camera newly purchased USB hub root fails in the same way and the content of setupapi.dev.log is very similar to above):

    1. [Plug device]
    2. New hardware detected
    3. Locate and install driver software (recommended)
    4. .. Search on Windows Update...
    5. "Windows found driver software for your device, but encountered an error [blaa]...". »
    6. [Vista leaves the unit with the null driver]

    To get the device works, check the log and create some Installer is looking for, repeat the steps above and the device is installed.

    I think there could be something wrong with my DriverStore; Maybe access permissions (I put plenty of administrator, system and TrustedInstaller). Is it possible to reinstall completely/System32 DriverStore?

    Thanks in advance,
    Esko

    Edit: my Vista is up-to-date with Windows Update--> nothing to update.  It is Vista 64 bit Home Premium edition

    Hi EP,.

    You can retry installing with the anti-virus disabled temporarily to see if it prevents the folder being created.

    If this does not help, you can perform a clean boot to see if a startup program is causing a conflict:

    http://support.Microsoft.com/kb/310353

    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Æ 6 errors in Maverick: cannot create files in the library.  How can I fix it?

    Initially, I installed CS6 Master Collection on Snow Leopard and everything was great.  I just bought a new iMac with Maverick.  I reinstalled my Master Collection CS6 and make me now 2 major mistakes when I open After Effects.  I've updated AE to 11.0.4.2

    First error reads as follows:

    After effects of warning: directory ' / users/will/Library/Preferences/Adobe/After Effects/11.0/Adobe after effects Disk Cache - William Brook iMac (3) .noindex ' could not be created. Please check the rights of protection or permission from parent directory.

    The second error reads as follows:

    After effects error: unable to write to Disk Cache folder, cache so disk will be disabled. Please check your settings in the media and Disk Cache preferences.

    I've updated all programs of the suite.  Everything seems to work very well with others, After Effects only seems to have a (major) problem.

    I seem to be able to run AE, but it cannot save the project I'm working on that.

    This is the main program, I need to use.  Any advice on how I can solve this glitch to Maverick?

    Yes, set the Preferences folder to be writeable by all.

  • Error message that Lightroom cannot start because it cannot create files in the location of the temporary file C:\Users\Skip\AppData\local\Temp\?

    My work computer cleaned a few files for giving me permission to be on the server of the company that allows me to work from home.

    BUT when I tried later open LR5 I got this error message and refused to open.  Has not changed all the permissions that he knows of intentionally, he said.

    I followed the suggestions of others questions forum suggesting the uninstalling and reinstalling LR5, which I did, but the problem persists. Only now, I have an old copy of the LR5 and will update again after the correction.

    Hope someone can help because I have a wedding that I need to finish by the end of the week.  Thank you

    Hi jennybeck,

    According to the message, that it is only the permissions issue, go to the location and make sure that you have read and write access to the Temp folder.

    Once done, then try to open Lightroom.

    Kind regards

    Tanuj

  • ORA-19504: cannot create file when using rman

    Hello
    on 10g bR2 on windows machine my rman backup failed on a drive mapped with following error message:
    ORA-19504: cannot create file when using rman

    What do you suggest me?

    I heard that RMAN cannot write to the mapped file system. Is this true? Some people proposed:

    OracleService must be run by OS user with permissions

    But what oracle service? Target or RMAN catalog database database?

    Thank you.

    You must change your environment, on metalink:

    How to configure RMAN to write about readers shared on Windows NT/2000
    DOC - ID: Note: 145843.1

    Werner

  • Administrator cannot create files or run defrag.

    I am running Windows 7 and I am logged on as administrator.  I'm trying to run some DOS commands at the command prompt,

    but I am running into a problem.  For example when I run the defragmentation of the C: prompt.  I get this message.

    "The disk defrgamenter cannot start because you have insufficient privileges to perform this operation."

    Also, if I try to create a file in the C: or C:\Users directory, I get the message "access denied."

    I'm able to schedule defragmentation using the Disk Defragmenter tool in Windows 7.  Any help would be greatly appreciated.

    To run some commands, you must open the elevated command prompt:

    1 log in under an administrator account.
    2. click on the start planet.
    3. type the three letters cmd in the search box.
    4. press on Ctrl + Shift + Enter
    5. click on "run as Administrator".
    UAC will not allow you to create files in the root directory of the system drive, unless you do under the elevated privileges (not recommended).
    BACK when there is more than 10 years with Windows ME (good riddance!) fashion. The black screen is now called the Console or command prompt. Orders including defrag.exe are commands to the console.
  • "After effects WARNING: cannot create file library/preferences/Adobe/After Effects/13.2/dummy. ???

    The error message I recibed. Please help me

    After effects WARNING: cannot create file library/preferences/Adobe/After Effects/13.2/dummy

    fix the permissions problem that prevents starting applications Adobe | After the effects of interest area

  • ORA-04089: cannot create triggers on the objects belonged to SYS

    I did a google on this error and it say that I should never get to anything to do with the system and also to make another account when executing my script, I did this, but I still get the error code and the error is less than

    REM **********************************************************************

    CREATE TABLE gam_attribute_bin (/ * gam_ab * /)

    attribute_owner_type char (1) NOT NULL, / * player Att, Att User Instance Att Att class.

    Class criteria, client static/Gulp * /.

    ATTRIBUTE_NAME VARCHAR2 (20) NOT NULL,

    owner_id NUMBER (10) NOT NULL, / * specific check-in attribute_owner * /.

    LONG RAW NULL binary_value

    ) TABLESPACE gam_lgtab STORAGE (INITIAL 256 K NEXT 256 K MAXEXTENTS PCTINCREASE 0 unlimited)

    /

    ALTER TABLE gam_attribute_bin ADD)

    CONSTRAINT gam_attribute_bin_pk

    UNIQUE (attribute_owner_type, owner_id, attribute_name)

    USING INDEX

    TABLESPACE gam_ind

    STORAGE (INITIAL 256 K NEXT 256 K MAXEXTENTS PCTINCREASE 0 unlimited)

    )

    /

    Suppression of REM binary attribute when necessary

    CREATE TRIGGER gam_att_delete

    AFTER YOU REMOVE gam_attribute

    FOR EACH LINE

    BEGIN

    IF (: old.attribute_data_type = 'B')

    THEN

    DELETE FROM gam_attribute_bin

    WHERE attribute_owner_type =: old.attribute_owner_type

    AND attribute_name =: old.attribute_name

    AND owner_id =: old.owner_id;

    END IF;

    END;

    /

    ERROR on line 1:

    ORA-04089: cannot create triggers on the objects belonged to SYS

    hope someone can help me clear this up thanks

    Hello

    You code works very well for me.  I had to change to run on my system tablespaces, but otherwise, what you posted worked for me when I tried (in a different schema than SYS, of course).

  • create file with the name of file with today's date

    Hello
    is it possible to create a file with the current date? In fact, I want to take backup of my oracle schema every day with the name of the file including the date...

    You can use the syntax below,

    exp = orcl_ file ' date of +%Y%m%d%%H%M%'.dmp

    Thank you

  • Cannot add files to the queue

    First time user. Cannot add files to the queue, either through drag and drop or the addition. Try to add a file, it recognizes none.

    It works now. Thank you

  • 'Cannot open file because the disk is not available' Mac

    I recently changed the selection of Photoshop (CS6) Scratch disk to the boot drive by default to one of the other internal drives in my MacPro (OS 10.6.8).

    When I restart Photoshop (CS6) I get the message:

    "Cannot open file because the disk is not available"

    and Photoshop will not start.

    I then restart Photoshop with 'Control - alt - shift' keys

    (suggestion to <http://forums.adobe.com/message/3937003>)

    and reset preferences that allows Photoshop to return.

    (Reset preferences returned the boot drive to drive work status.)

    I have an another MacPro, the - same 10.6.8 OS and Adobe CS6 - and I don't have this problem of allocation of work disk.

    What happens with a MacPro which prevents me from selecting one drive other than the boot drive working Photoshop

    Probably a permission problem.  Run the Apple disk utility to repair permissions.  If this does not work the glance to the non bootable drive and check "Ignore permissions..."  Open the window Info Finder and it came inside.

  • The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded is may be missing, or the upgrade patch may update a different version of the program

    I try to use the Microsoft Office tool that implement an MSI for 64-bit Office 2010 installation file.  The tool works file and creates the msi file.  I get to the tool by going to the x 64-bit folder on the office 2010 installation disc.

    I install a new virtual machine from Windows 7 and tried to use the MSI file to install office 2010 and I get the error:

    "The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded is may be missing or the upgrade patch may update a different version of the program"

    If I just click Setup on the office 2010 dvd he moved very well on the same VM window7.

    Does anyone have an idea how do to understand why the windows installer keep fails or what he wants?

    If I click on the msi even on a system with office 2007 is installed, I get the same error.

    Thanks for the help

    jbabe

    Windows Update has nothing to do with the upgrade or installation of Office 2010. Please post future questions in this forum: http://social.answers.microsoft.com/Forums/en-US/officeinstall/threads

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I just replaced my MB Pro with a MB Air. Air has less memory and will not support a full restore of files and the saved data. How to do a partial restore

    I just replaced my MB Pro with a MB Air. Air has less memory and will not support a full restore of files and the saved data. How to do a partial restore

    Do you still have the MBP? If so you can manually copy and paste the files you need.

    If you do not have the pro more, you need to buy a USB key and plug it into the MBA... use it as a target. Once you have a system file of the previous laptop again, you have to manually choose what to copy across.

  • Failed to add files to the DEP (data execution prevention) on the server terminal server 2008 r2 64-bit

    Hello

    I use the terminal server server 2008 r2 64 bit for 35 users, we have recently updated our ERP software.

    Since then, we meet a few software crashes.

    When we talked with the software they told us to add several of the software files to the DEP (data execution prevention).

    When I tried to add I got this message: "this program must run with enabled data execution protection."

    How can u add these files to the DEP?

    (I tried on another server that is running the software and no problem)

    b.r

    Ronen malka

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Technet Windows Forums. Here is the link:
    http://social.technet.Microsoft.com/forums/en-us/winservergen/threads

Maybe you are looking for

  • Installing Windows XP on M400 without original CD and floppy drive!

    HelloI bought the Portege M400 without any CD, only with the product key. IAM having difficultied install Windows XP SP2 from 2005 tablet edition while he asks driver Sata. I managed to create the installation with the driver (ts3raidx.exe kr10i.sys)

  • Explicit Apple support hold music

    I'm waiting for Support from Apple. This song just played which is full of the F word (speed of startup and during the song, he repeats "They can f You Up"): https://www.YouTube.com/watch?v=LFB7vaywpyo Not really appropriate. Is it possible to preven

  • Stuck to the administrator password or power on password

    I have a hp pavilion andI have a message pop up as soon as you turn on the laptop that says "Enter password or power on password"I don't know what it is and when it says 'disable system' with a key 59638024 of failed attempts

  • How can I TAKE pictures on my laptop...?

    How to make a new photos on my new laptop.  I don't know where to go. I don't know what to do. the answers here are not useful. WHERE I'M GOING AND HOW I'M TAKING NEW PHOTOS ON MY LAPTOP?

  • E260 keeps restarting, firmware update does not help

    Hey everybody So I'm trying to fix my Sansa e260 friends and I'll get in trouble. When you turn it on, it just continuously restarts itself, I've included a video of what he does. http://Tinypic.com/r/2wq78jp/6 I have already searched through this fo