0 Replies Latest reply on Feb 9, 2011 9:47 AM by z.cristiano

    Two PopUpManager close and update

    z.cristiano Level 1

      Hello...

      I have create two POPUPMANAGER that:

       

      1 popupmanager LIST.MXML there is a list of date this code

       

      <mx:DataGrid id="lettura_gm" width="499" height="317" dataProvider="{read_gestione_menu.lastResult.users.user}" doubleClickEnabled="true" itemDoubleClick="modifica_gm()">

      <mx:columns>

      <mx:DataGridColumn headerText="" dataField="id_gm" itemRenderer="mx.controls.CheckBox" rendererIsEditor="true"/>

      <mx:DataGridColumn headerText="Data" dataField="data"/>

      <mx:DataGridColumn headerText="Titolo" dataField="titolo"/>

      <mx:DataGridColumn headerText="Pos." dataField="posizione"/>

      <mx:DataGridColumn headerText="" dataField="pubblicare"/>

      </mx:columns>

      </mx:DataGrid>

       

      <mx:HTTPService id="read_gestione_menu" method="POST" url="programs/gestione_menu.php" useProxy="false"/>

       

      2 popupmanager UPDATE.MXML there is a textinput and a button UPDATE

       

      On action script, how is the funciont that, where is updatesuccess, close popupmanager UPDATE.MXML and update date on popupmanager LIST.MXML using read_gestione_menu(), but isn't to work

       

      I have write this code actionscript on popupmanager UPDATE.MXML

       

      private function checkModifica(gestione_menu_modifica:ResultEvent):void

      {

       

      if(gestione_menu_modifica.result.modificasuccess == "si")

      {

       

      mx.controls.Alert.show("Modificato");

       

      read_gestione_menu.send();

       

       

      PopUpManager.removePopUp(this);

       

       

       

       

      }

       

      }