on 03-21-2011 7:17 AM
Hello,
I have created a context value attribute of type "byte" in my web dynpro view.
Now I have a requirement where I have to populate above attribute with an array of type byte. i.e. byte[]
content = this.displayPrint().getBytes("UTF-8");
wdContext.currentContextElement().setHtmlFile(content);
HtmlFile is name of my value attribute.
It is giving me following error :
The method setHtmlFile(byte) in the type IPrivatePrinttestcompView.IContextElement is not applicable for the arguments (byte[])
How can I resolve it.
Use data type "binary" instead.
See http://help.sap.com/saphelp_nwpi71/helpdata/en/76/98384162316532e10000000a1550b0/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
just convert the array.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.