w_bain
Community profile w_bain Level 1
Job title here
Location here
0 BADGES
Level 1

Level 1

Learn more
Joined the community 17-08-2009 3:11:07 PM
Offline
Top badges earned by w_bain
Customize the badges you want to showcase on your profile
How to code ranges?
Avatar
Level 1
w_bain
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile
w_bain
- Adobe LiveCycle
In quantity discounts, it's pretty common to have the quantity discount vary with the number of items purchased, but not as a fixed percent per item. Example:Quantity Purchased Discounted price (each)1 $102-4 $95-8 $78-10 $610+ $5For narrow price bands or not too many elements, using a switch statement works OK:if (Quantity < 10){ switch(Quantity) case "1"; Price = 10; break; case "2"; Price = 9; break; case "3"; Price = 9; break; case "4"; Price = 9; break; case "5"; Price = 7; break;etc.This s...

Views

550

Likes

0

Replies

2
Checking that required fields have been completed?
Avatar
Level 1
w_bain
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile
w_bain
- Adobe LiveCycle
Short of a "brute force" appraoch of checking each named object isn't null or "", is there a more elegant way, somewhat similar to what Paul put together for making all the fields read-only, to check that all the required fields in a form have been completed before firing off the email button?

Views

547

Likes

0

Replies

1
Re: Summing Table Column - backwards compability between v9 and v7 (FormCalc)
Avatar
Level 1
w_bain
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile
w_bain
- Adobe LiveCycle
Yup, that worked perfectly.  Thanks!

Views

45

Likes

0

Replies

0
Summing Table Column - backwards compability between v9 and v7 (FormCalc)
Avatar
Level 1
w_bain
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile
w_bain
- Adobe LiveCycle
The following FormCalc is working fine in the form that I'm designing when the Reader version is 9: Sum(table1.row[*].Cell3)However, I have to make the form backwards compatible with Reader 7 and when I run the form in Reader 7, FormCalc hiccupps and reports that"Error: SOM expression returned list when single result expected."(a) is there a difference between the way FormCalc handles this expression between versions 7 and 9?(b) I get the same error for the expresson Sum(xfa.form.resolveNode(for...

Views

620

Likes

0

Replies

2
Re: How to reference table rows added using addInstance?
Avatar
Level 1
w_bain
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile
w_bain
- Adobe LiveCycle
D'oh!Dang, I knew that -- talk  about a "brain lock."    Thanks.

Views

70

Likes

0

Replies

0
How to reference table rows added using addInstance?
Avatar
Level 1
w_bain
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile
w_bain
- Adobe LiveCycle
OK, this one's probably quite simple, but I'm at wit's end . . . .I have a table with body rows that can be added using addInstance. what I can't figure out is how to reference the newly added rows and teh fields within them. If the row reference for the inital row before addInstance is:Table.Row1.CellName before the addInstance, after the addInstance wouldn't it be Table1.Row1[0].CellName and the newly added row be Table1.Row[1].CellName? I try that and the debugger tells me that Table1.Row1[1]...

Views

625

Likes

0

Replies

2
Re: Persistent LC crash when working on table in a form
Avatar
Level 1
w_bain
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
View profile
w_bain
- Adobe LiveCycle
It's me again -- I had to create a new user ID when the forums moved. Well, LiveCycle 8.2 is back to its old tricks -- crashing when I try to add a table. This time it's af orm with only 3 tables and it's not large -- 200 Kb. The machine is a new Dell e4300 wih WinXp SP3. I can work around the table formatting with a bunch of rectangles and lines, but it's *really* annoying that this bug hasn't been fixed. If there's a crash log to send to Adobe, I'd be happy to do so. Grrr . .. .

Views

513

Likes

0

Replies

1