cancel
Showing results for 
Search instead for 
Did you mean: 

error as type AbstractStringBuilder not visible

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thanx

srinivas_sistu
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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 .

Former Member
0 Kudos

Please see your last post problem sending data to excel sheet,

there i answered for your question. (The application is modified version of the blog that you are pointed in this post.)

Vinod

Former Member
0 Kudos

Hi,

I got the same error sometime back. I changed jdk version & problem was solved. Try java version 1.4.

Regards,

Apurva