<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/137960</link>
    <title>MATLAB Central Newsreader - integrating two gui</title>
    <description>Feed for thread: integrating two gui</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 14 Dec 2006 10:12:12 -0500</pubDate>
      <title>integrating two gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/137960#347694</link>
      <author>siva</author>
      <description>hi i have some problem with matlab gui&lt;br&gt;
&lt;br&gt;
i created gui with many text boxes that are used to get user datas like&lt;br&gt;
&lt;br&gt;
name ,address etc and when the user pushes the push button it connects&lt;br&gt;
tothe ms access database and loads the data in to the database.i have&lt;br&gt;
two submenus in this gui called getdata and delete....&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
once i click getdata a new figure window will open(this is the second&lt;br&gt;
gui i created with one text box and one push button)once the user click&lt;br&gt;
&lt;br&gt;
the push button it, get the data entered by the user in the editbox(2nd&lt;br&gt;
gui) and should connect to the databse.....but i am getting&lt;br&gt;
error like&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Error in =3D=3D&amp;gt; untitled2&amp;gt;submit_Callback at 84&lt;br&gt;
usrdata=3Dget(handles.dataretrieve,'string');&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Error in =3D=3D&amp;gt; &amp;lt;a&lt;br&gt;
href=3D&quot;error:C:\MATLAB7\toolbox\matlab\uitools\gui_mainfcn.m,75,1&quot;&amp;gt;gui_mai=&lt;br&gt;
nf=ADcn&lt;br&gt;
&lt;br&gt;
at 75&amp;lt;/a&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;feval(varargin{:});&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Error in =3D=3D&amp;gt; untitled2 at 44&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gui_mainfcn(gui_State, varargin{:});&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
??? Error while evaluating uicontrol Callback.&quot;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
but if run the second gui alone it works fine and i am able to retrieve&lt;br&gt;
&lt;br&gt;
the datas from the database ..but if open the second gui through the&lt;br&gt;
first gui and when i click the push button in the second gui it&lt;br&gt;
shows the error shown above..i open the second gui by using openfig(my&lt;br&gt;
second gui name) in the sub menu editor callback in the first gui&lt;br&gt;
please help me out this.....</description>
    </item>
    <item>
      <pubDate>Tue, 02 Jan 2007 09:34:30 -0500</pubDate>
      <title>Re: integrating two gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/137960#349593</link>
      <author>siva</author>
      <description>&lt;br&gt;
&lt;br&gt;
On Dec 14 2006, 1:12 pm, &quot;siva&quot; &amp;lt;saachins...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; hi i have some problem with matlab gui&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; i created gui with many text boxes that are used to get user datas like&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; name ,address etc and when the user pushes the push button it connects&lt;br&gt;
&amp;gt; tothe ms access database and loads the data in to the database.i have&lt;br&gt;
&amp;gt; two submenus in this gui called getdata and delete....&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; once i click getdata a new figure window will open(this is the second&lt;br&gt;
&amp;gt; gui i created with one text box and one push button)once the user click&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; the push button it, get the data entered by the user in the editbox(2nd&lt;br&gt;
&amp;gt; gui) and should connect to the databse.....but i am getting&lt;br&gt;
&amp;gt; error like&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;Error in =3D=3D&amp;gt; untitled2&amp;gt;submit_Callback at 84&lt;br&gt;
&amp;gt; usrdata=3Dget(handles.dataretrieve,'string');&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Error in =3D=3D&amp;gt; &amp;lt;a&lt;br&gt;
&amp;gt; href=3D&quot;error:C:\MATLAB7\toolbox\matlab\uitools\gui_mainfcn.m,75,1&quot;&amp;gt;gui_m=&lt;br&gt;
ainf=ADcn&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; at 75&amp;lt;/a&amp;gt;&lt;br&gt;
&amp;gt;         feval(varargin{:});&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Error in =3D=3D&amp;gt; untitled2 at 44&lt;br&gt;
&amp;gt;     gui_mainfcn(gui_State, varargin{:});&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ??? Error while evaluating uicontrol Callback.&quot;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; but if run the second gui alone it works fine and i am able to retrieve&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; the datas from the database ..but if open the second gui through the&lt;br&gt;
&amp;gt; first gui and when i click the push button in the second gui it&lt;br&gt;
&amp;gt; shows the error shown above..i open the second gui by using openfig(my&lt;br&gt;
&amp;gt; second gui name) in the sub menu editor callback in the first gui&lt;br&gt;
&amp;gt; please help me out this.....</description>
    </item>
    <item>
      <pubDate>Tue, 02 Jan 2007 12:48:26 -0500</pubDate>
      <title>Re: integrating two gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/137960#349594</link>
      <author>Ofek Shilon</author>
      <description>You're probably using GUIDE-generated-guis (or you prefer to use the&lt;br&gt;
'handles' struct mechanism in your private code). I whole-heartedly&lt;br&gt;
recommend avoiding this facility, specifically in multi-gui&lt;br&gt;
scenarios. It makes heavy use of global data (setappdata, getappdata&lt;br&gt;
etc), and practically begs for clashes between two simultaneous GUIS.&lt;br&gt;
&lt;br&gt;
Have a peek at Doug's example at &amp;lt;&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=8616&amp;objectType=FILE&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=8616&amp;objectType=FILE&lt;/a&gt;&amp;gt;&lt;br&gt;
.&lt;br&gt;
&lt;br&gt;
Sorry,&lt;br&gt;
&lt;br&gt;
Ofek&lt;br&gt;
&lt;br&gt;
&amp;nbsp;siva wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Dec 14 2006, 1:12 pm, &quot;siva&quot; &amp;lt;saachins...@gmail.com&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt;&amp;gt; hi i have some problem with matlab gui&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; i created gui with many text boxes that are used to get user&lt;br&gt;
&amp;gt; datas like&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; name ,address etc and when the user pushes the push button it&lt;br&gt;
&amp;gt; connects&lt;br&gt;
&amp;gt;&amp;gt; tothe ms access database and loads the data in to the&lt;br&gt;
database.i&lt;br&gt;
&amp;gt; have&lt;br&gt;
&amp;gt;&amp;gt; two submenus in this gui called getdata and delete....&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; once i click getdata a new figure window will open(this is the&lt;br&gt;
&amp;gt; second&lt;br&gt;
&amp;gt;&amp;gt; gui i created with one text box and one push button)once the&lt;br&gt;
user&lt;br&gt;
&amp;gt; click&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; the push button it, get the data entered by the user in the&lt;br&gt;
&amp;gt; editbox(2nd&lt;br&gt;
&amp;gt;&amp;gt; gui) and should connect to the databse.....but i am getting&lt;br&gt;
&amp;gt;&amp;gt; error like&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &quot;Error in ==&amp;gt; untitled2&amp;gt;submit_Callback at 84&lt;br&gt;
&amp;gt;&amp;gt; usrdata=get(handles.dataretrieve,'string');&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Error in ==&amp;gt; &amp;lt;a&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
href=&quot;error:C:\MATLAB7\toolbox\matlab\uitools\gui_mainfcn.m,75,1&quot;&amp;gt;g&lt;br&gt;
u&lt;br&gt;
&amp;gt; i_mainf&#173;cn&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; at 75&amp;lt;/a&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; feval(varargin{:});&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Error in ==&amp;gt; untitled2 at 44&lt;br&gt;
&amp;gt;&amp;gt; gui_mainfcn(gui_State, varargin{:});&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; ??? Error while evaluating uicontrol Callback.&quot;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; but if run the second gui alone it works fine and i am able to&lt;br&gt;
&amp;gt; retrieve&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; the datas from the database ..but if open the second gui&lt;br&gt;
through&lt;br&gt;
&amp;gt; the&lt;br&gt;
&amp;gt;&amp;gt; first gui and when i click the push button in the second gui it&lt;br&gt;
&amp;gt;&amp;gt; shows the error shown above..i open the second gui by using&lt;br&gt;
&amp;gt; openfig(my&lt;br&gt;
&amp;gt;&amp;gt; second gui name) in the sub menu editor callback in the first&lt;br&gt;
gui&lt;br&gt;
&amp;gt;&amp;gt; please help me out this.....&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;</description>
    </item>
  </channel>
</rss>

