10 Replies Latest reply on Sep 18, 2013 4:32 AM by Pickory

    How can I add a custom property to an object, like a paragraph?

    [Eric B] Level 1

      Hi,

       

      We have a merge process that combine multiple document into one and I need to store the filename of the imported file at the beginning of each merge point.   Each document that we merge contains a Title paragraph and I was wrongly assuming that I could set the label property of this paragraph with my value for future references, but only to find out that the paragraph object doesn't have a label property.

       

      I also tried setting a custom property by doing this

       

      paragraph.properties["myCustomProperty"] = "value";

       

      It doesn't crash, but if I try reading the value it is always undefined.

       

      I'm looking for alternative, or on how would you approach this, can you please advice?

       

      Your help is much appreciated.

       

      Thanks