I am writing a form attachment object in designer using the normal
event.target;formObj.importDataObject(fileHandle);Which is fine. But I
want to allow only word or pdf files, so I usefileObj.MIMEType ==
"application/msword";to see if it is a word document for instance. The
problem is that MIMType is returning null when I run it with Acrobat Pro
9. When running the form under Reader 9 & Reader 10 it returns the mime
correctly.The form is reader extended through Li...
Thanks for the replies Steve.So in summary it appears that xml data
bound to a form through a data connection can't be embedded into a pdf
or xfo after all. I was hoping we didn't need to edit the xfo code
manually, but be able to make use of the data connection. Using macro's
I was able to change the tags of the iso provided xml data in to
tags and paste them into the xfo code. Thanks again.
OK. So I have my form elements (including the country list) wrapped in a
subform and to add them to the object library I drag the subform into
the libarary (in designer). A dialog pops up asking me what to name it
and for a description. I hit enter and its available in my custom object
library.The part I cant figure out is how do I embed the country list
xml data into the custom object?I can open the form with Acrobat Pro
then from the menu go Forms -> Manage Form Data -> Import Data... and
Hi SteveGood to know it's possible! And yeah, thats the country xml data
file Im working with too.But I can't work out how to do it. I wasnt able
to use your xfo object in Designer, even after manually adding the
element to Designer's ObjLibLayout.xml file, so I can't see in
action.Can you walk me through the process of embedding xml data into an
HiDoes anyone know if I can embed xml data into an xfo library object?
Let me explain...I have a list-box which is to contain a list of
countries of the world as defined in ISO 3166. This is a really long
list and provided in an xml document. So I want to keep the xml document
as the source of the data.I want to use the countries list in an address
block and save it as a custom object i.e. an xfo, so I can reuse it in
different forms.So my question is: can I embed the xml data into a
Hi all,Im wondering if there is a way to save a fragment and keep the
data connection it uses? I have a company details form that uses a
business number lookup over a web service, but when I save it as a
fragment and use it in another form it does not have the data connection
and therefore doesnt work. Is there a way around this??Cheers!
Hi Niall,Thanks for having a look at my post. Yes LC has some good
validation built-in but what I'm doing goes much further than the
standard functionality provided. Another example of what Im doing:I am
passing a reference to the object itself, not just its som expression.
This way I can access all its properties programmatically. When an
object is added to the mandatory field array I can add an asterisk ( * )
to the end of the field caption. When the user hits the submit button,
any mandatory ...
Does anyone know how to define an event programmatically for a form
scriptObj.addToValidation(this); from the field initialize event.The
values of potentially hundreds of fields with one block of code. What I
also want to do is define the click and enter events for each object
programmatically from the ...