Highlighted

Fragment works standalone but not when inserted in a form

Elaine_Schmitz

23-03-2009

I have a search fragment. When I open the fragment and click "Preview" in designer. I click on the "search" button, and it executes a web service that retrieves info from a database and displays it into a table. Everything is working beautifully. The fragment is set to Interactive, and Dynamic XML form.



I now create a new form and I insert this search fragment into the form. This form is also set to Interactive, and Dynamic XML form. Now, when I click on the "search" button, all of the javascript behind the button executes (i.e. my messageBox debugging messages) but the web service that retrieves the database info doesn't seem to execute.



What am I missing? I'm perplexed as to why the fragment works stand-alone but doesn't want to work when incorporated into a parent form.



Any ideas?

Replies

Highlighted

Elaine_Schmitz

23-03-2009

Hi Paul, yes I have acrobat pro and am using the pdf viewer for previewing both the standalone fragment and the fragment when it's inside a form.
Highlighted

Elaine_Schmitz

23-03-2009

Nope, no errors in the java debugger console.

The fragment is an xdp (Adobe XML Form) - with form properties "Interactive Form" and "Dynamic XML Form"



The "parent" form that contains the fragment is an xdp with the exact same form properties as the fragment.



Here's what's in the debugger console, just general info:

Acrobat JavaScript Debugger Functions Version 7.0

Acrobat Database Connectivity Built-in Functions Version 8.0

Acrobat EScript Built-in Functions Version 8.0

Acrobat Annotations / Collaboration Built-in Functions Version 8.0

Acrobat Annotations / Collaboration Built-in Wizard Functions Version 8.0

Acrobat Multimedia Version 8.0

Acrobat SOAP 8.0



Anything else I can check?

--Elaine
Highlighted

Elaine_Schmitz

23-03-2009

I noticed this in the "log" panel at the bottom of Designer:



"Invalid Version: The current version of the XFA Template model exceeds the capability of Acrobat / Adobe Reader 8.1.

PDF Generated Successfully.

Form version is higher than target version. This form may not run properly on target.



2 warnings / errors reported."



Does this explain why the fragment works but the form does not?



Sign me still-learning,

Elaine
Highlighted

Elaine_Schmitz

23-03-2009

Lastly, one more thing... when I open the fragment standalone, I get the same "current version of the xfa template model" warning, but the fragment calls the web service properly, while the form does not.
Highlighted

pguerett

23-03-2009

That error only warns you that you have set a target version that is greater than the version that you are viewing with. The only time that will matter is if you use features that are intended for a later release. Fragments was officially added in version 8 so you shoudl be ok.



Is the web service in the public domain? Could I try this here and see if I can duplicate?
Highlighted

Elaine_Schmitz

23-03-2009

Sure, I can send an archive, can you email amalelaine@gmail.com so I can have your email address to reply with the archive? Or is there an alternate way to get the files to you?