29 Replies Latest reply on Oct 19, 2007 8:33 AM by ntsiii

    save edited datagrid change.

    Sketch24
      Hi it's me again. I ask before for something like that but it's sound a bit confusing so I'll start from scratch.

      I have a datagrid with name and other stuff inside. I edit a name for example. Cause the grid is editable (true). I close the application, open the application again and all the modifications are gone. So what I want is to do is a button at the bottom of the application that save all the modifications in the grid. So when I open the application again later, the modification will still there. I've try Array, XMLList... just tell me if you know an easy way to do it. I'll start from scratch
        • 1. Re: save edited datagrid change.
          atta707 Level 2
          Can you share the code that run on your save button?

          Where are you loading your XML from?

          Where are saving the changes on the click of the button?

          All the changes that DataGrdi would do would be *in memory* only. You have to make sure to persist the changes to some permanent storage like a database or some file.

          ATTA
          • 2. Re: save edited datagrid change.
            Sketch24 Level 1
            right now there's no code in the button. Cause I did'nt found any. I wanna load externals xml files that I put in a folder call assets. example assets/employees.xml. I'm trying to populate an editable datagrid from the external xml file. Modify the grid directly and save the change in the xml file. Is it possible, it should, cause if it's not the case, the editable propreties of the grid is useless. The button is just an option I was thinking. Basicly the application is a little employees application to manage the staff schedule. The button will be usefull to confirm all change, cause if you change your mind after a couple change, if you did'nt press the button you will be able to restore the information by closing the application.
            I have Flex version 2.0143459. I try to populate the grid by looking at the example here. http://flexapps.macromedia.com/flex2beta3/explorer/explorer.html but even if I copy all the code in a new file (code from the example). Do the same thing with the employees.xml file. put the xml file in the assets folder. it's does'nt populate thegrid. It's frustrating. any clues?
            I'm new to flex, i'm just using it for a week now. And I'm more on the designer side of the brain then on the programmer side lol! So that the reason the question may sound stupid.
            • 3. Re: save edited datagrid change.
              Sketch24 Level 1
              mm! I think I have to use mx Model.
              • 4. Re: save edited datagrid change.
                ntsiii Level 3
                You need to take this one step at a time. Get your data displaying with hard-coded or embedded data first.

                What are you using for code editing?

                What debug techniques are you using?

                Next, Flex *cannot* natively save a file anywhere (except Local Shared Object, which will not do what you want) It is designed as a Presentation Layer technology.

                You MUST have some server-side functionality to do this.

                Before we can go any further, you need to decide what server functionality you want to use. It can be ColdFusion, ASP.NET, JSP, PHP, just about anything.

                Now, if you can use AIR, then you can natively write to the local file system. Google AIR if you do not know what it is.

                Tracy
                • 5. Re: save edited datagrid change.
                  Sketch24 Level 1
                  ?xml version="1.0" encoding="utf-8"?>
                  <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="1024" horizontalAlign="center" verticalAlign="middle"
                  verticalScrollPolicy="auto" creationComplete="srv.send()">

                  <mx:Script>

                  import mx.collections.ArrayCollection;
                  import mx.managers.DragManager;
                  import mx.events.DragEvent;

                  [Bindable]
                  public var INFO:ArrayCollection;

                  </mx:Script>

                  <mx:HTTPService id="srv" url="../assets/assINFO.xml" useProxy="false"
                  result="INFO = new ArrayCollection (srv.lastResult.info.associe)"/>

                  <mx:Panel x="10.25" y="67" width="913.5" height="418" layout="absolute" title="Horaire Bureau en gros #124" id="info_h" cornerRadius="10" alpha="1.0">
                  <mx:TextInput x="10" y="10" text="14 octobre 2007" editable="true" enabled="true" borderStyle="none" color="#ff0000"/>
                  <mx:DataGrid
                  dataProvider="{INFO}"
                  editable="true"
                  fontFamily="Verdana"
                  fontSize="10"
                  width="875" height="268" textAlign="left"
                  y="40" x="10"
                  themeColor="#0080ff"
                  borderColor="#0080ff">

                  <mx:columns>
                  <mx:Array>
                  <mx:DataGridColumn headerText="INFORMATIQUE" dataField="nom" width="150" />
                  <mx:DataGridColumn headerText="Dimanche" dataField="dim" width="95"/>
                  <mx:DataGridColumn headerText="Lundi" dataField="lun" width="95"/>
                  <mx:DataGridColumn headerText="Mardi" dataField="mar" width="95"/>
                  <mx:DataGridColumn headerText="Mercredi" dataField="mer" width="95"/>
                  <mx:DataGridColumn headerText="Jeudi" dataField="jeu" width="95"/>
                  <mx:DataGridColumn headerText="Vendredi" dataField="ven" width="95"/>
                  <mx:DataGridColumn headerText="Samedi" dataField="sam" width="95"/>
                  <mx:DataGridColumn headerText="Total" dataField="tot"/>
                  </mx:Array>
                  </mx:columns>
                  </mx:DataGrid>

                  </mx:Panel>
                  </mx:Application>
                  • 6. Re: save edited datagrid change.
                    Sketch24 Level 1
                    there's no button in the code above
                    • 7. Re: save edited datagrid change.
                      ntsiii Level 3
                      What is your question?
                      • 8. Re: save edited datagrid change.
                        Sketch24 Level 1
                        The code below is pretty long. It's contain all the code in my main project. This one here populate but it's all buit in, no external file. There's a lot of stuff not working cause it's for visual. My main goal here is to make edited data of grids updatable (save) in an external file.

                        • 9. Re: save edited datagrid change.
                          Sketch24 Level 1
                          <?xml version="1.0" encoding="utf-8"?>
                          <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="1024" horizontalAlign="center" verticalAlign="middle"
                          verticalScrollPolicy="auto" height="3000">

                          <mx:XMLList id="associesINFO">
                          <associe>
                          <nom>Alexandre Millette</nom>
                          <dim>N/A</dim>
                          <lun>15:00-19:00</lun>
                          <mar> </mar>
                          <mer>12:00-19:00</mer>
                          <jeu>15:00-21:00</jeu>
                          <ven>N/A</ven>
                          <sam>N/A</sam>
                          <tot>17</tot>
                          </associe>
                          <associe>
                          <nom>David Cadieux</nom>
                          <dim>8:00-17:00</dim>
                          <lun>12:00-21:00</lun>
                          <mar>8:00-17:00</mar>
                          <mer>10:00-19:00</mer>
                          <jeu>12:00-17:00</jeu>
                          <ven>8:00-17:00</ven>
                          <sam> </sam>
                          <tot>40</tot>
                          </associe>
                          <associe>
                          <nom>François</nom>
                          <dim> </dim>
                          <lun>7:00-16:00</lun>
                          <mar>6:00-15:00</mar>
                          <mer>6:00-15:00</mer>
                          <jeu>6:00-15:00</jeu>
                          <ven>6:00-15:00</ven>
                          <sam> </sam>
                          <tot>40</tot>
                          </associe>
                          <associe>
                          <nom>André C</nom>
                          <dim> </dim>
                          <lun>12:00-17:00</lun>
                          <mar>15:00-21:00</mar>
                          <mer> </mer>
                          <jeu> </jeu>
                          <ven>15:00-21:00</ven>
                          <sam> </sam>
                          <tot>17</tot>
                          </associe>
                          <associe>
                          <nom>Réal</nom>
                          <dim>9:00-17:00</dim>
                          <lun> </lun>
                          <mar> </mar>
                          <mer> </mer>
                          <jeu>7:00-12:00</jeu>
                          <ven>10:00-17:00</ven>
                          <sam> TECHNO </sam>
                          <tot>26</tot>
                          </associe>
                          <associe>
                          <nom>Olivier G</nom>
                          <dim>10:00-17:00</dim>
                          <lun> </lun>
                          <mar> </mar>
                          <mer> </mer>
                          <jeu> </jeu>
                          <ven>17:00-21:00</ven>
                          <sam>12:00-17:00</sam>
                          <tot>16</tot>
                          </associe>
                          <associe>
                          <nom>Nicolas L</nom>
                          <dim> </dim>
                          <lun> </lun>
                          <mar>12:00-19:00</mar>
                          <mer>15:00-21:00</mer>
                          <jeu>10:00-19:00</jeu>
                          <ven>12:00-17:00</ven>
                          <sam>9:00-17:00</sam>
                          <tot>34</tot>
                          </associe>
                          <associe>
                          <nom>Yannick</nom>
                          <dim>9:00-17:00</dim>
                          <lun> </lun>
                          <mar> </mar>
                          <mer> </mer>
                          <jeu> </jeu>
                          <ven> </ven>
                          <sam>9:00-17:00</sam>
                          <tot>16</tot>
                          </associe>
                          <associe>
                          <nom>Sebastien</nom>
                          <dim>11:00-17:00</dim>
                          <lun>17:00-21:00 </lun>
                          <mar> </mar>
                          <mer> </mer>
                          <jeu> </jeu>
                          <ven> </ven>
                          <sam>10:00-17:00</sam>
                          <tot>13</tot>
                          </associe>

                          </mx:XMLList>


                          • 10. Re: save edited datagrid change.
                            Sketch24 Level 1
                            <mx:XMLList id="associesTECHNO">
                            <associe>
                            <nom>Jonathan</nom>
                            <dim></dim>
                            <lun>8:00-17:00 </lun>
                            <mar>12:00-21:00</mar>
                            <mer>12:00-17:00</mer>
                            <jeu>8:00-14:00</jeu>
                            <ven>8:00-17:00</ven>
                            <sam></sam>
                            <tot>35</tot>
                            </associe>
                            <associe>
                            <nom>Réal</nom>
                            <dim> plancher </dim>
                            <lun> </lun>
                            <mar> </mar>
                            <mer> </mer>
                            <jeu> plancher </jeu>
                            <ven> plancher </ven>
                            <sam>11:00-17:00</sam>
                            <tot>6</tot>
                            </associe>

                            </mx:XMLList>
                            • 11. Re: save edited datagrid change.
                              Sketch24 Level 1
                              <mx:XMLList id="associesALLEES">
                              <associe>
                              <nom>Hélène</nom>
                              <dim> </dim>
                              <lun>Ste-Dorothé</lun>
                              <mar>Ste-Dorothé</mar>
                              <mer>Ste-Dorothé</mer>
                              <jeu>Ste-Dorothé</jeu>
                              <ven> </ven>
                              <sam> </sam>
                              <tot>0</tot>
                              </associe>
                              <associe>
                              <nom>Mélissa</nom>
                              <dim></dim>
                              <lun>8:00-17:00</lun>
                              <mar>8:00-17:00</mar>
                              <mer>8:00-17:00</mer>
                              <jeu> </jeu>
                              <ven> </ven>
                              <sam> </sam>
                              <tot>24</tot>
                              </associe>
                              <associe>
                              <nom>Olivier Plante</nom>
                              <dim> </dim>
                              <lun>17:00-21:00</lun>
                              <mar>17:00-21:00</mar>
                              <mer>17:00-21:00</mer>
                              <jeu> </jeu>
                              <ven> </ven>
                              <sam> </sam>
                              <tot>12</tot>
                              </associe>
                              <associe>
                              <nom>Pascal</nom>
                              <dim> </dim>
                              <lun> </lun>
                              <mar> </mar>
                              <mer> </mer>
                              <jeu> </jeu>
                              <ven> </ven>
                              <sam> </sam>
                              <tot>0</tot>
                              </associe>
                              <associe>
                              <nom>David B</nom>
                              <dim> </dim>
                              <lun> </lun>
                              <mar> </mar>
                              <mer> </mer>
                              <jeu>17:00-21:00</jeu>
                              <ven> </ven>
                              <sam> </sam>
                              <tot>4</tot>
                              </associe>
                              <associe>
                              <nom>Amélie</nom>
                              <dim>9:00-17:00</dim>
                              <lun> </lun>
                              <mar> </mar>
                              <mer> </mer>
                              <jeu> </jeu>
                              <ven> </ven>
                              <sam>9:00-17:00</sam>
                              <tot>16</tot>
                              </associe>
                              <associe>
                              <nom>Thomas</nom>
                              <dim> </dim>
                              <lun> </lun>
                              <mar> </mar>
                              <mer> </mer>
                              <jeu> </jeu>
                              <ven>16:00-21:00</ven>
                              <sam> </sam>
                              <tot>5</tot>
                              </associe>
                              <associe>
                              <nom>Marc-Antoine</nom>
                              <dim>9:00-17:00</dim>
                              <lun> </lun>
                              <mar>18:00-21:00st</mar>
                              <mer> </mer>
                              <jeu> </jeu>
                              <ven> </ven>
                              <sam>9:00-17:00</sam>
                              <tot>19</tot>
                              </associe>
                              <associe>
                              <nom>Michel</nom>
                              <dim> </dim>
                              <lun>8:00-17:00 </lun>
                              <mar>10:00-17:00</mar>
                              <mer>10:00-17:00</mer>
                              <jeu>8:00-17:00</jeu>
                              <ven>8:00-17:00</ven>
                              <sam></sam>
                              <tot>38</tot>
                              </associe>
                              <associe>
                              <nom>Manuel</nom>
                              <dim> </dim>
                              <lun> </lun>
                              <mar> </mar>
                              <mer> </mer>
                              <jeu> </jeu>
                              <ven> </ven>
                              <sam>12:00-17:00</sam>
                              <tot>5</tot>
                              </associe>

                              </mx:XMLList>
                              • 12. Re: save edited datagrid change.
                                Sketch24 Level 1
                                <mx:XMLList id="associesMEUBLES">
                                <associe>
                                <nom>Pierre</nom>
                                <dim> </dim>
                                <lun>8:00-17:00 </lun>
                                <mar>8:00-17:00</mar>
                                <mer>7:00-16:00</mer>
                                <jeu>8:00-17:00</jeu>
                                <ven>8:00-17:00</ven>
                                <sam> </sam>
                                <tot>40</tot>
                                </associe>


                                </mx:XMLList>
                                • 13. Re: save edited datagrid change.
                                  Sketch24 Level 1
                                  <mx:XMLList id="associesCAISSES">
                                  <associe>
                                  <nom>Christine</nom>
                                  <dim></dim>
                                  <lun> </lun>
                                  <mar>8:00-17:00</mar>
                                  <mer>8:00-17:00</mer>
                                  <jeu>8:00-17:00 rtv</jeu>
                                  <ven>8:00-17:00</ven>
                                  <sam></sam>
                                  <tot>32</tot>
                                  </associe>
                                  <associe>
                                  <nom>Marilyne</nom>
                                  <dim> </dim>
                                  <lun> 16:00-21:00</lun>
                                  <mar> </mar>
                                  <mer>8:00-17:00</mer>
                                  <jeu>10:00-17:00</jeu>
                                  <ven> </ven>
                                  <sam></sam>
                                  <tot>20</tot>
                                  </associe>
                                  <associe>
                                  <nom>Martine</nom>
                                  <dim> </dim>
                                  <lun> 10:00-16:00</lun>
                                  <mar>10:00-16:00</mar>
                                  <mer>10:00-16:00pl</mer>
                                  <jeu>10:00-16:00pl</jeu>
                                  <ven> </ven>
                                  <sam></sam>
                                  <tot>30</tot>
                                  </associe>
                                  <associe>
                                  <nom>Valérie Maurice</nom>
                                  <dim>10:00-17:00</dim>
                                  <lun> </lun>
                                  <mar>17:00-21:00</mar>
                                  <mer> </mer>
                                  <jeu> </jeu>
                                  <ven> </ven>
                                  <sam>9:00-17:00</sam>
                                  <tot>19</tot>
                                  </associe>
                                  <associe>
                                  <nom>Marie-Claude</nom>
                                  <dim>10:00-17:00</dim>
                                  <lun> </lun>
                                  <mar> </mar>
                                  <mer>17:00-21:00</mer>
                                  <jeu> </jeu>
                                  <ven> </ven>
                                  <sam>9:00-17:00</sam>
                                  <tot>19</tot>
                                  </associe>
                                  <associe>
                                  <nom>Geraika</nom>
                                  <dim> </dim>
                                  <lun>8:00-17:00</lun>
                                  <mar> </mar>
                                  <mer> </mer>
                                  <jeu>8:00-17:00</jeu>
                                  <ven>16:00-21:00</ven>
                                  <sam> </sam>
                                  <tot>21</tot>
                                  </associe>
                                  <associe>
                                  <nom>Julie</nom>
                                  <dim> </dim>
                                  <lun> </lun>
                                  <mar> </mar>
                                  <mer> </mer>
                                  <jeu>12:00-19:00</jeu>
                                  <ven>10:00-17:00</ven>
                                  <sam> </sam>
                                  <tot>14</tot>
                                  </associe>
                                  <associe>
                                  <nom>Véronick</nom>
                                  <dim>11:00-17:00</dim>
                                  <lun> </lun>
                                  <mar> </mar>
                                  <mer> </mer>
                                  <jeu>17:00-21:00</jeu>
                                  <ven></ven>
                                  <sam> </sam>
                                  <tot>10</tot>
                                  </associe>
                                  <associe>
                                  <nom>Sylvia</nom>
                                  <dim> </dim>
                                  <lun> </lun>
                                  <mar> </mar>
                                  <mer> </mer>
                                  <jeu>17:00-21:00</jeu>
                                  <ven></ven>
                                  <sam> </sam>
                                  <tot>4</tot>
                                  </associe>
                                  <associe>
                                  <nom>Diane</nom>
                                  <dim> </dim>
                                  <lun> </lun>
                                  <mar> </mar>
                                  <mer> </mer>
                                  <jeu></jeu>
                                  <ven>12:00-19:00</ven>
                                  <sam> </sam>
                                  <tot>7</tot>
                                  </associe>
                                  <associe>
                                  <nom>Marilyne</nom>
                                  <dim></dim>
                                  <lun> </lun>
                                  <mar> </mar>
                                  <mer> </mer>
                                  <jeu></jeu>
                                  <ven>17:00-21:00</ven>
                                  <sam>10:00-17:00</sam>
                                  <tot>11</tot>
                                  </associe>
                                  <associe>
                                  <nom>Marie-Eve</nom>
                                  <dim></dim>
                                  <lun>17:00-21:00</lun>
                                  <mar>16:00-21:00</mar>
                                  <mer>16:00-21:00</mer>
                                  <jeu> </jeu>
                                  <ven> </ven>
                                  <sam> </sam>
                                  <tot>14</tot>
                                  </associe>
                                  <associe>
                                  <nom>Claudia</nom>
                                  <dim>12:00-17:00</dim>
                                  <lun> </lun>
                                  <mar> </mar>
                                  <mer> </mer>
                                  <jeu> </jeu>
                                  <ven> </ven>
                                  <sam>11:00-17:00</sam>
                                  <tot>11</tot>
                                  </associe>
                                  <associe>
                                  <nom>Valérie Chalifoux</nom>
                                  <dim> </dim>
                                  <lun> </lun>
                                  <mar> </mar>
                                  <mer> </mer>
                                  <jeu> </jeu>
                                  <ven> </ven>
                                  <sam> </sam>
                                  <tot> </tot>
                                  </associe>
                                  <associe>
                                  <nom>Linda</nom>
                                  <dim> </dim>
                                  <lun>8:00-17:00</lun>
                                  <mar>8:00-17:00</mar>
                                  <mer> </mer>
                                  <jeu>8:00-17:00</jeu>
                                  <ven>8:00-17:00</ven>
                                  <sam> </sam>
                                  <tot>32</tot>
                                  </associe>

                                  </mx:XMLList>
                                  • 14. Re: save edited datagrid change.
                                    Sketch24 Level 1
                                    <mx:XMLList id="associesDIRECTEURS">
                                    <associe>
                                    <nom>Denis</nom>
                                    <dim> </dim>
                                    <lun>12:00-21:00 </lun>
                                    <mar>6:00-15:00</mar>
                                    <mer>12:00-21:00</mer>
                                    <jeu>8:00-17:00</jeu>
                                    <ven> </ven>
                                    <sam>9:00-17:00</sam>
                                    <tot>40</tot>
                                    </associe>
                                    <associe>
                                    <nom>Cathy</nom>
                                    <dim>10:00-17:00</dim>
                                    <lun> </lun>
                                    <mar>12:00-21:00</mar>
                                    <mer>12:00-21:00</mer>
                                    <jeu>6:00-15:00</jeu>
                                    <ven>8:00-17:00</ven>
                                    <sam> </sam>
                                    <tot>40</tot>
                                    </associe>
                                    <associe>
                                    <nom>Daniel</nom>
                                    <dim> </dim>
                                    <lun>7:00-16:00</lun>
                                    <mar>12:00-21:00</mar>
                                    <mer>8:00-17:00</mer>
                                    <jeu>12:00-21:00</jeu>
                                    <ven>6:00-15:00</ven>
                                    <sam> </sam>
                                    <tot>40</tot>
                                    </associe>
                                    <associe>
                                    <nom>Lily</nom>
                                    <dim> </dim>
                                    <lun> </lun>
                                    <mar> </mar>
                                    <mer>6:00-15:00</mer>
                                    <jeu> </jeu>
                                    <ven>12:00-21:00</ven>
                                    <sam>9:00-17:00</sam>
                                    <tot>40</tot>
                                    </associe>
                                    <associe>
                                    <nom>Benoit</nom>
                                    <dim> </dim>
                                    <lun> </lun>
                                    <mar> </mar>
                                    <mer> </mer>
                                    <jeu> </jeu>
                                    <ven> </ven>
                                    <sam> </sam>
                                    <tot>0</tot>
                                    </associe>
                                    <associe>
                                    <nom>Erika</nom>
                                    <dim>10:00-17:00</dim>
                                    <lun>10:00-19:00</lun>
                                    <mar>8:00-17:00</mar>
                                    <mer> </mer>
                                    <jeu>12:00-21:00</jeu>
                                    <ven>12:00-21:00</ven>
                                    <sam> </sam>
                                    <tot>40</tot>
                                    </associe>


                                    </mx:XMLList>
                                    • 15. Re: save edited datagrid change.
                                      Sketch24 Level 1
                                      <mx:Panel x="10.25" y="67" width="913.5" height="1845" layout="absolute" title="Horaire Bureau en gros #124" id="info_h" cornerRadius="10" alpha="1.0">
                                      <mx:TextInput x="10" y="10" text="14 octobre 2007" editable="true" enabled="true" borderStyle="none" color="#ff0000"/>
                                      <mx:Button x="783" label="mettre à jour" bottom="10"/>
                                      <mx:TextInput x="725" bottom="40"/>
                                      <mx:TextInput x="725" bottom="68"/>
                                      <mx:Label x="653" text="Utilisateur:" bottom="71"/>
                                      <mx:Label x="635" text="Mot de passe:" bottom="42"/>
                                      <mx:DataGrid id="info_dg" editable="true" enabled="true" fontFamily="Verdana" fontSize="10" width="875" dataProvider="{associesINFO}" height="268" textAlign="left" y="40" x="10" themeColor="#0080ff" borderColor="#0080ff"
                                      allowMultipleSelection="true"
                                      dragEnabled="true"
                                      dropEnabled="true"
                                      dragMoveEnabled="true">
                                      <mx:columns>
                                      <mx:DataGridColumn headerText="INFORMATIQUE" dataField="nom" width="150" />
                                      <mx:DataGridColumn headerText="Dimanche" dataField="dim" width="95"/>
                                      <mx:DataGridColumn headerText="Lundi" dataField="lun" width="95"/>
                                      <mx:DataGridColumn headerText="Mardi" dataField="mar" width="95"/>
                                      <mx:DataGridColumn headerText="Mercredi" dataField="mer" width="95"/>
                                      <mx:DataGridColumn headerText="Jeudi" dataField="jeu" width="95"/>
                                      <mx:DataGridColumn headerText="Vendredi" dataField="ven" width="95"/>
                                      <mx:DataGridColumn headerText="Samedi" dataField="sam" width="95"/>
                                      <mx:DataGridColumn headerText="Total" dataField="tot"/>
                                      </mx:columns>
                                      </mx:DataGrid>
                                      • 16. Re: save edited datagrid change.
                                        Sketch24 Level 1
                                        <mx:DataGrid id="allees_dg" editable="true" enabled="true" fontFamily="Verdana" fontSize="10" width="875" height="268" textAlign="left" y="481" x="10" dataProvider="{associesALLEES}" themeColor="#800000" borderColor="#800000"
                                        allowMultipleSelection="true"
                                        dragEnabled="true"
                                        dropEnabled="true"
                                        dragMoveEnabled="true">
                                        <mx:columns>
                                        <mx:DataGridColumn headerText="ALLES" dataField="nom" width="150" />
                                        <mx:DataGridColumn headerText="Dimanche" dataField="dim" width="95"/>
                                        <mx:DataGridColumn headerText="Lundi" dataField="lun" width="95"/>
                                        <mx:DataGridColumn headerText="Mardi" dataField="mar" width="95"/>
                                        <mx:DataGridColumn headerText="Mercredi" dataField="mer" width="95"/>
                                        <mx:DataGridColumn headerText="Jeudi" dataField="jeu" width="95"/>
                                        <mx:DataGridColumn headerText="Vendredi" dataField="ven" width="95"/>
                                        <mx:DataGridColumn headerText="Samedi" dataField="sam" width="95"/>
                                        <mx:DataGridColumn headerText="Total" dataField="tot"/>
                                        </mx:columns>
                                        </mx:DataGrid>
                                        • 17. Re: save edited datagrid change.
                                          Sketch24 Level 1
                                          <mx:DataGrid id="caisses_dg" editable="true" enabled="true" fontFamily="Verdana" fontSize="10" width="875" height="410" textAlign="left" x="10" dataProvider="{associesCAISSES}" themeColor="#ff8080" borderColor="#ff8080"
                                          allowMultipleSelection="true"
                                          dragEnabled="true"
                                          dropEnabled="true"
                                          dragMoveEnabled="true" bottom="432">
                                          <mx:columns>
                                          <mx:DataGridColumn headerText="CAISSES / COPIES" dataField="nom" width="150" />
                                          <mx:DataGridColumn headerText="Dimanche" dataField="dim" width="95"/>
                                          <mx:DataGridColumn headerText="Lundi" dataField="lun" width="95"/>
                                          <mx:DataGridColumn headerText="Mardi" dataField="mar" width="95"/>
                                          <mx:DataGridColumn headerText="Mercredi" dataField="mer" width="95"/>
                                          <mx:DataGridColumn headerText="Jeudi" dataField="jeu" width="95"/>
                                          <mx:DataGridColumn headerText="Vendredi" dataField="ven" width="95"/>
                                          <mx:DataGridColumn headerText="Samedi" dataField="sam" width="95"/>
                                          <mx:DataGridColumn headerText="Total" dataField="tot"/>
                                          </mx:columns>
                                          </mx:DataGrid>
                                          • 18. Re: save edited datagrid change.
                                            Sketch24 Level 1
                                            <mx:DataGrid id="directeurs_dg" editable="true" enabled="true" fontFamily="Verdana" fontSize="10" width="875" height="230" textAlign="left" x="10" dataProvider="{associesDIRECTEURS}" themeColor="#00ff40" borderColor="#00ff40"
                                            allowMultipleSelection="true"
                                            dragEnabled="true"
                                            dropEnabled="true"
                                            dragMoveEnabled="true" bottom="166">
                                            <mx:columns>
                                            <mx:DataGridColumn headerText="DIRECTEURS/LH" dataField="nom" width="150" />
                                            <mx:DataGridColumn headerText="Dimanche" dataField="dim" width="95"/>
                                            <mx:DataGridColumn headerText="Lundi" dataField="lun" width="95"/>
                                            <mx:DataGridColumn headerText="Mardi" dataField="mar" width="95"/>
                                            <mx:DataGridColumn headerText="Mercredi" dataField="mer" width="95"/>
                                            <mx:DataGridColumn headerText="Jeudi" dataField="jeu" width="95"/>
                                            <mx:DataGridColumn headerText="Vendredi" dataField="ven" width="95"/>
                                            <mx:DataGridColumn headerText="Samedi" dataField="sam" width="95"/>
                                            <mx:DataGridColumn headerText="Total" dataField="tot"/>
                                            </mx:columns>
                                            </mx:DataGrid>
                                            • 19. Re: save edited datagrid change.
                                              Sketch24 Level 1
                                              <mx:DataGrid id="techno_dg" editable="true" enabled="true" fontFamily="Verdana" fontSize="10" width="875" height="102" textAlign="left" y="343" x="10" dataProvider="{associesTECHNO}" themeColor="#feae07" borderColor="#feae07"
                                              allowMultipleSelection="true"
                                              dragEnabled="true"
                                              dropEnabled="true"
                                              dragMoveEnabled="true">
                                              <mx:columns>
                                              <mx:DataGridColumn headerText="TECHNO CENTRE" dataField="nom" width="150" />
                                              <mx:DataGridColumn headerText="Dimanche" dataField="dim" width="95"/>
                                              <mx:DataGridColumn headerText="Lundi" dataField="lun" width="95"/>
                                              <mx:DataGridColumn headerText="Mardi" dataField="mar" width="95"/>
                                              <mx:DataGridColumn headerText="Mercredi" dataField="mer" width="95"/>
                                              <mx:DataGridColumn headerText="Jeudi" dataField="jeu" width="95"/>
                                              <mx:DataGridColumn headerText="Vendredi" dataField="ven" width="95"/>
                                              <mx:DataGridColumn headerText="Samedi" dataField="sam" width="95"/>
                                              <mx:DataGridColumn headerText="Total" dataField="tot"/>
                                              </mx:columns>
                                              </mx:DataGrid>
                                              • 20. Re: save edited datagrid change.
                                                Sketch24 Level 1
                                                <mx:Label x="70" y="317" text="Total d'heures:" color="#0080ff"/>
                                                <mx:TextInput x="825" y="315" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#0080ff"/>
                                                <mx:TextInput x="747" y="315" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#0080ff"/>
                                                <mx:TextInput x="655" y="315" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#0080ff"/>
                                                <mx:TextInput x="557" y="315" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#0080ff"/>
                                                <mx:TextInput x="464" y="315" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#0080ff"/>
                                                <mx:TextInput x="369" y="315" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#0080ff"/>
                                                <mx:TextInput x="272" y="315" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#0080ff"/>
                                                <mx:TextInput x="179" y="315" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#0080ff"/>
                                                <mx:Button x="12" y="317" label="+" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#0080ff" color="#0080ff"/>
                                                <mx:Button x="35" y="317" label="-" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#0080ff" color="#0080ff"/>
                                                <mx:Label x="70" y="455" text="Total d'heures:" color="#feae07"/>
                                                <mx:TextInput x="825" y="453" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#feae07"/>
                                                <mx:TextInput x="747" y="453" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#feae07"/>
                                                <mx:TextInput x="655" y="453" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#feae07"/>
                                                <mx:TextInput x="557" y="453" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#feae07"/>
                                                <mx:TextInput x="464" y="453" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#feae07"/>
                                                <mx:TextInput x="369" y="453" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#feae07"/>
                                                <mx:TextInput x="272" y="453" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#feae07"/>
                                                <mx:Label x="70" y="759" text="Total d'heures:" color="#800000"/>
                                                <mx:TextInput x="825" y="757" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                <mx:DataGrid id="meubles_dg" editable="true" enabled="true" fontFamily="Verdana" fontSize="10" width="875" height="139" textAlign="left" y="787" x="10" dataProvider="{associesMEUBLES}" themeColor="#800000" borderColor="#800000"
                                                allowMultipleSelection="true"
                                                dragEnabled="true"
                                                dropEnabled="true"
                                                dragMoveEnabled="true">
                                                • 21. Re: save edited datagrid change.
                                                  Sketch24 Level 1
                                                  <mx:columns>
                                                  <mx:DataGridColumn headerText="MEUBLES" dataField="nom" width="150" />
                                                  <mx:DataGridColumn headerText="Dimanche" dataField="dim" width="95"/>
                                                  <mx:DataGridColumn headerText="Lundi" dataField="lun" width="95"/>
                                                  <mx:DataGridColumn headerText="Mardi" dataField="mar" width="95"/>
                                                  <mx:DataGridColumn headerText="Mercredi" dataField="mer" width="95"/>
                                                  <mx:DataGridColumn headerText="Jeudi" dataField="jeu" width="95"/>
                                                  <mx:DataGridColumn headerText="Vendredi" dataField="ven" width="95"/>
                                                  <mx:DataGridColumn headerText="Samedi" dataField="sam" width="95"/>
                                                  <mx:DataGridColumn headerText="Total" dataField="tot"/>
                                                  </mx:columns>
                                                  </mx:DataGrid>
                                                  • 22. Re: save edited datagrid change.
                                                    Sketch24 Level 1
                                                    <mx:Label x="70" y="936" text="Total d'heures:" color="#800000"/>
                                                    <mx:TextInput x="825" y="934" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="747" y="934" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="655" y="934" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="557" y="934" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="464" y="934" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="369" y="934" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="272" y="934" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="179" y="934" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:Button x="12" y="936" label="+" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#800000" color="#800000"/>
                                                    <mx:Button x="35" y="936" label="-" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#800000" color="#800000"/>
                                                    <mx:TextInput x="747" y="757" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="655" y="757" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="557" y="757" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="464" y="757" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="369" y="757" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="272" y="757" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:TextInput x="179" y="757" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#800000"/>
                                                    <mx:Button x="12" y="759" label="+" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#800000" color="#800000"/>
                                                    <mx:Button x="35" y="759" label="-" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#800000" color="#800000"/>
                                                    <mx:TextInput x="179" y="453" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#feae07"/>
                                                    <mx:Button x="12" y="455" label="+" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#feae07" color="#feae07"/>
                                                    <mx:Button x="35" y="455" label="-" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#feae07" color="#feae07"/>
                                                    <mx:Label x="70" text="Total d'heures:" color="#ff8080" bottom="404"/>
                                                    <mx:TextInput x="825" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#ff8080" bottom="402"/>
                                                    <mx:TextInput x="747" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#ff8080" bottom="402"/>
                                                    <mx:TextInput x="655" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#ff8080" bottom="402"/>
                                                    <mx:TextInput x="557" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#ff8080" bottom="402"/>
                                                    <mx:TextInput x="464" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#ff8080" bottom="402"/>
                                                    <mx:TextInput x="369" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#ff8080" bottom="402"/>
                                                    <mx:TextInput x="272" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#ff8080" bottom="402"/>
                                                    <mx:TextInput x="179" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#ff8080" bottom="402"/>
                                                    • 23. Re: save edited datagrid change.
                                                      Sketch24 Level 1
                                                      <mx:Button x="12" label="+" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#ff8080" color="#ff8080" bottom="407"/>
                                                      <mx:Button x="35" label="-" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#ff8080" color="#ff8080" bottom="407"/>
                                                      <mx:Label x="70" text="Total d'heures:" color="#00ff00" bottom="128"/>
                                                      <mx:TextInput x="825" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#00ff00" bottom="126"/>
                                                      <mx:Label x="31" text="GRAND total d'heures:" color="#000000" bottom="100"/>
                                                      <mx:TextInput x="825" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#000000" bottom="98"/>
                                                      <mx:TextInput x="747" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#000000" bottom="98"/>
                                                      <mx:TextInput x="655" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#000000" bottom="98"/>
                                                      <mx:TextInput x="557" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#000000" bottom="98"/>
                                                      <mx:TextInput x="464" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#000000" bottom="98"/>
                                                      <mx:TextInput x="369" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#000000" bottom="98"/>
                                                      <mx:TextInput x="272" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#000000" bottom="98"/>
                                                      <mx:TextInput x="179" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#000000" bottom="98"/>
                                                      <mx:TextInput x="747" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#00ff00" bottom="126"/>
                                                      <mx:TextInput x="655" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#00ff00" bottom="126"/>
                                                      <mx:TextInput x="557" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#00ff00" bottom="126"/>
                                                      <mx:TextInput x="464" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#00ff00" bottom="126"/>
                                                      <mx:TextInput x="369" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#00ff00" bottom="126"/>
                                                      <mx:TextInput x="272" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#00ff00" bottom="126"/>
                                                      <mx:TextInput x="179" width="60" editable="true" enabled="true" text="0" textAlign="center" borderStyle="none" color="#00ff00" bottom="126"/>
                                                      <mx:Button x="12" label="+" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#00ff00" color="#00ff00" bottom="131"/>
                                                      <mx:Button x="35" label="-" width="18" textAlign="center" fontFamily="Verdana" enabled="true" fontSize="10" fontWeight="bold" cornerRadius="0" height="15" borderColor="#00ff00" color="#00ff00" bottom="131"/>
                                                      <mx:Label x="10" text="budget d'heures:" bottom="62"/>
                                                      <mx:Label x="10" text="utilisées:" bottom="40"/>
                                                      <mx:Label x="10" text="balance:" bottom="15"/>
                                                      <mx:TextInput x="111" width="49" text="0" borderStyle="none" textAlign="center" bottom="57"/>
                                                      <mx:TextInput x="68" width="49" borderStyle="none" textAlign="center" text="0" bottom="35"/>
                                                      <mx:TextInput x="68" width="49" borderStyle="none" textAlign="center" text="0" bottom="10"/>
                                                      </mx:Panel>
                                                      <mx:Image source="@Embed('assets/staples_logo.jpg')" x="15" y="15"/>
                                                      <mx:Label x="857.75" y="41" text="Bienvenue utilisateur" color="#ffffff" fontWeight="bold"/>
                                                      </mx:Application>
                                                      • 24. Re: save edited datagrid change.
                                                        Sketch24 Level 1
                                                        Now you have ALL THE CODE. thanx for the help.

                                                        I'm despred.
                                                        • 25. Re: save edited datagrid change.
                                                          Sketch24 Level 1
                                                          Sorry for the BIG code. let me remove some stuff and I'll post juste de basic. One datagrid. One button. 2,3 contents for the datagrid
                                                          • 26. Re: save edited datagrid change.
                                                            Sketch24 Level 1
                                                            <?xml version="1.0" encoding="utf-8"?>
                                                            <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="1024" horizontalAlign="center" verticalAlign="middle"
                                                            verticalScrollPolicy="auto">

                                                            <mx:XMLList id="associesINFO">
                                                            <associe>
                                                            <nom>Alexandre Millette</nom>
                                                            <dim>N/A</dim>
                                                            <lun>15:00-19:00</lun>
                                                            <mar> </mar>
                                                            <mer>12:00-19:00</mer>
                                                            <jeu>15:00-21:00</jeu>
                                                            <ven>N/A</ven>
                                                            <sam>N/A</sam>
                                                            <tot>17</tot>
                                                            </associe>
                                                            <associe>
                                                            <nom>David Cadieux</nom>
                                                            <dim>8:00-17:00</dim>
                                                            <lun>12:00-21:00</lun>
                                                            <mar>8:00-17:00</mar>
                                                            <mer>10:00-19:00</mer>
                                                            <jeu>12:00-17:00</jeu>
                                                            <ven>8:00-17:00</ven>
                                                            <sam> </sam>
                                                            <tot>40</tot>
                                                            </associe>
                                                            <associe>
                                                            <nom>François</nom>
                                                            <dim> </dim>
                                                            <lun>7:00-16:00</lun>
                                                            <mar>6:00-15:00</mar>
                                                            <mer>6:00-15:00</mer>
                                                            <jeu>6:00-15:00</jeu>
                                                            <ven>6:00-15:00</ven>
                                                            <sam> </sam>
                                                            <tot>40</tot>
                                                            </associe>
                                                            <associe>
                                                            <nom>André C</nom>
                                                            <dim> </dim>
                                                            <lun>12:00-17:00</lun>
                                                            <mar>15:00-21:00</mar>
                                                            <mer> </mer>
                                                            <jeu> </jeu>
                                                            <ven>15:00-21:00</ven>
                                                            <sam> </sam>
                                                            <tot>17</tot>
                                                            </associe>

                                                            </mx:XMLList>

                                                            <mx:Panel x="10.25" y="67" width="913.5" height="390" layout="absolute" title="" id="info_h" cornerRadius="10" alpha="1.0">
                                                            <mx:TextInput x="10" y="10" text="14 octobre 2007" editable="true" enabled="true" borderStyle="none" color="#ff0000"/>
                                                            <mx:Button x="783" label="mettre à jour" bottom="10"/>
                                                            <mx:DataGrid id="info_dg" editable="true" enabled="true" fontFamily="Verdana" fontSize="10" width="875" dataProvider="{associesINFO}" height="268" textAlign="left" y="40" x="10" themeColor="#0080ff" borderColor="#0080ff"
                                                            allowMultipleSelection="true"
                                                            dragEnabled="true"
                                                            dropEnabled="true"
                                                            dragMoveEnabled="true">
                                                            <mx:columns>
                                                            <mx:DataGridColumn headerText="INFORMATIQUE" dataField="nom" width="150" />
                                                            <mx:DataGridColumn headerText="Dimanche" dataField="dim" width="95"/>
                                                            <mx:DataGridColumn headerText="Lundi" dataField="lun" width="95"/>
                                                            <mx:DataGridColumn headerText="Mardi" dataField="mar" width="95"/>
                                                            <mx:DataGridColumn headerText="Mercredi" dataField="mer" width="95"/>
                                                            <mx:DataGridColumn headerText="Jeudi" dataField="jeu" width="95"/>
                                                            <mx:DataGridColumn headerText="Vendredi" dataField="ven" width="95"/>
                                                            <mx:DataGridColumn headerText="Samedi" dataField="sam" width="95"/>
                                                            <mx:DataGridColumn headerText="Total" dataField="tot"/>
                                                            </mx:columns>
                                                            </mx:DataGrid>
                                                            </mx:Panel>
                                                            </mx:Application>
                                                            • 27. Re: save edited datagrid change.
                                                              ntsiii Level 3
                                                              What is your question? One question at a time, please.
                                                              • 28. Re: save edited datagrid change.
                                                                Sketch24 Level 1
                                                                ok!
                                                                1. How can I import external data in my datagrid. if it's an XML file can I update the data inside this file later. Cause like I said before, the data inside the grid have to be edit directly and the changes saved.

                                                                thanx
                                                                • 29. Re: save edited datagrid change.
                                                                  ntsiii Level 3
                                                                  That is two very different questions.

                                                                  The first is easy, using HTTPService.

                                                                  The second is harder. Reread post number 4 in this thread.

                                                                  Tracy