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

Working with percentages, multiple feilds, and dynamic updating

Avatar

22-07-2008

Hello.



I am a LiveCycle newbie with limited experience. I have some database and scripting experience on other platforms, such as Access.



Currently, I am trying to quickly knock out a form in which the user can allocate their time, as a percentage (xx.x%). There are 25 categories in which the user may allocate a portion of their time.



I would like to have a "Total" field, which starts at 100%. This total decreases as the user allocates time to one of the 25 categories, so the user may easily see the remaining percentage of time available to allocate, and by inversion see how much they have used.



Having no experience with the scripting behind LiveCycle (Cold Fusion?) I am searching the Adobe site for support which may apply to my problem, but it seems like I have a lot of background knowledge and sub-topics to go through before I find my final solution.



I was hoping one of you might be able to give me a jump-start.



Regards,

Ben Rebach

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

22-07-2008

It is all just JavaScript so it is a case of retrieveing a value from a field performing an arithmetic operation then putting the results into a field. To read or write to a field you will use the objectname.rawValue. Note that you can path your way from the root of your form to get at the field if you have a complex hierarchy (i.e. form1.Page1.Subform1.fieldname.rawValue.



There are samples in the EN folder as well as a tutorial that ships with the product that will help you.