on 10-11-2007 2:40 PM
Is there a way to print the contents of a table from web dynpro? Any help with this is appreciated! Thanks in advance.
Hi,
I am sure u can iterate thru the node context and get values from the attributes... Let us know if that helps.
Cheers!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried following this tutorial to export the data to excel:<a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0&">Exporting Table Data Using On-Demand Streams</a>.
But when I attempt to open the excel file as an XML list, I get an error "The specified XML source does not refer to a schema. Excel will create a schema based on the XML source data." Nothing shows up then.
Any ideas about this? I am using excel 2003.
Hi,
You can print all values of the table there it self.
Following is the code for this:
int size= wdContext.nodeTable().size();
Iterator iter = wdContext.nodeTable().getNodeInfo().iterateAttributes();
for (int i = 0; i < size; i++) {
IWDNodeElement element = wdContext.nodeTable().getElementAt(i);
while (iter.hasNext()) {
IWDAttributeInfo elem = (IWDAttributeInfo) iter.next();
wdComponentAPI.getMessageManager().reportSuccess(elem.getName()"="element.getAttributeValue(elem.getName()));
}
}
Regards,
Praveen
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.