Bonjour à tous,

J'ai un formulaire avec 3 champs et un tableau. Une fois le tout rempli on valide. Je récupère les valeurs de mes 3 champs sans problème, où ça se complique c'est pour le tableau. Je remplis le tableau avec les données sous json, j'aurais voulu les sortir sous le même format. Mais j'arrive pas à récupérer les données.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
 
var jsonTab = ".$current_num->getJsonTab($current_num->getDefaultTabNum()).";
 
var reader = new Ext.data.JsonReader({
	idProperty: 'id_act',
	fields: [
                 //les champs			
		]
});
 
var writer = new Ext.data.JsonWriter({
	encode: true,
	writeAllFields: false
});		
 
var store = new Ext.data.GroupingStore({
        reader: reader,
	writer: writer,
        data: jsonTab,
	sortInfo: {field:'id_disc', direction:'ASC'},			
        groupField: 'discipline'
});		
 
function  fct_submit() {
	formCreationListe.form.submit({});
};
 
var formCreationListe = new Ext.FormPanel({
	labelWidth: 75,
	width: 960,
	standardSubmit: false,
	method: 'POST',
	url: 'index.php?page=ajout_liste',
	frame:true,
	title: '...',
	renderTo:'formCreationListe',
	bodyStyle:'padding:5px 5px 0',
	defaultType: 'textfield',
	labelWidth: 200,
	items: [{
		fieldLabel: 'Name ',
		name: 'nom',
		allowBlank:false,
		width: 250
		},new Ext.form.ComboBox({
			typeAhead: true,
			triggerAction: 'all',
			transform: 'selectPj',
			name: 'selectPj',
			editable: false,
			fieldLabel: 'Project ',						
			lazyRender: true,
			listClass: 'x-combo-list-small',
			width: 250
		}),{
		fieldLabel: 'Colonnes (séparées par ;) ',
		name: 'colonnes',
		width: 250				
		},new Ext.grid.EditorGridPanel({
			store: store,
			columns: [
                        //colonnes du grid
			],
			view: new Ext.grid.GroupingView({
				forceFit: true,
				showGroupName: false,
				enableNoGroups: false,
				enableGroupingMenu: false,
				hideGroupedColumn: true
				}),					
			autoExpandColumn: 'activite',
			title: 'Numerotation',
			height: 400
			})
		],
	buttons: [{
		text: 'Validate',
		handler : fct_submit
		}]
	});
Merci, bonne journée.