cancel
Showing results for 
Search instead for 
Did you mean: 

To pass data to smart forms

Former Member
0 Kudos

i want to print a form which is developed in webdynpro fo rjava,here adobe is not working.So what iam trying is to use smart forms ,But is it possible to display that smartforms in portal...?

or is there any other way to print the details which are in the webdynpro application.

This is very urgent for me pls reply to me.

Surely i'll give points,,,,,

Warm regards

shanto aloor

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

U can display a Smart form in portal.

In RFC Export add a field of type Binary and populate smart form into that binary field.

In Webdynpro view after Executing the RFC

byte[] pdfContent =

wdContext.current<output_node>.get<BinaryExport>();

IWDCachedWebResource pdfResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);

try

{

/* PdfUrl is of type String */ wdContext.currentContextElement.setPdfUrl(pdfResource.getURL());

}

catch(Exception e)

{

wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);

}

Thanks,

Sunitha

Former Member
0 Kudos

hi sunitha,

thanks for ur reply....

how can i print that ...........

'coz i'am using this for the first time pls send me the code also.

also tell me how can i access smartform in portal.

pls reply to me as earlier as possible.

warm regards

shant aloor

Former Member
0 Kudos

Hi ,

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.

Thanks,

Sunitha Hari

Sunitkroy
Participant
0 Kudos

Hi shanto,

check it out

[Displaying a Smart form as PDF in Enterprise portal |http://saptechnical.com/Tutorials/Smartforms/SFinEPasPDF/Page1.htm]

Sunit

Answers (1)

Answers (1)

Former Member
0 Kudos

hi thanks it is working properly