on 10-29-2007 11:38 AM
Hi,
I want to print my table contents in the next page by clicking on a button. ie., kind of a print preview. I'm using netweaver2004s.
Thanks & Regards,
Suresh
Hi,
1)Create a new View, map the context node which is bound to the table to the context of this view.
2) Iterate throught the element and print them to the screen.
3) Embed this view to a window.
4) on click of the button open the newly created window.
Code to iterate through the nodes
for(int x=0; x< wdContext.nodeTest().size(); x++) // Replace nodeTest with yours
{
ITestElement nodeElement = wdContext.nodeTest().getElementAt(x);
nodeElement.getAttribute("TestAttribute"); //Replace with yours
nodeElement.getAttribute("TestAttribute"); //Replace with yours
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.