I want to store text data on edit field when I press button on app designer Matlab
    6 次查看(过去 30 天)
  
       显示 更早的评论
    
I am creating an app that can allow professors to store text data as an email draft on matlab on  a specific subject and type like (lecture, Lab, Tutorial). 
I want to store text data on edit field when I press button on app designer Matlab on the professor. I also want to callback that stored text in a sendmail command when I press the button on tab 2 on student app after filling in the specific subject code and subject type.
0 个评论
采纳的回答
  Simon Allosserie
      
 2021-3-1
        For your first question, create a Callback function for that button. I assume you have somewhere an input field where the desired text is stored. Save that to a propery, lets call it desiredText. In the callback function, it should look something like this
%somewhere when text is inputted
    app.desiredText = app.InputEditField.Value;
%then later in your button callback function
function ButtonPushed(app, event)
    app.EditField = app.desiredText; %display your text in a specific text field.
end
As that specific text is a property, you are also able to recall that text in your sendmail command.
0 个评论
更多回答(0 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Web Services 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

