Expand my Community achievements bar.

Difference between initialize and click event handling????

Avatar

Former Community Member
Dear Users,



I have a sample form with OLEDB connection to an Oracle 10g Database.

When I place a Button, and in the Initialize event I write the

following line:



xfa.sourceSet.DataConnection.next();



then is everything is OK, and I get to the next record.

However, if I comment it out, and write it to the

Click event, then nothing happens.

What can be the error?



Kind regards,

Gabor Lipovszki
1 Reply

Avatar

Former Community Member
If you are doing this with Acrobat you can hit Ctrl-J t bring up the javascript console. This console will show you any errors in javascript if there are any.



Make sure the language on the click event is set to Javascript.