on 04-04-2006 1:32 PM
hi, all
can some one tell me How one can print table data on click of a button in web dynpro.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a table during the design time in the normal way.
Bind table "Visibility" property to Context attribute of type "com.sap.ide.webdynpro.uielementdefinitions.Visibility" and initialize with "WDVisibility.NONE" in code.
With "onAction" event handler of button, change context attribute value to "WDVisibility.VISIBLE"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry V.S............But I have got the Solution of printButton problem and had tested it....through following code...
-
final String formattedStr = wdContext.currentContextElement().getTable_data();
final IWDCachedWebResource resource = WDWebResource.getWebResource
(
//formattedStr.getBytes("UTF-8"), WDWebResourceType.HTML
formattedStr.getBytes("UTF-8"), WDWebResourceType.HTML
);
resource.setResourceName("HTML_inline.html");
// resource.setAttachement( false );
// resource.setReadOnce( false );
wdContext.currentContextElement().setTable_dataOutput( resource.getAbsoluteURL() );
-
Regard's
Dheerendra
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.