Widgets
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.

««12345»»»

Widgets Expand / Collapse
Author
Message
Posted 6/1/2009 9:30:12 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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.
Post #15607
Posted 6/2/2009 11:40:48 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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
Post #15619
Posted 6/2/2009 11:47:22 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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

Post #15621
Posted 6/2/2009 11:52:57 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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?
Post #15622
Posted 6/2/2009 11:59:57 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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

Post #15623
Posted 6/2/2009 12:34:28 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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?
Post #15625
Posted 6/10/2009 4:52:01 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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.
Post #15743
Posted 6/12/2009 9:37:35 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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

Post #15771
Posted 6/12/2009 9:42:54 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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.
Post #15772
Posted 6/12/2009 9:53:19 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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

Post #15773
« Prev Topic | Next Topic »

««12345»»»

Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 5:59am

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.109. 10 queries. Compression Disabled.