Select document by name

Hello everyone, could someone give me an example of how to select among several documents open a specific document by name and activate it
In JavaScript Object Reference could not find an example and as I am beginner it is difficult to assimilate without a practical example
I thank

here's an example, you're probably missing the file extension
var docname = 'yourDocumentName.ai';
var idoc = app.documents.getByName (docname);
idoc.activate();

Similar Messages

  • How to get the document type, name and revision from the search page cv04n

    Hello,
    After performing cv04n and getting a list of documents satisfying the search criteria, how can I then get the document type, name and revision of the selected document using ABAP?
    Thanks

    HI,
    IN table DRAW... u have Document type, Version and document number.
    In Table DRAT also u get Document Type, Version, Number and Description of Doucment.
    Regards
    SAB

  • Commands - selecting document body/region

    DW CS3 - Background is that I have a bunch of .htm files for
    which I want to add a template. I did the following:
    1) Commands > Start Recording.
    2) Modify > Templates > Add Template to Page.
    3) I selected the template from the list and clicked Select.
    4) In the Inconsistant Region Names, I selected Document
    Body, then in the dropdown for where to move the content, I chose
    the correct I selected the correct region and clicked OK.
    5) File > Save.
    6) Commands > Stop Recording.
    The problem comes when I play it back on the next .htm file.
    The recording goes ok until #4 where it stops. And I have to do the
    rest, from selecting the Document Body on to the end.
    Question - What makes it stop and how do I get it to select
    the Document Body etc? I found the way to save the recording
    permanently, ie name it, so that I can edit it by hand if needed as
    I suspect.
    Here is the pertinent part of the code that is there at
    present (where it stops and won't go on to select the Document
    Body):
    <TITLE>AddChandlerTemplate</TITLE>
    <!--
    // This command was recorded by Dreamweaver MX
    function runCommand()
    // Apply Template: /Templates/bookchandler.dwt
    dw.getDocumentDOM().applyTemplate('/Templates/bookchandler.dwt');
    // -->
    So, since I don't know javascript, what would the missing
    commands be and where do I put it? The part where it stops has a
    window title bar called Inconsistent Region Names. Under Editable
    Regions, it "outlines" down to Document Body and says it's
    unresolved and in the "Move content to new region" dropdown, I
    choose StartHere which is the main editable region in the template
    (StartHere being what I called the editable region). I've tried
    clicking the User for All button but that doesn't seem to have an
    affect.
    Would some kind soul take pity and tell me what code should
    get edited into the Command, and exactly where to put it?
    I've got about 500 of these to do and don't relish doing the
    balance of the macro by hand.
    Thanks.

    This whole plan is a bad one. Applying a template to a page
    with existing
    content is going to be trouble. The best way to do it is to
    spawn a new
    child page, copy/paste from the existing one, and save the
    new one over the
    old one.
    > Question - What makes it stop and how do I get it to
    select the Document
    > Body
    > etc? I found the way to save the recording permanently,
    ie name it, so
    > that I
    > can edit it by hand if needed as I suspect.
    A mouse action stops the recording. It cannot record mouse
    stuff.
    > I've got about 500 of these to do
    Using templates on 500 files is madness, you know? But
    alternatives are
    going to require manual intervention as well....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "kd6kfa" <[email protected]> wrote in
    message
    news:[email protected]...
    > DW CS3 - Background is that I have a bunch of .htm files
    for which I want
    > to
    > add a template. I did the following:
    > 1) Commands > Start Recording.
    > 2) Modify > Templates > Add Template to Page.
    > 3) I selected the template from the list and clicked
    Select.
    > 4) In the Inconsistant Region Names, I selected Document
    Body, then in the
    > dropdown for where to move the content, I chose the
    correct I selected the
    > correct region and clicked OK.
    > 5) File > Save.
    > 6) Commands > Stop Recording.
    >
    > The problem comes when I play it back on the next .htm
    file. The recording
    > goes ok until #4 where it stops. And I have to do the
    rest, from selecting
    > the
    > Document Body on to the end.
    >
    > Question - What makes it stop and how do I get it to
    select the Document
    > Body
    > etc? I found the way to save the recording permanently,
    ie name it, so
    > that I
    > can edit it by hand if needed as I suspect.
    >
    > Here is the pertinent part of the code that is there at
    present (where it
    > stops and won't go on to select the Document Body):
    >
    > <TITLE>AddChandlerTemplate</TITLE>
    > <!--
    > // This command was recorded by Dreamweaver MX
    > function runCommand()
    > {
    > // Apply Template: /Templates/bookchandler.dwt
    >
    >
    dw.getDocumentDOM().applyTemplate('/Templates/bookchandler.dwt');
    > }
    > // -->
    >
    > So, since I don't know javascript, what would the
    missing commands be and
    > where do I put it? The part where it stops has a window
    title bar called
    > Inconsistent Region Names. Under Editable Regions, it
    "outlines" down to
    > Document Body and says it's unresolved and in the "Move
    content to new
    > region"
    > dropdown, I choose StartHere which is the main editable
    region in the
    > template
    > (StartHere being what I called the editable region).
    I've tried clicking
    > the
    > User for All button but that doesn't seem to have an
    affect.
    >
    > Would some kind soul take pity and tell me what code
    should get edited
    > into
    > the Command, and exactly where to put it?
    >
    >
    > I've got about 500 of these to do and don't relish doing
    the balance of
    > the
    > macro by hand.
    >
    > Thanks.
    >

  • Selected TOC style Name

    Hi All,
    Simple question for you...
    How can I alert the selected TOC style name.
    We are creating huge tool. Based on the selection Toc Style, we will process the multiple document.
    For example I want to alert the Toc Style CCC(tick mark) name in this document.
    Trying Code:
    var myTocStyle = app.activeDocument.tocStyles.selectedIndex;
    //~ var myTocStyle = app.activeDocument.tocStyles.item(-2);   //Dont want this concept
    Very urgent request. Please help.
    Thanks
    Beginner_X

    From:
    myStory.storyType
    you can determine that a story is a TOC, but how do you get from there to the TOC Style that was used to create said TOC?
    This was the question that was bugging me back in CS3 days and I see no improvement in the CC object model. Stories don't have an associatedTOCStyle property. But maybe you can get at this by lateral thinking. If a story was created as a TOC then it has certain paragraph styles in it. If the TOC Styles are designed to have unique paragraph styles that identify the TOC Style, then you're home and dry. For example, you could have a ParagraphStyleGroup for each TOC Style and the name of that group could be the same as the name of the corresponding TOC Style.
    Of course, this assumes you have control over the template for the project so that this relationship can be relied on. But given that, you can start with a text selection. Check the applied paragraph style, look at the name of its parent and bingo: there's the name of the TOC Style.
    I'm not sure if this helps in your situation.
    Dave

  • Query to combine document series name and number

    Hi all,
    Example of Sales Quotation document numbering as following:
    Document series name: SQ10
    Document number: 1001
    Can I have a query to combine the series name and number as one field, e.g. SQ101001?
    This is for the purpose of if there is revision in a sales quotation, new quotation will be raise and UDF need to display previous sales quotation no.
    Thanks in advance!
    Phoebe

    Hi,
    Thanks for your help.
    Got the query as following:
    select T1.SeriesName + cast(T0.docnum as CHAR(15)) AS 'SQ No.', T1.[SeriesName],T0.[DocNum], T1.BeginStr AS 'Prefix', T0.[CardCode], T0.[CardName]
    from OQUT T0, NNM1 T1
    where T1.ObjectCode = 23 and T1.Series = T0.Series

  • False message: The document name you requested (/selector_test.html) could not be found on this server. However, we found documents with names similar to the one you requested.

    When I specify http://www.celticmanner.com/selector_test.html to Firefox 6.01, I get the false message:
    Multiple Choices
    The document name you requested (/selector_test.html) could not be found on this server. However, we found documents with names similar to the one you requested.
    Available documents:
    /selector_test.txt (common basename)
    The file http://www.celticmanner.com/selector_test.html IS PRESENT on the host.
    The file http://www.celticmanner.com/selector_test.txt IS NOT. (It had been earlier.)
    I do not find the text "selector_test.txt" anywhere on my partition C! Where does Firefox retain a pointer to this file that no longer exists? And why?
    NB: The text "could not be found on this server" is sloppy. That message is not issued from a servcer, but from the instance of Firefox on my computer. The message should read "could not be found on the specified server".
    B. Somers

    I have the same problem and it does not have to do with firefox. Do you have any idea how to fix it through?

  • Display workorder   only related to   vendor selected in Vendor  name UDF

    Hi ,
    I am using SAP 2007 PL 18 ,
    In a Goods Issue Form I am  created two UDF 1) Vendor Name 2)  Work Order Nos .  
    Here queries related  Workorder No. Display workorder   only related to particular  vendor selected in Vendor name UDF  .
    Pl provide me FMS query.
    Thanks
    nitin

    Hi Nitin,
    My question is How you can know these Work orders are related to particular Vendor? Any relation is there between the Vendors and work orders?
    Also what you calling as Work Orders? I think it is Purchase Order?
    If it is PO, then try this
    Select T0.DocNum from ORDR T0 where T0.CardCode = $[$OIGE.U_BPCode] and T0.Status = 'O'
    The above query will show only the Open PO list. If you want all POs then remove the T0.Status condition.
    Regards,
    Bala
    Edited by: Balakumar Viswanathan on Jan 3, 2011 11:13 AM

  • Error saving: The location of the document " DOC NAME " cannot be determined.

    I am having issues saving .pages files on to our network drive after upgrading to Mavericks and Pages 5.0.
    A bunch of errors and issues occur when editing old or saving new pages files on our local SMB server. Saving files on to my local machine is fine.
    I cannot save to the original network location at all. It errors: The location of the document "<DOC NAME>" cannot be determined. The folder in question has permissions that have always worked before the upgrade of mavericks/pages. I can rename the files in question, and save other types of files in to that folder without issue.
    When it errors, it provides the option to Save as... this also fails, no matter where I try to save it to - local or network.
    The auto-save feature fails for the same reason. This creates several temp folders with blank pages documents in it.
    Most disturbingly, it appears to be destroying the original file by renaming it to a temp file, that is henceforth un-usable. Luckily Ive got backups of the documents.
    Help!

    Update:
    The new version of Numbers also comes up with the same errors.
    The previous version of both Pages and Numbers work absolutely fine still - have had to revert to using these for now.

  • Incorrect doc.no.: select document number between 82139259 and 000000000

    Hi Expert,
    When i try to to Release to Accounting t for a Billing Document (VF02)-->Change Billing Document --> Release to Accounting, It is not creating accounting Document instead it Says the Below Error.Pls Help to resolve this.
    Incorrect doc.no.: select document number between 82139259 and 00000
        Message no. F5151
    Diagnosis
        The document number you specified, "&v1", is not in the ap
        number range. The number range is dependent on the documen
        The exception to this rule is formed by recurring entry do
        must use number range 'X1' and sample documents, which mus
        range 'X2'.
        Possible reasons for this error message are:
        o  You have entered an incorrect document number.
        o  An incorrect document number was transferred to this ap
           during an update from another application (e.g. CO).
    System response
        The document cannot be processed any further.
    System response
        The document cannot be processed any further.
    What to do
        o  Enter a document number that is within the specified number interval.
        o  If this error was caused by an update from another application, check
           the type of number assignment in that application (external or
           internal?) as well as the document number transferred.
    Example
        In the CO settlement profile, a document type with external number
        assignment was entered, whereas an internal document number was
        transferred.
    PLs Help
    Zubair
    Edited by: MhdZubair on Mar 22, 2011 10:42 AM

    Hi,
    Please refer the link :
    Incorrect doc.no.: 2. Select document number between 6300000000 and 6399999
    Regards,
    Pramitha.

  • Document Set name as refiner in Search results?

    I'm wondering if there is a way to use the document set name as a refiner in a search results page so a user can search a specific site or document library and choose the document set name to narrow the results? Initially I thought I could create a
    shared column on the document set (in the properties of the document set type itself) which looked up or calculated the document set name and then this would be shared with the documents within the set. I couldn't find a way to get the name of the set.
    What would be the best way (if any), of getting the search results or document properties themselves (if I created a column which contained the document set name for e.g.) to show the document set (if populated) that the document belongs to?
    Document Library
    Document 1
    Document 2
    Document Set A
         Document A1
         Document A2
    Document Set B
         Document B1
    How can I get search results to show a refiner on Document A1 and A2 indicating they're in the same Document Set A? I realise I need crawled/managed property but how best should I set this up?
    If this is not possible can anyone suggest an alternative please?
    Many thanks!
    Scott

    Hi,
    I am afraid that there is no existing managed properties on the document which we can count on to know which document sets the document belongs to.  Just like what you said "created a column which contained the document set name", this could
    be a workaround to achieve what you want.
    To do that:
    1. Add a new site column named DocumentSetName and add it to
    DocumentSet Content Type. And give value "DocumentSet_A" for document set A and "DocumentSet_B" for document set B.
    2. In the Document Set settings, enable the newly added column as
    Shared Columns. It means that all documents added to this document set will share the column and its value.
    3. Reindex this document library.
    4. In the Search Results refiner, add the automatically created Managed Property
    as Refiner. 
    With this method, you can filter the documents with the name of document sets when searching office documents in search center. The only information you need input manually is Value of the site column.
    http://blogs.technet.com/b/sharepoint_made_easy/archive/2013/03/19/step-by-step-configuration-to-add-custom-refiners-in-the-refinement-panel-of-search-results-page-for-sharepoint-online.aspx
    Moreover, if you have the requirement to create batch of DocumentSets without any manual input, you can refer to the following link which explain how to create them with proper settings and default values.
    http://www.c-sharpcorner.com/Blogs/12139/how-to-create-document-set-using-csom-in-sharepoint-2013.aspx
    Miles LI TechNet Community Support

  • Print document's name in Event Log ID #307 on Server 2012

    Creating a new printer server using Windows Server 2012.  Everything is working out fine so far, however I just ran into one problem that didn't happen in our Server 2008R2 print server.
    When looking at print jobs that have completed under:  event logs --> Microsoft --> Windows --> PrintService --Operational, I have noticed that Event ID 307 is not displaying the printed document's name in Server 2012 (it did for Server 2008R2). 
    In Server 2012, the document name simply displays as "Print Document" instead of displaying the document's name.
    Anyone have any ideas on how to get the document's name to properly display in the event logs?
    Thanks for any help.

    Hi Alan,
    I have configured a Server 2012 R2 standard as print server to manage printers and Monitor the print usage of users, however I am not getting the Print logs (Event Log ID 307) in the default event logs directory on the print Server.
    I perform some search and come to know that it’s a known problem in Server 2012 and there is Hotfix available. I installed the Hotfix mentioned here
    http://support2.microsoft.com/kb/2938013/en-us , but still logs are not getting generated.
    I also made the below setting for the logs.
    Creating Registry entry
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows NT\Printers] "ShowJobTitleInEventLogs"=dword:00000001
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers] "ShowJobTitleInEventLogs"=dword:00000001
    The policy name: Computer Configuration \ Administrative Templates \ Printers
    Allow job name in event logs
    Keep printed Docs setting is also enabled on all the printers installed on Print Server.
    Noting seems to be working here or am i doing something wrong here.
    Regards
    Mukesh

  • Is there any reason not to use spaces in document file names anymore in a document library?

    We are revamping our sharepoint document library file naming conventions. In lots of blogs and tutorials, I have seen over and over the recommendation to use underscores instead of spaces in document file names in sharepoint. Part of this is I think to prevent
    the infamous %20 in URLs pointing to the documents. That doesn't really concern us and we don't generally have file names that approach 256 characters.  We don't want to go the route of having different document names than document titles so we want our
    document names to be a clear and readable as possible. We think that using spaces (and occasionally dashes) in the file names makes them more readable, and sharepoint 2010 seems to be able to search these file name correctly.  An example document file
    name would be "elephants - how to clean elephant cages".
    Has anyone run into a reason to avoid using spaces and dashes in document file names in sharepoint 2010? I don't want to start using spaces and then be sorry I did down the road. Thanks!

    It isn't going to lead to the fall of western civilisation.
    You will get longer and messier URLs for documents but it's very unlikely to cause issues. There have been some bugs in the past where hyphens in particular can be mis-encoded in searches but they only affect a small range of build numbers if memory serves.
    I much prefer using no spaces for document libraries as it makes the starting URLs so much cleaner but that's a style question. For documents unless you've got a very strict document naming standard spaces are common and dashes aren't uncommon.

  • How to make the selection screen field names to apper as in logon language

    hai
    the selection screen field names should appear
    as that of logon language
    and <u>before that once i logon with a language
    it should pop up the (some)message in the logon language</u>.
    For the selection screen filednames to appear as that
    of the logon language whether i have to maintain the textelements for all screen fields in all possible languages or i have to write only in english and tell mentioning it to change

    In <b>SE38</b> --> Goto --> Translate.
    Choose target language, and start making the translation -;)
    Greetings,
    Blag.

  • [JS]: Is there anyway to change a document's name?

    Is there anyway to change a document's name? Or create a document with a certain name?
    I'm looking at the JavaScript reference, and it says that document.name is a readonly value. Is this entirely true / is there any other way to change the name of a document?
    Any help would be much appreciated
    Thanks!

    app.documents.add ([showingWindow: bool=true][, documentPreset: DocumentPreset][, withProperties: Object])
    the main interest for you is the "withProperties" part.

  • Incorrect doc.no.: 24. Select document number between 0090000000 and 009999

    Hi All,
    I created billing doc, it save and gave the number but with error on account determination, i checked the no range corrected it and got the error: Incorrect doc.no.: 24. Select document number between 0090000000 and 0099999999.
    Please Help.
    Maureen.

    I very much hope you've done it in a test system.
    It seems that your document was given number 24, according to the number range that existed at that time. Then you went and changed the number range to 900000... and, naturally, number 24 is not within the valid range anymore. So what else did you expect?
    If it was (fingers crossed) a test system, just forget about that document and create a new one. Otherwise you'll have to change the range back, then cancel the document 24 (make sure the cancellation does not post to accounting either), then change the range again.

Maybe you are looking for