Skip to Content
author's profile photo Former Member
Former Member

PDK PortalDataViewer "Could not retrieve data"

Hi all,

I try to access to a local mysql DB to render some data in a PortalDataViewer.

But I always get an errormessage: Could not retrieve data.

Here is the relevant part of the code:

******************************************

System.err.println(sss);

Statement std = con.createStatement();

ResultSet res = std.executeQuery("select * from company");

/*while(res.next())

{

System.out.println(res.getString("cust_no"));

}*/

con.close();

ISource pdvSource = portalDV.createSource(request, res);

portalDV.setSource(pdvSource);

***********************

The SQL statement is fine-when I outcomment the result- I get the data in the server output window.

But in the IView I get the errormessage Could not retrieve data.

Thanks for your help!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 09, 2003 at 11:12 AM

    Hi Antonio,

    PDV is not a magic connection tool. It is just an implementation of the table view control. if you like to connect please read the tutorial for JDBC at java.sun.com or the section in the J2EE Server documentation (If you use J2EE Server.

    Best Regards,

    Oliver

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.