2 Replies Latest reply on Aug 28, 2010 4:11 AM by Roy Marshall

    [JS][CS5] Storing a variable in the document label

    Roy Marshall Level 1


      I need to store the ID number of an item into the document label.


      I have tried:

      myLabelString = new String(myDoc.allPageItems[n].id)



      But got the error

      Result: Error: Invalid value for set property 'label'. Expected String, but received function data.


      I can add the ID number by:



      but I need this to be a variable.


      I have seen some posts using the function 'insertLabel' passing value and key.  What is the 'Key' in this?


      Any ideas?