cancel
Showing results for 
Search instead for 
Did you mean: 

Passing value from Adobe Interactive form, to the Webdynpro Application

Former Member
0 Kudos

Hi,

I have followed all the tutorials on interactive forms in WD for Java, & am able to successfuly display my context data in an interactive form.

However, i need help with the following:

1. Online scenario:

User has filled details in an interactive form & clicks on the submit button.

The Data from the form is NOT getting passed back to the WebDynpro application.

2. Offline Scenario:

User has filledup a pdf file(form), & has uploaded the form to the webdynpro application, using the file-upload UI element.

How do i read the data that the user has entered in that pdf file?

Any help with regard to these two queries, will be appreciated.

Thanks,

Hanoz

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Hanoz,

After updating the XACF version, the porblem i am now facing, is that:

The context node contains only those values, as are present in the form. If i update the values in the WD input fields & click the button, the values get changed to the values present in the InteractiveForm!!!!

The values changs are possible only if i change the values in the Form itself.

This is because the new value which you are entering from WD are getting overwrite by the value of the abode form.

So it is recommenced that both form UI element and WD UI element should not mapped to same context attribute. You should create seperated context attribute for both of them and need to write code for copying the value from one context attribute to other.

Regards,

Vikram

Answers (1)

Answers (1)

amolgupta
Active Contributor
0 Kudos

1) Online Scenario

check if the context mapping between UI elements and Context is properly done

check if the cardinality of the Context is alright.

2) Offline Scenario

you will have two views.

one upload view

and one interactive form view

in the upload view use the File Upload UI element.

in the Interactive Form View.... use the same view which you used to create the offline form, thus the interactive form UI element will already know the structure of data and the context mapping in the pdf file when you upload it.

Add the following line of code to the

method wdDoInit.

wdContext.getNodeInfo().getAttribute

("pdfObject").getModifiableSimpleTyp

e();

Add the following line of code right

before

wdThis.wdFirePlugOutToDisplay()

in the method onActionShowForm().

wdThis.wdGetTravelRequestCompControl

ler().wdGetContext().currentContextE

lement().setPdfObject(wdContext.curr

entContextElement().getPdfObject());

in the interactive form view, change the property of the interactive form.... MODE to usePdf.

regards,

-Ag.

Former Member
0 Kudos

Hi Amol,

thanks a lot for the offline scenario, let me check it out.

For the online scenario, the problem was the XACF version installed on my pc. I upgraded it to the latest version, & the problem is resolved, partly.

But now the problem is reversed.

Now on clicking of the button, i can pass value from InteractiveForm, to the WD application.

But now i am not able to pass value from WD application, to the Interactive form.

My scenario is as follows:

There is one view. It has one container & interactive form.

The container contains input fields. Both, the input fields & the InteractiveForm, are mapped to the same context node.

There is one button in the container, & another in the Interactiveform.

After updating the XACF version, the porblem i am now facing, is that:

The context node contains only those values, as are present in the form. If i update the values in the WD input fields & click the button, the values get changed to the values present in the InteractiveForm!!!!

The values changs are possible only if i change the values in the Form itself.

Thanks,

Hanoz

amolgupta
Active Contributor
0 Kudos

hi Hanoz,

its quite some time i last worked on Interactive Forms. as far as i remember even we had some troubles the same way.

this may be sort of a limitation as two different products are involved SAP/ADOBE.

to some extent it may be something logical/technical...

like if you have the same context mapped to two UI elements...

one in WebDynpro and other in Interactive form....

u write 4 in one and 2 in another.

how will it determine which one to take value from...

as you say it is giving priority to Interactive form.

its quite possible that there is nothing wrong with your system, just the limitation of the solution.

regards,

-Amol Gupta

Former Member
0 Kudos

Hi Amol,

I just read your solution for the offline scenario, & i realised that i have already done all that you have mentioned.

Regarding the online scenario, if what you say is true, in that case one should raise this issue with SAP, in the meantime, look for some way to bypass this problem.

Regards,

Hanoz

Former Member
0 Kudos

Hi Amol,

For the offline scenario, can you please clarify why do we need to do:

wdContext.getNodeInfo().getAttribute("PdfSource").getModifiableSimpleType();

in the doInit of the view??

Regards,

Hanoz