I am new to Lifecycle and to this whole create your own form thing. I am trying to do a very simple task, but I have no idea what i am doing. All I am trying to do is tabulate the number of times each instance within a drop-down list is selected by the form filler. I tried using a formula that I found on another post, but I can't get it to pull from my drop downs.
I am creating a time card. It has 7 "Types" to choose from Regular, Holiday, PTO, etc.. for each day of the pay period (2 weeks).(this is not created as a chart) I am trying to come up with a summary of how many hours were worked in each Type based on the information selected in the drop downs by the form filler.
I applied the following formula to the totals text box(nCount1). This is just the formula used to calculate the Regular hours selected in the drop downs by the form filler. I would use a similar formula for each type. I am using Formcalc.
var nCount1=0
for i=0 upto Type.all.length -1 do
if (Type[i].rawValue eq "Regular") then
nCount1 = nCount1 + 8
endif
endfor
The formula has no errors, but it is not pulling from my drop downs. The total is remaining at 0
I hope this made sense..
Thanks for any help.
I hope I understood what you're trying to achieve.
1. Create form variables for your individual counts (nCount1...nCount8) under the form properties (file > form properties > variables).
2. In the change:Event of your DDL add this FormCalc script:
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs