Hello ! I'm actually working on a website that consists to organise some galas for children between differents pool, to add every results from every swimming pool (that could be in foreign countries). Then results for all the galas are automatically generated and send to manager. Now, about Flash ^^ I'm taking lists of strokes, length, and categories from a MySql database (middleware PHP), and putting them into some ComboBox. Then, the coordinator or manager which is creating the gala has to tell the differents strokes that children will have to swim. He's choosing between the combobox, then he validates, and a DataGrid is automatically filled with what he want to include in the gala (he can also remove a line from a datagrid). Now I've got my trouble... ^^ My DataGrid is called : myDataGrid (original isn't it?) myDataGrid has 3 columns called A, B and C. To add something on it I'm using that syntaxe : myDataGrid.addItem({A:lengthList_cb.text,B:categoryList_cb.text,C:strokeList_cb. text}) ; Now I would like thant when the coordinator will click on the "Validate Button", a function will parse every line of the DataGrid, treat it, and add it into the MySql Database. My question is : how can I obtain values that are contained into the grid? I tried lot of things such as myDataGrid.getColumnAt(0), myDataGrid.text, myDataGrid.labelField, and mony others without find the answer :'( Here U are.. I'm sure it's just a little thing but it's been almost 2 days since I am on that problem and I began to have some headeaches ^^ Cheers, Regards, JC TURIN Mon probleme est le suivant : comment acceder aux valeurs d'une ligne ? (j'ai besoin de traiter chaque ligne au sein de la base de donnees) Et quel est la syntaxe pour acceder au contenu d'une cellule ? J'ai essaye avec le .getColumnAt(), le .text, le .labelField, et de nombreux autres encore, mais sans succes ^^ Ca doit surement etre un truc tout bidon, mais ca me bloque un poil. PS: desole pour l'absence des accents, mais sur les claviers qwerty ce n'est pas trop possible..... See Ya ! Et merci,
I'll answer to me ^^ I've just found the answer, maybe it could help someone one day. To access data, use that : var myVar = myDataGrid.getItemAt(num_line).nameColumn ;
Don't see what you're looking for? Try a search.
|