Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

dohanlon
Community profile dohanlon Level 5
Job title here
Location here
18 BADGES
Level 5

Level 5

Learn more
Joined the community 19-05-2011 8:02:12 AM
Offline
Top badges earned by dohanlon
Customize the badges you want to showcase on your profile
Re: Folder hyperlink issue again - code reads differently in Reader than in Acrobat Pro
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Your uri's all need to be safely encoded to be cross app/ corss platform ready. A safe path in adobe has different formatting than standard unc conventions, so if you enter \\cgi\\shares\Departments, you need to encode this as //cgi/shares/Departments and then add the file: notation in front. The safe path notation is not the same as a unc which you can use in browsers for example, it is just used to allow acrobat/reader api's a common format. When using paths like this in acrobat or reader all ...

Views

342

Likes

0

Replies

0
Re: Scripting for a pattern validation message
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
You can access the validation pattern message property through script using DateTimeField1.validate.message.formatTest.valueThe scripting validation pattern message is done using DateTimeField1.validate.message.scriptTest.value

Views

122

Likes

0

Replies

0
Re: Hyperlink issue in LS Form
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
I am presuming this issue arises under acrobat/reader as your code excludes presentation agent. The paths you are trying to use are not acrobat device independant paths, which basically uses a different notation to try and support cross platform uri's. You would need to use file://netapp/group/subdirectory and so on. In general it would be protocol: \ device \ path \ file. Anything else gets URI encoded.

Views

367

Likes

0

Replies

0
Re: 2 up multiple text box entry
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
You can just set the right hand text value to the left hand value on the change event of the left field using:RightField.rawValue = xfa.event.newText;

Views

99

Likes

0

Replies

0
Re: Auto fit text boxes to not save correctly
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Have you got the script-based state changes on under Form Properties->Defaults->Scripting->Automatically? Otherwise do you have scripting on any initialise event which would interfere with the state of the save form?

Views

162

Likes

0

Replies

0
Re: So close but need help comparing strings in different subforms with for loop - Livecycle ES
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Your if statement has a ; at the end basically making the test redundant and executing the code block following at all times. You also should not do - this.rawValue = this.rawValue + ... since it will keep adding on every calculate. Start from 0 in a local variable and assign it to the rawValue at the end.

Views

197

Like

1

Replies

0
Re: So close but need help comparing strings in different subforms with for loop - Livecycle ES
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Sorry I cant see your document link - probably have to publish it first. However from looking at the script you are using array notation in javascript to access object collections. The hierarchy object model is not a javascript array but rather a collection of dom objects even though the som expressions use them as accessors in formcalc for example. clientName.rawValue == P1.rep[x].ItemSet[i].client.rawValuewould be invalid javascript since rep is not an array. Probably would need to be P1.resol...

Views

195

Likes

0

Replies

0
Re: How to efficiently check if ANY field in the form is not null
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
resolveNodes method will only return a list of objects which you need to loop through.

Views

713

Likes

0

Replies

0
Re: Adding CC to custom 'Submit' button
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Just add "&cc=" + vCC to before "&body=" for example

Views

155

Likes

2

Replies

0
Re: if/else scripts
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
It depends on where you are running your script from and which event. If its on the check box then you will also need to check for the SSN before displaying your message, as at the moment it just fires the error when the checkbox is checked - nothing else. So something likeif ( this.rawValue == "1" && SSN.isNull ){... handle error }

Views

120

Likes

0

Replies

0
Re: Programmatically access "required" fields
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
resolveNodes will return a list of objects satisfying the expression, so if you tried xfa.resolveNodes("TextField1"), it will return a list of 1 element containing the first textfield1 it comes across. The sample above uses an expression "form1..#field[*]", which returns a list of all objects of type field starting at the form1 level. The double .. notation means to navigate through each child container, # represents the object type and not name and [*] means all instances. It sounds like you ar...

Views

148

Like

1

Replies

0
Re: Change paper type (A4) via JavaScript
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Unfortunately, I dont believe you can change the medium at runtime through script. Unless it has been changed in version 10

Views

115

Likes

0

Replies

0
Re: Programmatically access "required" fields
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
It shouldnt matter where it is run from. You can put it on the click event of your ok button. Just make sure it is set to javascript and that the root of the form hierarchy matches the search criteria in xfa.resolveNodes(). form1..#fields should be changed if your for has a different root name or if you want to start at a lower branch for example page, subform, etc.

Views

148

Likes

0

Replies

0
Re: Programmatically access "required" fields
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
What you can try is keep marking the fields in designer as required and programmatically search and test if the content of these fields are null (i.e. empty). For examplevar oFields = xfa.resolveNodes("form1..#field[*]");for ( var i = 0; i < oFields.length; i++ ){ var oField = oFields.item(i); if ( oField.validate.nullTest == "error" && oField.isNull ) { xfa.host.beep(3); xfa.host.messageBox( "Please enter value for " + oField.name ); xfa.host.setFocus( oField ); }}will loop through every field ...

Views

146

Like

1

Replies

0
Re: How do I calculate age based on user inputed birthdate?
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
You could use Round function instead of Floor in the script, so something like$ = Round( years, 1 )using 1 decimal place

Views

765

Likes

0

Replies

0
Re: How to know if table was broken onto several pages
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Yes there are several ways to look at where items are actually positioned on a page or pages of a rendered form. The form model will not tell you the rendered positional elements so you need to use the layout object model. There isnt as much documentation but some of it is described in http://www.adobe.com/go/learn_lc_scriptingReferenceTo see if an object spans multiple pages, use pageSpan and page methods. xfa.layout.absPage( ) ;will return the dynamic page number the object starts on and xfa....

Views

83

Likes

0

Replies

0
Re: Auto text resize in fixed field
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
On the font palette tab, select "Currently editing Value properties ..." and not editing both and then in the font size enter 0. This will tell the field to auto-size the field font in the given field area.

Views

326

Likes

0

Replies

0
Re: We need to create fillable PDF forms and convert those to XML. What should we purchase?
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
If you are not using any server process at all when exporting the data (i.e. someone will start the convert to xml and upload to db) then you can with acrobat using the SDK to export the xml data from the form (you would need acrobat to do this, reader will not work without reader extensions) inside a vb app for example. You could run javascript when the form is loaded to export the data. There is a method called exportXFAData which can be used to export the bound data from the xfa data model (i...

Views

172

Like

1

Replies

0
Re: How to Create Text Field Which Accepts (Only Alphabates No Digits or Numbers)
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
It is only a sample of matching text. You do need to update the regular expression to match your requirements. So if you wish to allow spaces in the input, you would add this to the regular expression as followsvar r = new RegExp("^[a-z' ']*$");also wouldnt do uppercase for example, so you would ass A-Z to the regexp ( i.e. [a-zA-Z' ']) and so on

Views

717

Like

1

Replies

0
Re: Appending '$' for text field values
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Have a look at the field patterns. On the Object/Field Tab, click the patterns button. There you can set the display pattern along aith any other patterns - edit, validation, etc. It has a list of common types which currency in your default locale is one. It can set the pattern which is display rather than what the rawvalue or even editable value.

Views

144

Likes

0

Replies

0
Re: If then question
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
if you are trying to assign something then use$ = "2775"Dont use ; to terminate lines (use newlines instead)Dont think there is any restriction on number of elseif

Views

86

Likes

0

Replies

0
Re: We need to create fillable PDF forms and convert those to XML. What should we purchase?
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
This form is about the LiveCycle Forms ES product which is a server-based solution so you are not going to find it on the shelf as it were. What is the XML going to contain? Just the data? You can submit the data from the pdf hosted in a browser to a web-hosted component (i.e. java servlet, asp, etc). What you cannot do without any server product is call web services, database connections, data extraction (server-side), etc.

Views

172

Likes

0

Replies

0
Re: Identify if the form is of type Static PDF Form or Dynamic XML Form programmatically
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Your script failed for me but when I used the following modified version it detected the form type correctly ( as long as the pdf is saved from designer using either save as static or save as dynamic )Dim app, pddocDim jsSet app = CreateObject("AcroExch.App")Set pddoc = CreateObject("AcroExch.PDDoc")If pddoc.Open("E:\Untitled1.pdf") Then Set js = pddoc.GetJSObject If Not js Is Nothing Then If js.dynamicXFAForm Then MsgBox "It's a dynamic form!" Else MsgBox "It's a static form!" End If End IfEnd ...

Views

262

Likes

0

Replies

0
Re: We need to create fillable PDF forms and convert those to XML. What should we purchase?
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Really depends on the number of users accessing and filling these forms. I believe using the SDK and DLLs in a server setting is not supported. They are only used in client environments. For large amount of users, Forms ES can be used to process submitted documents, execute any server-side script, extract any xml data, etc. Its probably going to be expensive though so Im sure there could be 3rd party ones to just handle data extraction.

Views

171

Likes

0

Replies

0
Re: Access values from a dropdown-list
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
The messagebox isnt shown because the script is failing. [] notation in som expressions are not the same as [] acccessors in javascript, so you need to either use unique names or use resolve node to access the correct som expression since these are not javascript objects. For example:xfa.host.message( Tabelle1.resolveNode( "Zeile1[1].MengeEB" ).rawValue );

Views

77

Likes

0

Replies

0
Re: LiveCycle ES2 installation stops halfway through the process
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Did ES2.5 recently and didnt have any issues but only installed a few of the components, not the whole suite. Did it stall on the actual file installation or just the configuration/deployment stage? What is the log file saying?

Views

315

Likes

0

Replies

0
Re: Export blank values vs null
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Just syntax issues, the main issue is you have =+ ( which is assignment) instead of += (which is concat). Correct one should be +=

Views

143

Likes

0

Replies

0
Re: Identify if the form is of type Static PDF Form or Dynamic XML Form programmatically
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Is the form already open, which your plugin is trying to examine or is it before loading the pdf into acrobat? If its already open then it is proably easiest to execute script to examine the "dynamicXFAForm", "xfa" and "XFAForeground" properties on the Doc object. If not through script, you will have to examine the XFA cos object itself to determine what the render property should be.

Views

283

Likes

0

Replies

0
Re: Export blank values vs null
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
Sounds like you have the body variable in an if statement which isnt executing correctly, and probably that if statement condition should be reversed. NaN is coming because you dont have an initial value for body at all so when you do body += "Jim Dandy", you will get NaNJimDandy. Can you post the script for the if statement?

Views

185

Likes

0

Replies

0
Re: Remove a specific table instance
Avatar
Give Back 100
Level 5
dohanlon
Level 5

Likes

30 likes

Total Posts

133 posts

Correct reply

33 solutions
Top badges earned
Give Back 100
Give Back 50
Give Back 25
Give Back 10
Give Back 5
View profile
dohanlon
- Adobe LiveCycle
It depends on your hierarchy when you say this.parent.index in your code. You need to find the correct repeating subform index which maybe a couple of levels above your current context. If you have a repeating table in a subform and you button is inside a row of the subform it could be that you should have this.parent.parent.parent.subform.

Views

217

Likes

0

Replies

0
Likes given to