Yes, it's possible. You basically create a normal annotation and then set its inReplyTo property to point to the name property of the annotation to which you are replying. See also the refType property, which lets you define the kind of reply it is.
That's more complicated. You would need to scan all the annotations in the
file, collecting the values of their inReplyTo properties to an array, then
you can access those annotations in the array using the getAnnot(name)
On Tue, Feb 14, 2017 at 3:58 PM, Sajeev Sridharan <firstname.lastname@example.org>
var annots = this.getAnnots()
var replyArray = ;
for ( var i= 0; i< annots.length; i++) //Looping all annotations
replyArray.push(annots[i].inReplyTo);//storing inReplyTo value to an array
Please guide me how to find the annotation which is having reply comments and you have told that using the getAnnot(name) method it is possible. Could you please explain with some examples.
After your code you can iterate over the replyArray, and within it iterate again over the whole annots array.
If replayArray[i]==annots[j].name then you found your target annotation.