on 07-15-2005 2:32 PM
Hi,
I have an iView that makes a R/3-connection and receives a result-table. I can get the metadata of the table
IRecordMetaData meta = structure.retrieveMetaData();
and I can ask the metadata about the column-count and column-names
for (int i = 0; i < meta.getColumnCount(); i++) {
String columnName = meta.getColumnName(i);
}
but asking for the column-type
meta.getColumnType(i);
raises the error "java.lang.NoClassDefFoundError: com/sap/mdi/ddtypes/DDObject"
Does anyone have any idea?
Thanks and Regards
Padmaja
You could do either of the following two things.
1. Add SAPmdi.jar to Portal-INF->lib folder of your par project.
2. add the following line: "reference service:eisconnector library:com.sap.mdi" to the reference.txt file
PS: Please reward points if the problem is resolved.
Message was edited by: Prakash Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the response. I added the SAPmdi.jar into Portal-INF->lib and also added reference "service:eisconnector library:com.sap.mdi" into portalapp.xml file but it gives me the error "couldn't find the portal application com.sap.mdi".
How different is reference.txt file from portalappp.xml.
Thanks and Regards
Padmaja
Hi Padmaja,
Don't add it to the portalapp.xml. <b>I never told you to add it to the portlapp.xml.</b> If you are going to <b>add the SAPmdi.jar to portal-info->lib directory then you don't need to add the line in reference.txt</b>. Reference.txt is a global file for storing all the references to the library being used by portal. Test your code without adding it to your portlapp.xml and it will work.
Prakash.
h
User | Count |
---|---|
76 | |
10 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.