Hello all,
Recently, I am using the Adobe LiveCycle to create a form with a countdown. I keep receiving a error of "App is undefined" under the Log tab in report window.
Great if someone can give me some clue on this as my colleague has left a sample for me to test and it works fine. But when I copy the code to a new file to try replicating the result but did not work at all.
Thanks,
Oli
The code is as below:
*************************************************
timer_test::ready:form - (JavaScript, client)
xfa.form.timer_test.variables.countdown.value = "90";
var second = 1000;
timer_test.page_01.timer_text.rawValue = xfa.form.timer_test.variables.countdown.value;
dummy = app.setInterval("xfa.form.timer_test.variables.timer.DoTimers()", second);
timer_test.#variables[0].timer - (JavaScript, client)
function ClockProc(nCurTime)
{
xfa.form.timer_test.variables.countdown = String(Number(xfa.form.timer_test.variables.countdown.value)-1);
if (Number(xfa.form.timer_test.variables.countdown.value) <= 0)
{
timer_test.page_01.timer_text.rawValue = "time out";
timer_test.page_01.timer_text.font.fill.color.value = "255,0,0";
}
else
{
timer_test.page_01.timer_text.rawValue = xfa.form.timer_test.variables.countdown.value;
}
}
function DoTimers()
{
ClockProc();
}
********************************************************
Views
Replies
Total Likes
Usually it is because you have set the script language as FormCalc ......it needs to be Javascript for the app reference to work.
Paul
Views
Replies
Total Likes
Thanks Paul,
I actually have already picked the Javascript as the script engine on both Form Properties and the Scripting Window.
Feel a bit strange, much appreciated is anyone can give me some clue.
Rgds,
Oli
Views
Replies
Total Likes
Screen with error shown in the log tab on the bottom.
Screen without error
Views
Replies
Total Likes
Can you send the form to LiveCycle8@gmail.com and I will have a look and see what I can find out.
Paul
Views
Replies
Total Likes
Hi Paul,
I have send you the copy. Great if you can take a look.
Thanks in advance.
Rgs,
Oli
Views
Replies
Total Likes
Hi, I am facing the exactly same problem in a recent form. Any progress on this issue? Was it resolved?
Tarek
Views
Replies
Total Likes