1 Reply Latest reply on Dec 9, 2010 4:42 AM by vegarringdal

    What Im I doing wrong with my "create record" in mysql

    vegarringdal

      Made this with the burrito builder...

       

       

      I'm having issues inserting a record to mysql, if I use the test "test operation and use these values the it works fine, but now in the android app.

      values in my test operation

      {
          id:0,
          type:"cool",
          navn:"vegar 16"
      }

       

       

      the GetAll() method works fine, and shows up on the network monitor, but the button dont work at all, nothing happends in the network monito, if I debug it I can see that the button works, any suggestions on what Im doing wrong, why nothing is sent?

      tried reinstalling the flashbuilder on a new windows also, but didnt help, still nothing in network monitor...

       

       

       

       

       

      code in my view:

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:s="library://ns.adobe.com/flex/spark"
              xmlns:kunderservice="services.kunderservice.*"
              title="Home">
          <fx:Script>
              <![CDATA[
                  import mx.events.FlexEvent;
                 
                  import valueObjects.Kunder;
                 
                  protected function list_creationCompleteHandler(event:FlexEvent):void
                  {
                      getAllKunderResult.token = kunderService.getAllKunder();
                  }
                 
                  protected function button_clickHandler(event:MouseEvent):void
                  {
                      var item:Kunder = new Kunder();
                      item.id=0
                      item.navn="vegar"
                      item.type ="test"
                                 
                      createKunderResult2.token = kunderService.createKunder(item);
                     
                  }
                 
              ]]>
          </fx:Script>
          <fx:Declarations>
              <s:CallResponder id="getAllKunderResult"/>
              <kunderservice:KunderService id="kunderService"/>
              <s:CallResponder id="createKunderResult2"/>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <s:List id="list" x="35" y="45" width="409" height="193"
                  creationComplete="list_creationCompleteHandler(event)" labelField="navn">
              <s:AsyncListView list="{getAllKunderResult.lastResult}"/>
          </s:List>
          <s:Button id="button" x="20" y="406" label="Button" click="button_clickHandler(event)"/>
          </s:View>