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

HI.
I need to store the ID number of an item into the document label.
I have tried:
myLabelString = new String(myDoc.allPageItems[n].id)
myDoc.label=myLabelString;
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:
myDoc.label="713";
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?
Cheers
Roy

Thanks heaps.
I have to pass the id number as a string though:
app.activeDocument.insertLabel('BackgroundID', (myDoc.allPageItems[n].id).toString());
but thats OK
Thanks again!
Roy

Similar Messages

  • Can we add a variable in the document title of SOFM..

    Hi,
    I am trying to use a variable in the document title as below:
    Approval by: &MANAGER&  =>  &DOCUMENTTITLE&
    But this does not work, the note is getting displayed as:
    Approval by: &MANAGER&, ideally should be "Approval by: Micheal John". Please let me know about this.
    Thanks,
    Sukumar.

    Hi,
    I have the variable "Manager" in the workflow container. In the document title of SOFM. I want to display the DOCUMENTTITLE as " Manager approval by: &Manager&. How can I use the concatenate function here?
    Thanks.
    Sukumar.

  • Exporting CS5 file to PDF causes the document size to enlarge on PDF!

    I need help... FAST! I have a 14-page 4CP calendar that bleeds on three sides. The bleed size is 3/16", per the printer's requirements. When I export the file from InDesign to PDF, the overall page size is increased by exactly 3/16"! I nearly missed this and approved the job for printing. Luckily, I turned on the rulers in the PDF file to double-check all the page elements were properly placed and wouldn't fall on the fold. That's when I discovered that objects that I had placed on a page were extending into the fold and onto the next page. I went back to my InDesign file and found that those elements were properly placed and did not extend into the fold as they were doing in the PDF file. I tried different PPDs, exporting the file with and without printer's marks... all to no avail. I finally printed the file to a Postscript (PS) file and then exported that file to PDF and got it to work. However, I would prefer to avoid that extra step. What is going on? Why is the file enlarging (coincidentally the EXACT same amount that the bleed was set for) and/or what am I doing wrong? Any help would be GREATLY appreciated!

    Are you familiar with bleeds etc?  i.e. have you used them before?  It sounds to me as if you're doing everything mostly right but not realising that Acrobat and Reader (please don't mention Mac Preview) show the size including the bleeds when you choose those options upon export from Indesign.
    Go back and check your document setup.  Page size should be excatly just that, finished page size.  Bleed settings (you might have to tick more options to see them) should be also just that.  Export the PDF, go to 'Marks and bleeds' tick 'Use Document bleed settings' and you're done.  The document will appear bigger.
    oh and use the camera button for screenshots.
    You can see the actual size of the doc by going Advanced > Print Production > Crop Pages and toggling between TrimBox (the size the page will get trimmed to) and CropBox (which includes the bleeds and is what displays).

  • Its possible to post a variable on the help label?

    Hi all,
    Just asking if i can put a variable value on the help popup of a label.
    Can I?? how?
    Thanks you,

    Well I just try to create a textbox named Variable1 with a text like 'Try'
    And then I create a second textbox with the name Variable2 and I just put &Variable1. on the help text filed..... Then execute... and nothing on the popup help of Variable2 although Variable1 have sequence 5 and Variable2 10.
    Any other suggestion? or I did something wrong?
    Thanks for your reply, anyone else?

  • Where is stored the Folder label registry location?

    When I put a red label on a File that has xmp metadata, I can retrieve these values later and this will be stored in the file or in a side-car xmp file.
    But Folder can't have xmp.
    In this case, where is stored this info about the color label of a Folder? Only in cache? Is there a hidden file ( like, for example ".Bridgesort" hidden file for manually sorted items)
    I noticed that I I label a folder in a common accessed network from computer A, I can retrieve that value from another computer B by rebuilding the cache parent folder of the labeled folder.
    It can't be the file C:\Users\[username]\AppData\Roaming\Adobe\Bridge CS6\Cache\data\store because it is inacessible from other computers on network.
    So is must be some hidden file on the same directory of the labeled folder.

    Found it.
    Its an hidden xml File created from Bridge when I use labels or ratings on children folders.
    It is called ".BridgeLabelsAndRatings"
    to get it from bridge, just try to use this
    Folder([myPath]).getFiles("*.BridgeLabelsAndRatings"); // the name works like a long extension file (the dot in the beginning is important)
    and this is an example.
    <?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
    <bridgedata version='1'>
      <labels version='1'>
      <item key='_d_10772009' label='Select'/>
      </labels>
      <ratings version='1'>
      <item key='_d_10772012' rating='1'/>
      </ratings>
    </bridgedata>
    This is updated from others computer over the same local folder network only when cache folder is recreated.

  • How to set the document language based on the contents of a text variable?

    In my Indesign documents, I use a text variable in which I type the abbreviation of the document language according ISO639-1 (e.g. EN, DE, ES, ...). I'd like to have a JavaScript that checks this text variable every time the document is opened and then sets the Language property of my Normal paragraph style, but I don't have any experience with JavaScript.
    Can someone help me please?
    PS: I use InDesign CS5.5.

    Hi Todd,
    I believe ES4 sp1 allows you to do this, but I don't have that version so aren't sure.  I follow the steps described in this blog, LiveCycle Blog: Gesperrte PDF-Eigenschaften in XFA-Formularen ändern//Edit locked PDF properties in XFA forms seems very hacky but does work (the English version comes after the German).
    Regards
    Bruce

  • How can I get INSTID_B for the documents which are stored using Store Business Document functionality

    Dear experts,
    I had activated the functionality of Store Business document and successfully stored documents in external server.
    My client have a custom function module which is used to send emails.In that FM they used SO_DOCUMENT_READ_API1, SO_DOCUMENT_SEND_API1 function modules.They passed Instance Ident(SRGBTBREL->INSTID_B)(eg: FOL33000000000004EXT39000000000026) as export parameter to the FM 'SO_DOCUMENT_READ_API1' and get the attachment details and content.
    Here my problem is I do not have entries in the table SRGBTBREL for the documents which are stored using the Store Business Document functionality and without INSTID_B I am unable to use the FM 'SO_DOCUMENT_READ_API1' to get the document details and content. Please help me to find INSTID_B for documents which are stored using Store Business Document functionality or please let me know if there is any other way to use FM 'SO_DOCUMENT_READ_API1' for documents which are stored using Store Business Document.
    Thanks in advance.
    Regards,
    Kiran

    Hi Kiran,
    You can use the following method to get the information. For example if you want to get BO documents for a customer
    CALL METHOD cl_binary_relation=>read_links
       EXPORTING
         is_object           = ls_lpor
         it_relation_options = lt_relat
       IMPORTING
         et_links            = lt_links.
    then fill  ls_por-instid with a customer number (KUNNR), ls_por-typeid = 'KNA1' and ls_por-catid = 'BO'.
    Table  lt_relat should contain a line option  for each document type (for example 'I' 'EQ' 'NOTE', 'I' EQ 'ATTA', 'I' EQ 'URL', ...
    In table lt_links you will get your information.
    Maybe some other methods of class CL_BINARY_RELATION may also solve your issue.
    Regards,
    Klaus

  • Getting the document content in a variable??

    Hi,
    How can I get the entire contents of a document into a string variable? I donot
    want to print the contents inline but rather have to get them in a variable. Using
    printDoc or printProperty tag?? I guess I will have to use printDoc but then how
    can I stop the contents from being displayed in the jsp and how can I put them
    in a variable??
    Please help me...
    Thanx.
    Prirua

    You should always double-check code put on the newsgroups, even if it's
    put there by me :)
    It probably should be at the beginning:
    <es:forEachInArray array="<%=docs%>" id="adoc"
    type="com.bea.p13n.content.document.Document">
    <%
         byte[] bytes = adoc.getContentBlock(0L, -1L);
    Notice 'byte[]' instead of 'bytes[]', the type specified as Document
    (Content doesn't have the getContentBlock() method, the sub-interface
    Document does), and the 'L's on the numbers to specify that they are
    longs to help the compiler find the correct method.
    Greg
    Prirua wrote:
    Hi,
    Thanx for your propmt reply. My code looks somethinglike this
    <es:forEachInArray array="<%=docs%>" id="adoc" type="com.bea.p13n.content.Content"
              <%
              bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve all the content
              String enc = adoc.getPropertyAsString(null, "encoding");
              String str = null;
              if (enc != null)
                   str = new String(bytes, 0, bytes.length, enc);
              else // use VM default encoding
                   str = new String(bytes);
              %>
              <li>The document title is: <cm:printProperty id="adoc" name="Title" encode="html"
    />
         </es:forEachInArray>
    But it is giving me these two errors...
    C:\bea\wlportal4.0\applications\portal\MyPortal\WEB-INF\_tmp_war_portalDomain_po
    rtalServer_MyPortal\jsp_servlet\_portlets\__contentq.java:152: cannot resolve
    sy
    mbol
    symbol : class bytes
    location: class jsp_servlet._portlets.__contentq
    bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve
    all the content //[ /portlets/contentQ.jsp; Line: 19]
    ^
    C:\bea\wlportal4.0\applications\portal\MyPortal\WEB-INF\_tmp_war_portalDomain_po
    rtalServer_MyPortal\jsp_servlet\_portlets\__contentq.java:152: cannot resolve
    sy
    mbol
    symbol : method getContentBlock (int,int)
    location: interface com.bea.p13n.content.Content
    bytes[] bytes = adoc.getContentBlock(0, -1); // retrieve
    all the content //[ /portlets/contentQ.jsp; Line: 19]
    ^
    2 errors
    Could you plz specify if I have to include some file or something ?
    Thanx.
    Gregory Smith <[email protected]> wrote:
    You will need to call the getContentBlock() method on the Document
    object to retrieve the bytes of the document's content. Then, you do
    whatever you need to with the bytes. When converting it to a String,
    you
    should be aware of double-byte-character encodings, and should check
    the
    Document's encoding metadata attribute, e.g.:
    <%
    bytes[] bytes = doc.getContentBlock(0, -1); // retrieve all the content
    String enc = doc.getPropertyAsString(null, "encoding");
    String str = null;
    if (enc != null)
    str = new String(bytes, 0, bytes.length, enc);
    else // use VM default encoding
    str = new String(bytes);
    %>
    In 8.1, the new <cm:getProperty> is able to retrieve the BinaryValue
    of
    a binary property of a Node.
    Greg
    Prirua wrote:
    Hi,
    How can I get the entire contents of a document into a string variable?I donot
    want to print the contents inline but rather have to get them in a variable.Using
    printDoc or printProperty tag?? I guess I will have to use printDocbut then how
    can I stop the contents from being displayed in the jsp and how canI put them
    in a variable??
    Please help me...
    Thanx.
    Prirua

  • SharePoint 2013 - Document Set Capture Version History. Does each version captured for each document set keep a copy of all the document stored in the document set?

    Hi All,
    We have currently encountered an issue where even though version control is turned on in a document library, changes made to the metadata of a document set is not tracked in a version history. 
    We have found that in order to this a user will need to manually click on the capture version history button. 
    With this in mind, we are concerned about the impact of this on our storage. The question we have been trying to answer is whether each document set version:
    stores the change in metadata of the document set and a copy of all the documents stored in the document set
    stores the change in metadata of the document set and a reference to the documents stored in the document set (making use of SharePoint 2013's shredded storage)
    The reason we ask this is that if a document set version stores a copy of all the document stored in a document set, a change in one of the fields in the document set could result in the storage used to grow exponentially. e.g. if the document set contains
    documents totaling 30MB, and if we have 10 versions of the document set, we could take up 300 MB in the content database for just one document set.
    We have tried to some searching around Google but wasn't able to find any answers around this question. Would appreciate some assistance from anyone who has knowledge around how document set version history works. 
    Thanks in advance.
    John

    i had a long thing written out, but submit failed.  suffice to say it does "2".  it only stores the changes with pointers to the documents. 
    Christopher Webb | Microsoft Certified Master: SharePoint 2010 | Microsoft Certified Solutions Master: SharePoint Charter | Microsoft Certified Trainer| http://tealsk12.org Volunteer Teacher | http://christophermichaelwebb.com

  • Create Attachment issue in storing the document

    We are facing an issue in tranaction PR05 (Travel Expense Manager) on services object for Create Attachment. We would like to know is there anyway/manage to find any setting so that the u201CCreate Attachmentu201D  would result in storing the document on the content server like the u201CStore Business Documentu201D does.
    Please advise and confirm.
    Thanks & regards
    AK

    I try to answer based on my understanding.
    If you want to store the document in the server when attaching the document in Services for object, it can be done.
    You have to define the directory in the server where the documents are to be stored. Also you need to define a naming convention for all the files which need to be stored in the directory.
    Then you have to programatically enable the services for object to store the files in the directory created for that purpose. Also on clicking, you should programatically enable the document fetching from the directory by making use of the naming convention.

  • All my documents were stored on my icloud drive in windows PC somehow the documents got deleted from my ios device. Kindly let know if there is a way to retrive my data

    All my documents were stored on my icloud drive in
    windows PC somehow the documents got deleted from my ios device. Kindly let
    know if there is a way to retrive my data

    sure pretty simple.  make a backup of your current settings
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    then restore device from old backup you need pics off of
    then import pics to computer
    http://support.apple.com/kb/HT4083
    you may need to save pics to camera roll first
    then restore the new backup and sync pics back to phone via itunes
    Peace, Clyde

  • CS5 - Standard Screen Mode - Hand Tool don't move the document

    Hi all
    In PS CS5 -> Standard Screen Mode -> Hand Tool don't move the document unless you zoom the document so it became bigger than the working area!
    Is it possible to use the hand tool (move the document arround) while the document is smaller than the working area?
    Thanks

    Why not just shrink the window border and move the Window around to where you want it, as has been described above several times?
    because that will make the working area much smaller. You'll be able to move the Window around, but if you zoom in, you will lose working area and you'll have to use the scrolls.
    Maybe it would help to describe WHY you want to move the image within the window/tab?
    There are many reasons for that and I don't have the time to describe all of them right now. I'll give you just one: if you paste an object that is bigger than the document size and you want to transform the object (scale down for example) - you press Ctrl+T and the top, bottom and middle right points are no visible (they are outside the area). Then you have 2 options if you want to scale down:
    1) scale the image with the left side point, and then move the image back to the document
    2) zoom in the document -> so it became bigger than the working area -> so you can move it with the Hand tool (spacebar) -> so you can see the right points -> so you can transform the object -> and then you zoom out again
    both ways are just very slow
    if you can move the document inside the working area (inside the window) then you can perform the task much quicker:
    move it with the Hand tool (spacebar) -> grab some of the right point and transform as simple as that. And you still can see all of your document, and you can still reach the right points
    this is just one example, I can tell you more

  • I have adobe illustrator CS5. When I save a document as a pdf and open it again later to edit Adobe reader can't read the whole document because it only shows part of the document. It is very frustrating. How can I fix this?

    I have adobe illustrator CS5. When I save a document as a pdf and open it again later to edit Adobe reader can't read the whole document because it only shows part of the document. It is very frustrating. How can I fix this?

    keokipineapples schrieb:
    I do have all of my files I am working on located on an external drive. I plan to transfer them directly to the hard drive
    Transfer them to your harddisk immediately.
    External drives are not offiially supported and the source of errors of all kinds including complete loss of files.
    Illustrator support for networks and removable media

  • Unable to open a stored adobe document on my mac or send the document by mail

    unable to open a stored adobe document on my mac or send the document by mail

    What kind of document is this? pdf, Photoshop, InDesign, something else?
    What happens when you try to open it?
    What happens when you try to attach it to an email?
    Let us know we will keep helping you.
    Best of luck.

  • Why is Indesign CS5.5 Sooooo Slow When it Goes to Deeeper of the Document

    Hi all,
    I've got a question recently in using Indesign CS5.5 on a MacbookPro with i7 processor, 8GB RAM and MacOS LION 10.7.2. The interaction turns to be extremely slow when I go deeper of the document. The response is quick at the beginning of the document, but when I turn to 15 pages or later, it takes several seconds to change font and adjust the text frame. I have almost tried all the solutions including readjust the virtual memory or shut down other applications while editing my Indesign file, but it just keeps performing this way.
    Is there anyone who has the same problem with me? I hope I can get some useful suggestions from you guys. Thanks!

    The blog post below lists several reasons why InDesign can be slow:
    http://indesignsecrets.com/why-is-indesign-soooo-slow.php

Maybe you are looking for

  • Windows 8.1 upgrade not possible because Win 8 isn't activated

    A few months ago I bought a new Toshiba Satallite laptop with Windows 8 pre-installed Now I want to upgrade Windows 8 to Windows 8.1. But I don't see the Windows 8.1 upgrade in de Windows store. I think this is because my current installed windows do

  • Equalizer Problem

    Installed 8.2 on Dell with lots of memory and XP. Equalizer box just shows top 1/3- the adjustment bars are completely missing, and no way to adjust. It's driving me nuts- any ideas? Thanks

  • DOI and Script collection/Macro in Word

    Hi experts, My goal is to upload macro from file and after upload run this macro inside word document. I try to upload macro from file in Script collection using get_script_collection(class I_OI_DOCUMENT_PROXY)  & add_script (class I_OI_SCRIPT_COLLEC

  • Problem with ES PRO Password - attention - system install ES Battery

    I bought  program EC PRO Password on BlackBerry. It install program EC Battery. This programme, I don't care !!!. 1,99$ is little pen-case, but I dislike it!!! 

  • Table of Contents Font in FR

    HI, How do we change the font which appears in table of contents in a HFR book,  I am using 11.1.2.3 version. Thanks