|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/7/2009 9:55:02 AM
Posts: 38,
Visits: 147
|
|
I tired to redo the skewsessions and it still doesn't display anything on the summary page. It doesn't even show the columns or anything is just says its temporarily unavailable which is pretty weird. Wonder what the problem is...
Well, I'm trying to use the SystemHealthDAO with a sparkline widget and I trying to use your post as reference but now i'm stuck.
How do you find out the property name and ref for both the manager implementation and the one you did prior to that? Would I use the same property name a ref for all the DAOs I use?
I also wanted to know if the Java setter you called "myJavaQueryCount" is what is actually going to be input or its something different? I looked at the skewedsessions code and it didn't that but the name of the DAO.
Does all this look good so far?
1. A reference to your injected DAO object:
private SystemHealthDAO systemHealthDAO;
2. A setter for the DAO:
public void setSystemHealthDAO(SystemHealthDAO systemHealthDAO
{
this.systemHealthDAO = systemHeatlthDAO;
}
3. A manager function that retrieves the data:
public List getSystemHealth(int systemId, Timestamp startTime, Timestamp endTime)
{
return systemHealthDAO.getSystemHealthOverview(systemId, startTime, endTime);
}
Would it be possible if you gave me an example of how to use a widget to display useful information? That way I can just follow those steps.
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/7/2009 9:55:02 AM
Posts: 38,
Visits: 147
|
|
Can I get help with these errors?
compile:
[mkdir] Created dir: C:\QueryCount\build\classes
[javac] Compiling 6 source files to C:\QueryCount\build\classes
[javac] C:\QueryCount\src\java\com\teradata\portlets\querycount\service\impl
\QueryCountManagerImpl.java:27: cannot find symbol
[javac] symbol : class QueryCountDao
[javac] location: class com.teradata.portlets.querycount.service.impl.QueryC
ountManagerImpl
[javac] private QueryCountDao myJavaQueryCountDAO;
[javac] ^
[javac] C:\QueryCount\src\java\com\teradata\portlets\querycount\service\impl
\QueryCountManagerImpl.java:45: cannot find symbol
[javac] symbol : class Timestamp
[javac] location: class com.teradata.portlets.querycount.service.impl.QueryC
ountManagerImpl
[javac] public List getMyQueryCountData(int systemId, Timestamp startTim
e, Timestamp endTime)
[javac] ^
[javac] C:\QueryCount\src\java\com\teradata\portlets\querycount\service\impl
\QueryCountManagerImpl.java:45: cannot find symbol
[javac] symbol : class Timestamp
[javac] location: class com.teradata.portlets.querycount.service.impl.QueryC
ountManagerImpl
[javac] public List getMyQueryCountData(int systemId, Timestamp startTim
e, Timestamp endTime)
[javac]
^
[javac] 3 errors
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/8/2009 5:31:22 PM
Posts: 30,
Visits: 55
|
|
You probably need to add the imports for the missing symbols. Ie.
import com.teradata.dcs.data.dao.QueryCount;
import java.sql.Timestamp;
Viewpoint Framework Development
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/7/2009 9:55:02 AM
Posts: 38,
Visits: 147
|
|
|
Alright. I deployed it and so far so good. Nothing displays because I know I have to edit the summary page but is that all?
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/8/2009 5:31:22 PM
Posts: 30,
Visits: 55
|
|
In regards to your first inquiry on this page. Since you are getting an error with SkewedSessions, take a look at the stack trace that is generated when you add the portlet to the page. It will give you loads of information about the issue(s) you are having. This will answer your "Wonder what the problem is..." statement. ;^)
Viewpoint Framework Development
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/7/2009 9:55:02 AM
Posts: 38,
Visits: 147
|
|
|
Thanks. Could I get feedback on the other questions?
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/7/2009 9:55:02 AM
Posts: 38,
Visits: 147
|
|
|
Does anyone have any kind of sample project involving widgets other than the one included in the PDK? I'm really in need on some sort of material I can use for reference.
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/8/2009 5:31:22 PM
Posts: 30,
Visits: 55
|
|
Take a look at the Widgetopia portlet in the PDK for examples. The Widgetopia portlet has examples of how to use all the different widgets that are available.
Viewpoint Framework Development
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/7/2009 9:55:02 AM
Posts: 38,
Visits: 147
|
|
|
Yeah, I looked at that but It really doesn't go into details as far as coding. I'm trying to learn how to create widgets populated with meaningful data.
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/8/2009 5:31:22 PM
Posts: 30,
Visits: 55
|
|
It shows you exactly what you need to know to populate each widget with meaningful data. It is the simplest available example you will find. The WidgetopiaManagerImpl.java creates all of the models with data. Each model is then put into the view in the WidgetopiaViewController.java. Each model is then passed to its proper tag in the summary.jsp. I would highly recommend you got back and understand this portlet in its entirety if you want to learn widgets.
Viewpoint Framework Development
|
|