Reading CheckMark State
Hi everyone,
I'm trying to get the state of CheckMark in JavaScript. As per JS API reference, code as below should be used and it works fine.
annots = this.getAnnots()
for ( var i= 0; i< annots.length; i++) {
states = annots.getStateInModel("Marked");
if ( states.length > 0 ) {
for(j = 0; j < states.length; j++)
{
var s = states
console.println(s );
}
}
}
But as you know, CheckMark is also a part of an annotation( Sticky Note, Highlight, etc.). When I try to read the same state under the related annotation with InReplyTo, I get nothing.
annots = this.getAnnots()
mark = this.getAnnots()
for ( var i= 0; i< annots.length; i++) {
for ( var j= 0; j< mark.length; j++) {
if(mark
states = mark
if ( states.length > 0 ) {
for(k = 0; k < states.length; k++)
{
var s = states
console.println(s)
}
}
}
}
}
I couldn't figure out what is wrong with this code? Any help is appreciated.
Regards
