Salut les developpeurs MATLAB (y)
Je travaile sur un projet MATLAB + MYSQL, alors sur le point de supprimer une entité j'ai créer un dialog box à l'aide de l'outil guide et exactement "Modal Question Dialog", alors fig2 conitient un msg de confirmation de suppression avec 2 bouton "oui" et "non", aprés le clique sur "oui" tous fonction comme il faut sauf que la dernière ligne qui s'occupe de l'affichage (nouveau affichage des entités sauf l'entité supprimé, voici le code c simple à comprendre:

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
 
function pushbutton1_Callback(hObject, eventdata, handles)
 
 
handles.output = get(hObject,'String');
 
% Update handles structure
guidata(hObject, handles);
 
% Use UIRESUME instead of delete because the OutputFcn needs
% to get the updated handles structure.
uiresume(handles.cfrm_sup_art);
 
global rowNb t_article_data t_article conn
getID=cell2mat(t_article_data(rowNb,1))
supMsg = sprintf('%s%d%s','delete from article where id_article = ',getID,';')
suppArt = fetch(exec(conn,supMsg))
t_article = fetch(exec(conn,'select * from article'))
t_article_data=get(t_article,'Data')
article_data_view = [t_article_data(:,2) t_article_data(:,17) t_article_data(:,13) ...
                                  t_article_data(:,14) t_article_data(:,7)]
set(handles.uit_article,'data',article_data_view )  % L'ERREUR EST DANS CETTE LIGNE, uit_article est inconnu pour fig2
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
 
Reference to non-existent field 'uit_article'.
 
Error in confirmation_supp_article>pushbutton1_Callback (line 163)
set(handles.uit_article,'data',article_data_view )
 
Error in gui_mainfcn (line 96)
        feval(varargin{:});
 
Error in confirmation_supp_article (line 42)
    gui_mainfcn(gui_State, varargin{:});
 
Error in @(hObject,eventdata)confirmation_supp_article('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
 
 
Error using waitfor
Error while evaluating uicontrol Callback
Alors comment identifier cet objet de type uitable Taggé "uit_article" pour une manipulation totale.
Merci d'avance.