My form has been reader enabled and all information can be saved except for data entered by the user into the dynamic table.
Do I need to change the Data Binding?
https://acrobat.com/#d=SWkT2mrJBJbxk*QJGmN0Ng
Appreciate any help!
Tracy
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
ok I discovered the root of all evil.
To solve this you need to replace the script that caculates the calendar dates in the dynamic table with another one.
Go to the Table's calculate event an delete the script.
Then select the Date field in the first table row and add this script to its change event.
var StartDate = $event.newText
var DateFormat = "MM/DD/YY"
if (StartDate ne $event.prevText) then
var selectedDate = Date2Num(StartDate, DateFormat)
var selectedDay = Num2Date(selectedDate, "DD")
var selectedMonth = Num2Date(selectedDate, "MM")
var selectedYear = Num2Date(selectedDate, "YY")
var firstDay = Date2Num(Concat(selectedMonth, "/", "01/", selectedYear), DateFormat)
var lastDay = 0
var dayNumber = firstDay
$event.change = Num2Date(firstDay, DateFormat)
for i = 0 upto 30 step 1 do
if (Num2Date(firstDay, "MM") eq Num2Date(dayNumber, "MM")) then
dayNumber = dayNumber + 1
lastDay = dayNumber
Table._Row.addInstance(1)
Table.Row[i].Date = Num2Date(dayNumber - 1, DateFormat)
Table.Row[i].Day = Num2Date(dayNumber - 1, "EEE")
endif
endfor
Table._Row.removeInstance(Table._Row.count - 1)
endif
Views
Replies
Total Likes
Hi,
I could not see any problem so far.
Times I entered into the dynamic table got saved and recovered by Reader as exspected.
Views
Replies
Total Likes
I just tried it again. Still not saving anything in the table. I am changing the file name, of course. I also had someone with Reader try and the information was not saved by him either.
Views
Replies
Total Likes
OK, now I also see what you mean.
Weird ... Will check that later
Views
Replies
Total Likes
Hi,
ok I discovered the root of all evil.
To solve this you need to replace the script that caculates the calendar dates in the dynamic table with another one.
Go to the Table's calculate event an delete the script.
Then select the Date field in the first table row and add this script to its change event.
var StartDate = $event.newText
var DateFormat = "MM/DD/YY"
if (StartDate ne $event.prevText) then
var selectedDate = Date2Num(StartDate, DateFormat)
var selectedDay = Num2Date(selectedDate, "DD")
var selectedMonth = Num2Date(selectedDate, "MM")
var selectedYear = Num2Date(selectedDate, "YY")
var firstDay = Date2Num(Concat(selectedMonth, "/", "01/", selectedYear), DateFormat)
var lastDay = 0
var dayNumber = firstDay
$event.change = Num2Date(firstDay, DateFormat)
for i = 0 upto 30 step 1 do
if (Num2Date(firstDay, "MM") eq Num2Date(dayNumber, "MM")) then
dayNumber = dayNumber + 1
lastDay = dayNumber
Table._Row.addInstance(1)
Table.Row[i].Date = Num2Date(dayNumber - 1, DateFormat)
Table.Row[i].Day = Num2Date(dayNumber - 1, "EEE")
endif
endfor
Table._Row.removeInstance(Table._Row.count - 1)
endif
Views
Replies
Total Likes
That worked! Thank You!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies