on 04-17-2008 7:15 AM
Hai
i am trying to display the smartform from webdynpro java.I need your help in this issue.Please provide step by step procedure to achieve this scenario
Regards
Dhinakaran J
Hi ,
In RFC Export add a field of type Binary and populate smart form into that binary field.
In Webdynpro view
Insert UI of element IFrame and bind the Source property to pdfUrl value attribute of type string.
byte[] pdfContent = wdContext.Current<ouputnode>().get<Binary Element>;
IWDCachedWebResource pdfResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);
try
{
wdContext.currentContextElement().setPdfUrl(pdfResource.getURL());
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
}
The above code will display the smartform in the Iframe element.
Regards,
Sunitha Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai
forget about above blog.
i am calling smartform from webdynpro java.
just i have written the following syntax what you said in your previous mail...
inpsmart.setEmpno("00636364");
inpsmart.setMonth("03");
inpsmart.setYear("2008");
wdContext.node<name>().bind(inpsmart);
execute
*********
wdContext.current<node name>().modelObject().execute();
String pdfContent =wdContext.current<node>Element().getTdformat();
byte[] data= pdfContent.getBytes();
IWDCachedWebResource pdfResource = WDWebResource.getWebResource(data,WDWebResourceType.PDF);
try
{
wdContext.currentContextElement().setPdfUrl(pdfResource.getURL());
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
}
i dont see anything in the iframe.
i.e that smart form will not display in the iframe
kindly guide me
Dhina
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.