Create Interactive Form UI element Dynamically
Hi Experts,
I have a requirement according to which i need to create multiple PDF forms at runtime.
The approach that i would be using is creating interactive form U I element at runtime.
So as a test application in a views wdDoModifyView i added the below
In the do modify view i have added the below piece of code
if (!firstTime)
IWDNodeInfo l_sel_nodeInfo =
wdContext.nodeCtx_vn_binary().getNodeInfo();
IWDAttributeInfo l_attrInfo =
l_sel_nodeInfo.getAttribute(
IPrivateAdobeView1.ICtx_vn_binaryElement.CTX__VA__BINARY);
if (view.getElement("adobeFrm") == null) {
IWDTransparentContainer container =
(IWDTransparentContainer) view.getElement(
"RootUIElementContainer");
IWDInteractiveForm adobeFrm =
(IWDInteractiveForm) view.createElement(
IWDInteractiveForm.class,
"adobeFrm");
adobeFrm.bindDataSource(
wdContext.nodeCtx_vn_adobe().getNodeInfo());
adobeFrm.setMode(WDInteractiveFormMode.UPDATE_DATA_IN_PDF);
adobeFrm.setTemplateSource("AdobeView1_InteractiveForm.xdp");
adobeFrm.setDisplayType(WDInteractiveFormDisplayType.NATIVE);
adobeFrm.bindPdfSource(l_attrInfo);
adobeFrm.setVisible(WDVisibility.VISIBLE);
container.addChild(adobeFrm);
adobeFrm.setTemplateSource("AdobeView1_InteractiveForm.xdp");
But now i am stuck at this point as its giving me null pointer exception on execution.
Could some one provide me links to the tutorials which contains dynamic creation of Interactive form UI element
Thanks in advance!!!
Hi Rekha ,
I do have this link but as per this tutorial the layout of adobe form is generated during design time whereas i need to create the mulitple PDF at runtime.These PDF need to be displayed to the user . The approach that i am using is to create Interactiveform U I element at runtime.
The code that i tried is already provided in my first post.I need some more concrete tutorials /examples for this.
Basically i need to know how to add elements like a table/textfield and data within those table/ textfields in an adobe form(Interactive form UI element) at runtime.
Regards ,
Navya.
Edited by: navya_4321 on Feb 2, 2011 6:22 AM
Similar Messages
-
Issues in creating Interactive Form UI element at runtime.
Hi Experts,
I have a requirement according to which i need to create multiple PDF forms at runtime.This i need to do using webdynpro Java.
The approach that i would be using is creating interactive form U I element at runtime.
So in a test application in views wdDoModifyView i added the below code i.e.
In the do modify view i have added the below piece of code
if (!firstTime)
IWDNodeInfo l_sel_nodeInfo =
wdContext.nodeCtx_vn_binary().getNodeInfo();
IWDAttributeInfo l_attrInfo =
l_sel_nodeInfo.getAttribute(
IPrivateAdobeView1.ICtx_vn_binaryElement.CTX__VA__BINARY);
if (view.getElement("adobeFrm") == null) {
IWDTransparentContainer container =
(IWDTransparentContainer) view.getElement(
"RootUIElementContainer");
IWDInteractiveForm adobeFrm =
(IWDInteractiveForm) view.createElement(
IWDInteractiveForm.class,
"adobeFrm");
adobeFrm.bindDataSource(
wdContext.nodeCtx_vn_adobe().getNodeInfo());
adobeFrm.setMode(WDInteractiveFormMode.UPDATE_DATA_IN_PDF);
adobeFrm.setTemplateSource("AdobeView1_InteractiveForm.xdp");
adobeFrm.setDisplayType(WDInteractiveFormDisplayType.NATIVE);
adobeFrm.bindPdfSource(l_attrInfo);
adobeFrm.setVisible(WDVisibility.VISIBLE);
container.addChild(adobeFrm);
adobeFrm.setTemplateSource("AdobeView1_InteractiveForm.xdp");
But now i am stuck at this point as its giving me null pointer exception on execution.
Could some one provide me links to the tutorials which contains dynamic creation of Interactive form UI element.
I do have links which show creation of input fields at run time but couldn't get any on creation of Interactive Form UI element at runtime (dynamically).
Thanks in advance!!!Hello Dan,
About the license issue, take a look at the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms">Adobe Interactive forms section on SDN</a> on the right side there is a FAQ. In the FAQ there is something mentioned about license.
When you are using NWDS04s the Adobe Document Service (ADS) is already installed. You only need to configure the ADS. Take a look at <a href="http://service.sap.com/adobe">http://service.sap.com/adobe</a> on the left click on "Media Library" --> "Documentation".
When you want to make use of Adobe Interactive forms you need a Adobe Reader 7.x.x or higher.
Hope it helps.
Kind regards,
Maarten. -
How to Display Node Data ( 100 Lines ) in INteractive form UI Element
HI All,
I have requirement to display Standard report output in interactive form UI element .I have taken the Stadard report Output to an internal table and converted into xstring format and trying to exporting to the node with attribute type xstring . and binding this attirbute to interactive form UI element PDf Source property.
But I am getting the error 'File Does not begin with %pdf- '.
pls find the below code which i am using for converting Itab Data into Xstring
CALL FUNCTION 'SOTR_SERV_TABLE_TO_STRING'
IMPORTING
text = wa_string
TABLES
text_tab = it_itab.
DATA: lv_xstring TYPE xstring.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = wa_string
IMPORTING
buffer = lv_xstring
EXCEPTIONS
failed = 1
OTHERS = 2.
CALL FUNCTION 'SCMS_FTEXT_TO_XSTRING'
EXPORTING
input_length = '7285'
FIRST_LINE = 0
LAST_LINE = 0
MIMETYPE = ' '
ENCODING =
IMPORTING
BUFFER = lv_xstring
tables
ftext_tab = it_itab
EXCEPTIONS
FAILED = 1
OTHERS = 2
Please help me on this..
Thanks in advance .
Kiran.HI
You cannot just simply convert one string to xstring and then set it in pdfsource to get the pdf.
what is required is little bit lengthy than wht you are doing right now.
you need to use adobe live cycle designer to design the form first and bound the layout UIs there to the context and then
when the pdf wll be generated it will have the data.
1. Go to transaction SFP ad create one interface there with some parameter say data.
2. create a form based on this interface.
3. in the template source property of the UI give the form you have created it will automatically create context for the import
parameter that you have given in the interface.
4. now you need to double click on the interactive form UI to open Adobe live cycle designer to design the layout of the form to
display the data that you will get form the import parameter.
5. pass the required data to the context which is created as the import parameter
these are the steps required to create a PDF form having the data passed by you from the programm dynamically.
here is a link for a demo tutorial.
[http://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro|http://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro]
thanks
sarbjeet singh -
Interactive form With a dynamic table inside that
Hi Experts,
i have an Adobe interactive form With a dynamic table inside that. Add/ Delete button is there inside the form to add and delete rows from the table. This is working fine when iam viewing the form in the preview of adobe designer. when i deploy and run the application, the dynamic table is not working, internally the rable rows are creating, but the rows are not displaying in the form.. iam getting messages(which i set) when the row is created or deleted, but its not updating on the form ..
iam using wdj
please suggest asap.
Regards
SarathHi Sarath,
Seems to be an issue with ACF. Please intall the ACF from the below link:
https://sapmats-de.sap-ag.de/download/download.cgi?id=F9RUZ3Q7TERUBSMHSXWT3UMEM59IJYIPA931VQD32A1UNAKZ6B
And also refer to the SAP note no. 1104060 and do the needful configuration.
Regards,
Arafat -
Hi,
We are using Interactive form UI element in Webdynpro ABAP.
Actually the requirement is to create SAP office documnet i.e . save this form as PDf file on desktop and then load this file in SAP as SOFM object.
Reason is that we want to use this SOFM object in workflow .
Problem is that we are not able to use FM SO_OBJECT_UPLOAD as while using this FM in web-dypro we are getting error as Front end services not available.
Do we have similar Function module / utility class which we can use for uploading the file in SAP system as Office document?
Regards,
AkshayHello Dan,
About the license issue, take a look at the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms">Adobe Interactive forms section on SDN</a> on the right side there is a FAQ. In the FAQ there is something mentioned about license.
When you are using NWDS04s the Adobe Document Service (ADS) is already installed. You only need to configure the ADS. Take a look at <a href="http://service.sap.com/adobe">http://service.sap.com/adobe</a> on the left click on "Media Library" --> "Documentation".
When you want to make use of Adobe Interactive forms you need a Adobe Reader 7.x.x or higher.
Hope it helps.
Kind regards,
Maarten. -
DM152 - Creating Interactive Forms in Web Dynpro for Java
Hi,
I'm looking for the "initial" Web Dynpro project used in "DM152 - Creating Interactive Forms in Web Dynpro for Java". Does anyone know where I can get this zip file?
Thanks in advance,
Geraldo.
[email protected]Hi Geraldo,
Refer the forum and ask Abdul or Ken to send the code
/thread/24464 [original link is broken]
Regards,
Santhosh.C -
Can we create Interactive forms only with ABAP & without using GP, or Java
Hi,
I would like to know if we can create Interactive forms only with ABAP & without using GP or Java. We want to develop an offline solution using Interactive forms, but would like to use only ABAP for creating the forms. All the documents so far either refer to creating the forms, in reference to / in sync with: ISR (Service Requests), GP (General Procedures) or Java. Can this be done with ABAP alone?
Regards,
Ramesh
Edited by: Ramesh Nallabelli on Apr 16, 2008 12:02 AMHello Ramesh,
You should be able to create Adobe Interactive Forms using only the ABAP stack (without GP, Java, etc). Please refer to the thread below. Hope it helps.
Re: help for-offline interactive forms based on sending receiving mails in ABAP
Regards,
Rao -
Interactive form in WD4A - dynamic table - adding rows
Hi,
I have a problem with dynamic table in WD4A. User can add row to table by clicking a button on form, but added rows are not transfered to mapped context node in my web dynpro application. I have made a lot of searches on SDN and I have found a lots of threads, but no answer.
Maybe this should be a way:
https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9121. [original link is broken] [original link is broken] [original link is broken] - Read adobe data manually and create context element manualy too.. But I think this should be a part of webdynpro/interactive forms framework.
Thanks for any answer!Hi, many thanks for your answer, so what do you think is the best solution for adding rows by user to interactive form's dynamic table?
Manually read xml data during submit by this way: https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9121. [original link is broken] [original link is broken] [original link is broken] ?
Or is there better solution for this? (any link to some examples, blogs, etc...)
Many thanks for any answer! -
Drop down box in interactive form UI element in webdynpro
Hello All,
I want to get a drop down list in adobe interactive form. I did the following.
1. created a simple dictionary data type and populated it with values
2. created a context and bound it to the simple dictionary type.
3. when I drag the element to the pdf page, it shows it as a drop down list.
4. when I run the application also, the drop down list comes but the values are not populated. I am not able to use the dropdown also.
What should I be doing now to get a dropdownlist that works?
Regards,
ChanderHello Chander,
what you want to create is a drop down list populated by the Web Dynpro context values. When you use drag-and-drop it just creates a regular drop down list (where you need to specify the values in the Designer).
However if you select in your tools palette the Web Dynpro tab you will find special drop down lists. So here is what you do:
1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
Cheers
Matthias -
How to create a roadmap ui element dynamically in webdynpro abap?
Dear team
iam new for webdynpro my question is how to create the road map programme dynamically using webdynpro
could you tell me what are the steps i have to take, what are the elements i have to bind?
and what code & where i have to write the code?
regards
sathyaHi Sathya,
Write the follwing code in WDDOMODIFYVIEW method to create a Dynamic ROADMAP and also create an attribute of
type string to control the selection of steps in road map.
method WDDOMODIFYVIEW .
data : lr_ele type ref to if_wd_view_element.
data : lr_rm type ref to cl_wd_road_map.
data : lr_step type ref to cl_wd_road_map_step.
data: lr_container type ref to cl_wd_transparent_container.
data : lr_flowdata type ref to cl_wd_flow_data.
CALL METHOD view->get_root_element
receiving
root_view_element = lr_ele.
lr_container ?= lr_ele.
CALL METHOD cl_wd_road_map=>new_road_map
EXPORTING
id = 'ROADMAP'
receiving
control = lr_rm.
CALL METHOD lr_rm->bind_selected_step
EXPORTING
path = 'VALUE'.
CALL METHOD cl_wd_flow_data=>new_flow_data
EXPORTING
element = lr_rm
receiving
control = lr_flowdata.
CALL METHOD lr_container->add_child
EXPORTING
index = 1
the_child = lr_rm.
CALL METHOD cl_wd_road_map_step=>new_road_map_step
EXPORTING
id = 'ONE'
name = '1'
receiving
control = lr_step.
CALL METHOD lr_rm->add_step
EXPORTING
index = 1
the_step = lr_step.
CALL METHOD cl_wd_road_map_step=>new_road_map_step
EXPORTING
id = 'TWO'
name = '2'
receiving
control = lr_step.
CALL METHOD lr_rm->add_step
EXPORTING
index = 2
the_step = lr_step.
CALL METHOD cl_wd_road_map_step=>new_road_map_step
EXPORTING
id = 'THREE'
name = '3'
receiving
control = lr_step.
CALL METHOD lr_rm->add_step
EXPORTING
index = 3
the_step = lr_step.
endmethod.
Then you can use the context attribute to navigate between the steps and do respective actions. -
How to create interactive forms in ABAP WebDynpro
Hi Experts,
we are trying to create our first interactive form with the "how to guide for ABAP WebDynpros".
Unfortunatelly we have a big problem on Step 17, where we want to save the created WebDynpro Application. After safing the system shows a pop up with following error message:
"you are not authorized to use function - Netzwerkadministration". Although we have all the necessary access rights in the system (ERP/Developer User).
But if we go on and create a service call (it's a guided procedure) for an existing BAPI, we can't select the function module interface parameters that we want to add to the context via checkboxes. There are no checkboxes available. but the how-to-guides shows checkboxes.
is maybe the first error the reason that we can't select the function modules? Please help. If you need the how-to-guide, please give me your eMail and I will provide it to you immediately.
Thank you very much in advance and regards,
H.-J. KerstenHello
I got the same problem when i try to create WD ABAP application.
Did you find the solution?
Regards
Nir -
How to create interactive forms using Webdynpro for ABAP
Hi All,
I have worked on Webdynpro for ABAP, and now I want to start creating adobe interactive forms using Webdynpro for ABAP. Please provide me with basic examples to start.
Also Please provide me introduction as how interactive forms are related to ISR senarios.
Thanks in Advance.
PhaniHi Varun!,
Can you please send me also the above said step by step tutorial on [email protected]
and can you please also guide me any configurations to be done on Sneak Preview SP12 before developing the interactive forms.
Thank you in advance.
regards
Ravi -
A font package is requried to correctly display after creating interactive form in livecycle
SO I created a form in acrobat. When I save it, and open it in reader, it opens it fine. But I need to make the fields expandable, so I go to livecycle, and create an interactive form with flowable layout. Once i save it, and open it in reader, it instructs me to download chinese font package. There are no chinese fonts in this document. And I only get this message after saving the form in LiveCycle. Any ideas? It just started happening last week. Never had a problem before that.
Hey buddy, I experienced similar problem.
When you creating the form, make sure the font you are selecting is a popular font. For example, if you change it to New Time Roman instead of SimSun, it will work.
Try it! -
Can we create interactive forms in IDES ?
hi experts
What are the pre requisite required to generate pdf forms.can we learn in IDES system ? What s/w required ?
Regards,
AnwarIn ides it won't support for interactive forms.
adobe life cycle designer has to be available for creating layout.
that is available in ecc6.0 version. -
I used to be able to turn regular documents and PDFs into interactive forms by adding fields. I don't remember what program this was but I no longer have it. I wonder if Adobe CreatePDF has this function.
CreatePDF does not have this function. To add interactive form fields to a PDF, you'll need to use either Adobe Acrobat or our FormsCentral service.
Maybe you are looking for
-
Problem with Serial numbers after upgrade
Hello, I updated an existing installation from BO2007 SP01 PL05 to BO2007 SP01 PL09 After the update in the form Serial Number Selection it's impossible to find any serial number, the cursor move to the right row but I get the message "Serial Number
-
I want to create a workflow where I select a file and then use spotlight to search for it's file name with the intent of finding identical files like it within my homefolder (based simply on file name) in an attempt eliminate redundant files. I tried
-
Combined text/graphics OCR problem
Hi. I need to convert a dozen of manuals from tiff to (editable) Word files. Each tiff file is one manual consisting about 50 pages. There are graphics on some pages with words and/or numbers in it (technical schemes). When I open them in Adobe Acrob
-
Slow performance with macbook pro retina
Saving an image (JPEG) with my lightning fast new macbook pro 2012 retina edition takes 30-60 seconds. Any ideas why? Mountain lion Mac OS, 8GB RAM. Can't upgrade RAM but shouldn't have to! I moved images to external hard drive since I was fillin
-
Where, Group By, Having, Order --- Usage sequence?
Hi Can anyone tell me the sequence in which below clauses can be placed: Where, Group By, Having, Order by Moreover can we use Having after where and before Group By? Thanks!! http://gurunguns.wordpress.com