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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

tehinternets
Community profile tehinternets Level 2
Job title here
Location here
10 BADGES
Level 2

Level 2

Learn more
Joined the community 09-08-2012 10:00:08 AM
Offline
Top badges earned by tehinternets
Customize the badges you want to showcase on your profile
Re: Most efficient way to loop through similarly named fields?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
I have solved my issue. It took some battling in javascript using xfa.resolveNode.I have 5 pages, each consisting of a series of 60 fields named Viol1Num, Viol2Num, Viol3Num .... Viol60Num.If when this javascript runs, it detects a blank field, then insert a '3' into it.The below is the javascript which runs for the second page of this document. while (LoopCounter < 61) { if ((LoopCounter != 21) && (LoopCounter != 22)) { if((xfa.resolveNode("topmostSubform.Page2.Viol" + LoopCounter + "Num").rawV...

Views

305

Likes

0

Replies

0
Re: Most efficient way to loop through similarly named fields?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Thanks for the reply, however I'm still at a loss on how to implement what you're describing. My Concerns are:-My document seems to have 1 topmostSubform, and then 6 pages under. Adobe/LiveCycle structure on how things like this work is not my string suit. Would I have to have a subform for each page?-If referencing by subform, I don't want ALL fields on the page. There are many other fields not applicable to what I was asking on my original post and I wouldn't want to modify them; only a series...

Views

207

Likes

0

Replies

0
Most efficient way to loop through similarly named fields?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Hi,I have a 5 page document with each page containing appx. 50 similarly named fields. E.g. Viol1Num, Viol2Num, Vio3Num ... Viol50Num.I am looking for an efficient way of programming a loop to look at each field in Javascript so I can do some manipulations in those fields on what the user entered.In FormCalc I've previously used the 'foreach' function similar to:foreach (Field1, Field2, Field3.....Field50) do 'BLAH'endforhowever, that gets really lengthy, especially when dealing with subsequent ...

Views

613

Likes

0

Replies

3
How to handle 0 records returned via ODBC connection?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Hello, I am connecting my form via ODBC to an MS Access database with FormCalc XFA. I know that's not ideal, but it works. I am stuck however on how to handle errors when the form is not able to return a record due to a bad search string.Typically I am expecting one unique record to be returned, however at times there is no match based upon what the user has entered into the search field. I am trying to 'catch' the error and give them a custom message I write, or no error at all.My Data Connecti...

Views

196

Likes

0

Replies

0
Re: Best way to insert Degree symbol?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
I ended up using a simple replace as I was mentining in my previous post so that if the inspectors types "blah blah blah at 51 deg blah blah blah" and then exits the field, FormCalc will replace the ' deg' with '°F' so that the text now reads "blah blah blah 51°F blah blah blag". I just need to train my inspectors to type in ' deg' exactly to have it relace it automatically.//Replace ' deg' with '°F' when user leaves this field.$.rawValue = Replace($.rawValue, " deg", "°F")

Views

3.0K

Likes

0

Replies

0
Re: Best way to insert Degree symbol?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Magnus, thanks for not giving up on this yet. In your last post that is making some progress, but there's also some con's too.1.) That's running off of an 'On Exit' even which inserts the ºF at the end of the text. In some cases that would work, but it others it would not work, like in this text field example of real data: "White fish was a 51°F. *Corrected* Witnessed manager throw away fish." With your proposed java, that would put the °F at the end of the line when it needs to be in the middle...

Views

2.7K

Likes

0

Replies

0
Re: Best way to insert Degree symbol?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Gotcha. As mentioned in my OP, we're aware of simply entering ALT+0167, however for computer illterare people who struggle with the concept of copy and paste, that's not really an option. I'm looking more for something easier for them to quickly insert the symbol.They are on laptops w/ a normal English keyboard, but they don't have full number pad. The num pad is shared on the keyboard with normal letter keys. To do it they've first have to FUNCTION+NumPad to enable it the number pad. Then ALT+0...

Views

2.7K

Likes

0

Replies

0
Re: Best way to insert Degree symbol?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Thanks for the reply Robert. That's good to know when it comes down to programming the actual generation of the symbol, but what I am asking is more about how the user would enter it. This form has many long text fields which hold more words than just the temperature. For example a use could enter into a field: "White fish was a 51°F. Corrected by throwing it away."How would the user easilly be able to inset the symbol while in the middle of typing that sentance?

Views

2.7K

Likes

0

Replies

0
Best way to insert Degree symbol?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Hello,I have an inspection form set up for restaurant/health inspectors. Often times during an inspection they need to enter temperatures of food and like to use the degree symbol. They're running this form on a convertible tablet pc, so a normal keyboard is not available to them in tablet mode and when in laptop mode using the combination of ALT+0176 that's still a PITA because the keyboard doesn't have full number pad and the people using this form aren't the most computer literate people out ...

Views

12.2K

Like

1

Replies

7
Re: Radio button showing and hiding a text field
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Also, when I use Javascript to hide a field, instead of "hidden" I've sucessfully been using "invisible" instead. For example:Button3.presence = "invisible";I don't know much about it it though, "hidden" might work too. I agree with whyisthisme that using an on click event might be best and his if statement looks good. If you've confirmed that if your logic is working correctly, I'd try using invisible instead of hidden.

Views

365

Like

1

Replies

0
How to throw a custom error if ODBC query returns no records?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Hi, My form allows the user to imput criteria in a search box and then click a SEARCH button or press ENTER to return a matching result of a record from an ODBC connected database. There should only be one unique match to return as the user is entering an ID number.I am stuck on providing a nice error message if the search returns no records e.g. if the user search an invalid ID number. Currently the user is getting the ugly XFA error: Script Failed (language is formcal; contxt is xfa[0].form[0]...

Views

417

Likes

0

Replies

0
Re: Why do I have to run a doc.saveAs() prior to Inserting, Deleteing, or Extracting pages?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Hi George. Yes I'm using static XFA forms which were created with PDF's as basic 'artwork' in the background and then my custom fields and script tunning on top. I've tried running a function (below) in the console, but did nothing -- maybe a syntack error. I don't know what that may or may not mean though. I'm not use to running stuff through the console so I could be doing it wrong. My console experiance is limited to calling the path where the javascripts folder resides.Attempt script in cons...

Views

118

Likes

0

Replies

0
Why do I have to run a doc.saveAs() prior to Inserting, Deleteing, or Extracting pages?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
MY SETUP:I'm using folder level javascripts. In Acrobat I have the 'enable menue items javascript execution privledge' enabled, In my actual folder level scrips I have them wrapped in a trusted function along with app.beginPriv()/app.endPriv(). My PDF's are coming from LiveCycle Designer which I then open and run in Acrobat.MY QUESTION:Through much trial and error and banging my head on the wall I've found that if I want to use insertPages(), extractPages() or deletePages() called as a trusted f...

Views

1.0K

Likes

0

Replies

2
Does Reader support ALL of the OLEDB DataConnection XFA controls?
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Say I design a form in LiveCycle (version 8.2 or 9) which uses an OLEDB DataConnection binded to fields to populate them. Furthermore if I am using FormCalc or JavaScript to build buttons to navigate/update/delete/insert records in the database, will this functionality work in Adobe Reader (versions 9.X to 10.X.X)?So far I've been finding that my OLEDB functionality works correctly in full Acrobat and LiveCycle Designer but when it comes to Reader it seems very disabled/broken. In Reader I can o...

Views

631

Likes

0

Replies

1
Re: ODBC data sucessfully connects, but NEXT button doesn't work
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
I aditionally turned on JavaScript debugging in Acrobat 9 Pro. I am previewing in LC Designer, but would then save the LC project as a PDF and open it Acrobat Pro for it's javascript debugging 'capabilities'. The debugging doesn't do anything when I hit a basic 'print' or email' button on my form from within Acrobat, but if I click any of the Next/Previous/First/Last buttons etc it will fire up the debugger and point to my xfa.sourceSet.DataSource.[command] line as if it were problematic, but I ...

Views

95

Likes

0

Replies

0
Re: Error: accessor 'xfa.sourceSet.DataConnection.next()' is unknown.
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
I have this exact same problem and have found no reason why this is happening after 3 days of scouring the internet. In regards to the OP problem. If I run the button code in FormCalc mode I get the same error as in the OP question and if I switch it to JavaScript the error goes away, but the code in the button does not respond.Any ideas on why xfa.sourceSet.DataConnection.next()orxfa.sourceSet.{the name of my data connection}.next()does not work?

Views

113

Likes

0

Replies

0
Re: ODBC data sucessfully connects, but NEXT button doesn't work
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
Today I did some troubleshooting. Instead of using MS Access I set up simple MySQL database with 3 text fields (no auto-incrementing fields). Again I was able to quickly connect my LiveCycle form to the MySQL ODBC data source and display the first record from the table but any buttons with click actions that run and javascript lines beginning with xfa.sourceSet.{Name of my data source in LC here}.* commands do not work at all.I know my buttons work. I can run some xfa.host.messagebox("blah") com...

Views

96

Likes

0

Replies

0
ODBC data sucessfully connects, but NEXT button doesn't work
Avatar
Give Back 10
Level 2
tehinternets
Level 2

Likes

2 likes

Total Posts

18 posts

Correct reply

2 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Give Back 3
Ignite 3
View profile
tehinternets
- Adobe LiveCycle
In short I have a forum which sucessfully gets the first record from the DataConnection. The problem is I seem to only be able to get the first record and cannot navigate to other records.I have added a NEXT button, set up for JavaScript, Client, on Click with the common xfa.sourceSet.DataConnection.next(); code, however when previewing the form (still within LiveCycle) even though I can sucessfully pull the first record from my table, clicking the 'NEXT' button does nothing at all, not even an ...

Views

1.6K

Likes

0

Replies

2
Likes given to
Likes from