![web dynpro for firefox web dynpro for firefox](http://blog.mozilla.org/hacks/files/2014/06/readability.png)
LO_EL_CONTEXT = WD_CONTEXT->GET_ELEMENT( ).
#Web dynpro for firefox pdf#
So I use ABAP CONCATENATE command to form the PDF download file name and set it to the context attribute PROFORMAPDFFILENAME as seen below.ĭata LO_EL_CONTEXT type ref to IF_WD_CONTEXT_ELEMENT.ĭata LS_CONTEXT type WD_THIS->ELEMENT_CONTEXT.ĭata LV_PROFORMAPDFFILENAME type WD_THIS->ELEMENT_CONTEXT-PROFORMAPDFFILENAME. Please check the below properties screen of the File_Download UI control and make sure you have configured the data, fileName, mimeType and text attributes of the element.Īlthough it is an alternative to fix the Adobe Form output file name to a standart name, I choose to include the ID of the parent record. On our Web Dynpro component, we will use the File_Download (FileDownload) UI control as a link button which enables SAP users to display or download the Adobe Form output directly from web browser. On the targeted area on Web Dynpro, right click on container form element and choose "Insert Element"Ĭhoose the new Web Dynpro element type as File_Download FileDownload as seen below.
![web dynpro for firefox web dynpro for firefox](https://www.b4x.com/basic4android/images/firefox_OGPR2uGFx5.png)
SAP Web Dynpro developer can now place the FileDownload user interface element on the Main view by switching to the Layout tab. The new attribute Adobe_Form should have data type XSTRING. Switch to Context tab on Web Dynpro View, create a node with name PDF.Īdded an attribute named ADOBE_FORM under the PDF node. In this step, ABAP programmers will create context attribute to store the pdf file source data.įollowing screenshot gives an idea how the context is created for storing Adobe Form source data for the Web Dynpro. The pdf file will be created from Adobe Forms output.Īfter Adobe Form output file name, let's configure the Web Dynpro context to store Adobe Form binary data.
![web dynpro for firefox web dynpro for firefox](https://i.ebayimg.com/images/g/PH4AAOSw1DNhf-Gg/s-l400.jpg)
This context will be used to store the file name of the.
#Web dynpro for firefox how to#
The last step will be how to code in ABAP to populate the context data.įirst of all, let's create the PROFORMAPDFFILENAME attribute in context data under root Context node as follows. Then I will place FileDownload user interface (UI) element on the Web Dynpro view layout.įollowing these steps, we can then continue with the step where FileDownload control data is bound to context data. In this Web Dynpro tutorial, I will now summarize the steps that the ABAP developer will create the related context elements on Web Dynpro component. I assume that the ABAP programmer has already created the Adobe Form output using SFP SAP transaction code so the Adobe Form is ready.