Unable to add items to dropdown list using javascript


hi,

 

i'm trying add additional items dropdown list @ runtime using javascript.

 

i'm doing invoking additem method on dropdown list field during initialize event.

 

however when run generated pdf in acrobat pro, following error in console -

 

generalerror: operation failed.

xfaobject.additem:3:xfa:form1[0]:#subform[0]:field0[0]:initialize

method: 'additem' cannot called because doing violate document's permissions settings.

 

the pdf form has no signatures or other stuff in it.

 

what additional permissions need add , how ?

 

you can view pdf here -

 

https://dl.dropboxusercontent.com/u/8022836/xfa3_test.pdf

 

thanks,

joel

is there reason use code did? looks problem variable's permissions when going through template.

 

this code works fine in same event:

 

this.additem("new item");

 

as does:

 

var f = xfa.resolvenode("form1.#subform1[0].field0");

f.additem("new item");



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?