retrieving data from a jtextfield of a different panel.
I have a Master/Detail panels set up in a form. Based on a date that is entered on the Master panel, thru a jbutton on the detail panel, I am reading data from a different table to load the detail panel. May problem is that while in the detail panel, how do code to retrieve the data from the master panel.
private void cmdLoadER_actionPerformed(ActionEvent e)
String workDate = ?? MasterPanel jTextField ??
ViewObject ExceptionReactorVO = panelBinding.getApplication().getApplicationModule().findViewObject("ExceptionReactorView1 ");
ViewObject CaDetailVO = panelBinding.getApplication().getApplicationModule().findViewObject("CaDetailView2");
Row currRow = CaDetailVO.createRow();
readRow = ExceptionReactorVO.first();
String ReactorNumb = readRow.getAttribute("Reactornumb").toString();
String Cause = readRow.getAttribute("Cause").toString();
Bind the jTextfield of masterpanel with some attribute of any viewobject, and it will allow u to access its value by getting the current row of that viewobject and by using row.getAttribute("...") of the attribute to which u have bound ur textfield
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL