1 Reply Latest reply on Jul 7, 2009 11:18 PM by *Prashant Shelke*

    store the values in database

    sonu.madhu

      can anyone let me know how to store the values when enter the button in mysql database by using java flex

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      <?xml version="1.0" encoding="utf-8"?>

      <mx:Application

       

       

      xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"

      >

       

       

      <mx:Script>

      <![CDATA[

       

       

       

      import

      mx.rpc.events.ResultEvent;

       

       

      import

      mx.controls.Alert;

       

       

      import

      mx.managers.PopUpManager;

       

       

      import

      mx.collections.ArrayCollection;

       

       

       

      private function empLogin():void

      {

      lm.Login(txt_empid.text, txt_empname.text, txt_empadd.text);

      }

       

       

       

      private function resLogin(event:ResultEvent):void

      {

       

       

       

      var res:String = event.result as

      String;

      Alert.show(res);

      }

       

       

      ]]>

       

       

      </mx:Script>

       

       

       

       

       

       

      <mx:RemoteObject id="lm" destination="logMod"

      >

       

       

      <mx:method name="Login" result="resLogin(event)"

      />

       

       

      </mx:RemoteObject>

       

       

       

      <mx:Panel x="46" y="44" width="358" height="271" layout="absolute"

      >

       

       

      <mx:title><![CDATA[ EMPLOYEE DETAILS]]>

      </mx:title>

       

       

      <mx:Label x="10" y="25" text="Emp_Id" width="84" id="lbl_empid" enabled="true"

      />

       

       

      <mx:TextInput x="151" y="23" id="txt_empid" displayAsPassword="false" editable="true" enabled="true"

      />

       

       

      <mx:Label x="10" y="78" text="Emp_Name" width="98" id="lbl_empname" enabled="true"

      />

       

       

      <mx:TextInput x="151" y="76" id="txt_empname" displayAsPassword="false" editable="true" enabled="true"

      />

       

       

      <mx:Label x="10" y="134" text="Emp_Address" width="84" id="lbl_empadd" enabled="true"

      />

       

       

      <mx:TextInput x="151" y="132" id="txt_empadd" displayAsPassword="false" editable="true" enabled="true"

      />

       

       

      <mx:Button x="136" y="182" label="Submit" id="but_sub" enabled="true" click="empLogin()"

      />

       

       

      </mx:Panel>

       

      </mx:Application>

       

       

       

       

       

       

       

       

       

       

       

       

      thanks&regards

      sonu