on 07-12-2008 12:50 PM
hi
iam trying to send table data to excel sheet where
the user can choose the location he can store the file.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0
i have gone through some sample application
ExcelEport and used the same code
StringBuffer x = new StringBuffer();
String attributeName, headerName;
String entriesName = dataNode.getNodeInfo().getName();
String entryName = entriesName + "Element";
// trim given header texts, so that XML element names adhere to the rule 'no spaces contained'.
trimHeaderTexts(columnInfos);
x.append("<?xml version='1.0' encoding='UTF-8' standalone='no'?> ");
x.append("<").append(entriesName).append("> ");
for (int i = 0; i < dataNode.size(); ++i)
{
IWDNodeElement dataNodeElement = dataNode.getElementAt(i);
x.append("<").append(entryName).append("> ");
for (Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();)
{
attributeName = (String) iter.next();
headerName = (String) columnInfos.get(attributeName);
x
.append("<")
.append(headerName)
.append(">")
.append("<![CDATA[")
.append(dataNodeElement.getAttributeValue(attributeName))
.append("]]>")
.append("</")
.append(headerName)
.append("> ");
}
x.append("</").append(entryName).append("> ");
}
x.append("</").append(entriesName).append("> ");
return x.toString();
iam getting error as type AbstractStringBuilder is not visible
can any one help plz ? it urgent?
/people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities
i have gone through the above bolg also , i am facing the same problem .
my scenario is when i click on button i need to send the
table data into excel sheet , but to the location where the user can choose to store it.
as in there should be option asking where the excel file should be stored ?
can any one help me out with this scenatio ?
Point will rewarded
thanx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Hope in your case, if you choose StringBuffer MWDS returns you a StringBuilder.....
This is because your JRE version no is 1.6(or more than 1.4)... So you ca do two things....
1. Replace all your StringBuffer with String... (Really Dont Sounds good)
or
2. Degrade your JRE to 1.4...
Regards,
Srinivas.
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 have replaced the StringBuffer with String ,
but same problem presist ,
my scenario is send table data to excel sheet, where user
have feasibility to save the file. i have gone through
number of blogs, that could not help .
can any help me with this problem. sending table data to excel .
Hi,
I got the same error sometime back. I changed jdk version & problem was solved. Try java version 1.4.
Regards,
Apurva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.