since ‎12-11-2008
‎10-12-2019
Thomas_McConnac
Level 4
BUG: Sorting drop-down lists from the field tab when using "specify item values"
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Hi all,I've finished creating my form now, but I came across this whilst writing up my documentation for maintenance tasks.This occurs when adding new values to a drop-down list that has the "Specify item values" checkbox in the binding tab checked.When I then try to sort my list using the built in sort buttons, it will sort the items, but the list of specified values in the binding tab does not sort reorder to stay with the original items in the list. This is hapenning when I sort from the Obje...

Views

1.1K

Likes

0

Replies

1
drop-down list formattedValue returning value, not text
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Hi all, I'm having a problem with a drop-down list. I can get the information I want in Reader 9, but we only have Reader 7.0.5 distributed at the moment. I need to pull out its text value and its specified value, but everything I try just pulls out the specified value. In Reader 9 formattedValue gives me the text and rawValue will give me the specified value. Anyone able to help me please? Thanks, Tom

Views

1.1K

Likes

0

Replies

1
drop-down list formattedValue returning value, not text
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Hi all,I'm having a problem with a drop-down list. I can get the information I want in Reader 9, but we only have Reader 7.0.5 distributed at the moment.I need to pull out its text value and its specified value, but everything I try just pulls out the specified value.In Reader 9 formattedValue gives me the text and rawValue will give me the specified value.Anyone able to help me please?Thanks,Tom

Views

746

Likes

0

Replies

0
Re: Strange Wrong Number Output
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
OK, just had a play around.Make sure it is set the same in the edit tab.I have mine set in Display, Edit and Validation and it is working fine. But when it was in Display and Validation it was adding on the extra digit when I was inside the field (disappeared when I left.)I have no idea about the 3d2 thing though, sorry.Tom

Views

974

Likes

0

Replies

0
Re: Strange Wrong Number Output
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
I would say that the pattern the field is using is wrong.If all numbers must be 14 digits, followed by a decimal point and then another 2 digits the pattern should be:num{99999999999999.99}If it can be a maximum of 14 usenum{zzzzzzzzzzzzz9.99}9 forces there to be a character, so you will get 00000000000000,00 but z allows a blank character so you can get 0.00.Check all of the validation pattern tabs to make sure they are all the same.Hope this helps,Tom

Views

974

Likes

0

Replies

0
Re: Returning true / false when using scripts in the validate event
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Thank you Paul!Legend as always. Not going to go back through my form though, deadline is up and I've had to fix it with scripting objects 😞Tom

Views

1.9K

Likes

0

Replies

0
Re: Returning true / false when using scripts in the validate event
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Steve,By wrapping the execute in an if statement you can tell if it managed to execute correctly or failed.if (this.parent.parent.execValidate()) {this.parent.parent.presence = "hidden";Question2.presence = "visible";xfa.host.setFocus("Header.FocusField");}Will only move on to the next question if the form addressed(this.parent.parent) has validated correctly.The problem I am having is that I wanted to use the validate event to check if a field contained a valid entry.http://livedocs.adobe.com/l...

Views

1.9K

Likes

0

Replies

0
Returning true / false when using scripts in the validate event
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Hi all,I'm using a script in teh validate event to determine a false or true response and then when all the checking has been done I use:if (matchFound) {return true;}However this is coming up with the error message:Error: Illegal 'return' outside of a function body, Line:21Now obviously this means my return is in the wrong place, but where should it go? How can you pass on that a validate script, inside the event, has failed when using execValidate?Many thanks,Tom

Views

3.0K

Likes

0

Replies

4
How to: Permit a Drop-down list to receive multiple characters for searching
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Under the Field > object palette, tick the check box titled "Allow Custom Text Entry"Then in the exit event of the drop-down list enter the script:var numberOfItems = 0;var matchFound = false;for (var nodeInList = 0; nodeInList < this.nodes.length; nodeInList++) { if (this.nodes.item(nodeInList).className == "items") { numberOfItems = this.nodes.item(nodeInList).nodes.length; if (this.rawValue != null) { for (var itemInList = 0; itemInList < numberOfItems; itemInList++) { if (this.rawValue == th...

Views

640

Likes

0

Replies

0
Re: Mouse scroll wheel inside a drop-down list
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
B.I.N.G.O.var correctEntry = false;for (var i = 0; i < this.length; i++) {if (this.getItemState(i) == 1 ) {correctEntry = true;}}if (correctEntry == false) {xfa.host.messageBox ("This entry does not match an item: " + this.rawValue);xfa.host.setFocus ("this");}Hope this can be of help to someone else.Tom

Views

3.3K

Likes

0

Replies

2
Re: Mouse scroll wheel inside a drop-down list
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
When I select the option: Allow Custom Text Entry, it will shorten the list of available options to match what you are typing in.However it will also pass if you enter any value into the field.Working on a script that will force the value to meet one of the available values from the drop down list.Tom

Views

3.3K

Likes

0

Replies

0
Re: xfa.host.numPages still contains old values after form rendering
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
I've encountered this problem also.I worked it out as being the print command is sent before the form has finished rendering, so even though you are telling it to print say 5 pages, it can only see 1 so it passes that number through.I haven't worked out a solution yet.Tom

Views

958

Likes

0

Replies

0
Re: Mouse scroll wheel inside a drop-down list
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Another DDL request from my users:Can the text entry allow more than 1 character to find an item?At the moment, if you type in V, then A, it will go to the top A record.Regards,Tom

Views

3.3K

Likes

0

Replies

0
Re: Printing issue with presence change just before printing
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Nope, its still not waiting for the layout to complete before moving on to the print command...

Views

2.7K

Likes

0

Replies

0
Re: Printing issue with presence change just before printing
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
AHAH!That's the exact command I was looking for...Will test now and see if it works.

Views

2.7K

Likes

0

Replies

0
Re: Printing issue with presence change just before printing
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Having to build for Version 7 sadly which doesn't support it.I'm not having a problem with making things visible/invisble anyway and prefer to go from visible to hidden as I'm changing quite a few subforms (12 to be precise) of varying heights and I only want the one they are working on to be visible normally.The problem I'm having is that the xfa.host.numPages isn't returning an accurate number, because there is more than 1 page after my prePrint event but it keeps returning only a single page....

Views

2.7K

Likes

0

Replies

0
Re: Mouse scroll wheel inside a drop-down list
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Thanks Paul.

Views

3.3K

Likes

0

Replies

0
Printing issue with presence change just before printing
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Hi all,Coming across a problem when firing off my printing button.I am changing the presence of all my subforms to visible before printing and then hidden after printing.But when I am running the xfa.host.print command the page count from xfa.host.numPages still only reads 1. I set up a message box to check it over and from what I can tell the presence is being set, then the print command is being fired before the layout has a chance to complete.This means that it is picking up only a single pag...

Views

3.3K

Likes

0

Replies

6
Mouse scroll wheel inside a drop-down list
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Hi all,During our usability testing we've had a request for the mouse wheel to scroll down the list of items in a drop-down list. Currently it will scroll down the page and not the list.Does anyone know if this is possible?Many thanks,Tom

Views

4.5K

Likes

0

Replies

7
Problem with submit to http
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Hi all,I'm having a problem where when I submit a form using an http submit button it will work locally, but not through our Citrix thin-client infrastructure.Has anyone else experienced this problem? Or have any idea what might be causing the issues?We've tested things such as pop-up blockers and different Reader versions but can't figure out what the problem is.Many thanks,Tom

Views

927

Like

1

Replies

1
Re: Automatic enter the Year in a field
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
var currentTime = new Date();var year = currentTime.getFullYear();This gives you a variable "year" which has the current year in YYYY format.Tom

Views

419

Likes

0

Replies

0
Re: Show/Hide subforms like a popup
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
if (formAddress.presence == "visible") {formAddress.presence = "hidden";}else {formAddress.presence = "visible"}That will toggle between showing and hiding if you put it in the click event of a button and change "formAddress to" the address of the form you want to hide/show.Regards,TomP.S. If they aren't moving up/down then they are not set to flowed.

Views

546

Likes

0

Replies

0
Re: Problem with subform (hidden & visible)
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Add the line console.println ("" +this.rawValue);Just before your presence changing code, just to check what value it is set to when you are running it. It might not have changed at the time you are running the code.Tom

Views

635

Likes

0

Replies

0
Re: Prevent required fields error
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
You set the fields that get locked when the form is signed as a data collection. He means don't include the signature field in that collection.You can see your collections by going through the menu File > Form Object Colections...Tom

Views

1.0K

Likes

0

Replies

0
Re: How to bind schema form data to existing objects?
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Delete one of the versions, either the replica or the original. If you delete the replica, then go to the original field and go to the Object > Binding tab. In the Default binding find the name of the item in the schema you want to bind it to.Hope this makes sense,Tom

Views

606

Likes

0

Replies

0
Re: Text fields changing to date fields in Reader
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Sent

Views

1.1K

Likes

0

Replies

0
Re: Fields keeping their old names when submitting
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Ah, nice workaround.Thanks Paul.

Views

1.0K

Likes

0

Replies

0
Re: Date field selection arrow
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Mmm, can be annoying when you open a discussion and it only shows you a few replies! 😛

Views

935

Likes

0

Replies

0
Re: Date field selection arrow
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
"Paul Guerette - 10:25am Jan 9, 09 PST (#7 of 😎 Not that I am aware of "Paul has already answered this.

Views

2.0K

Likes

0

Replies

0
Fields keeping their old names when submitting
Avatar

Thomas_McConnac

Thomas_McConnac
- Adobe LiveCycle
Hi all,I am submitting my URL to an asp process that returns every child with a data binding.Part of my form creates an instance of a subform (DisplayForm), which contains a check box, for every member of staff in a team.The default name of that check box is "CheckBox" but I then change it to be the name of the member of staff (No spaces) by using:Question10.ResourceListForm.nodes.item(resourceListNode).Personnel.DisplayForm.all.item(countInstances).nodes.item(0).name = xfa.datasets.data.Users.n...

Views

1.2K

Likes

0

Replies

2
Likes from