get the section limits the page names

Hi all

I'm stuck with getting sections of the page names.

sections.pageStartName gives me the name of the start page. Unfortunately, it is not pageEndName

If sections use Arabic numerals, I can do math easily using sections.length for ending the name of the page. But if they use a different system like Roman or letters, it fails.

sections.png

So my question is how to get the information of the middle section page range, that is to say 'a - c '?

TIA Loïc

function getSectionPageRange(section){
    var doc = section.parent;
    var retVal = [];
    var pages = doc.pages.everyItem().getElements();
    var i=-1;

    while(++i < pages.length){
        if(pages[i].appliedSection == section){
            retVal.push(pages[i]);
        }
    }
    return retVal;
}

Tags: InDesign

Similar Questions

  • How to get the page name

    Hello

    I use JDev 11.1.2.4

    I have a page that is accessible from several pages, as in the menu bar link or any other page. I want to put values on the page function where this page is called from.

    any ideas how can I achieve this?

    Thank you

    Hello

    When you click on the button/link or something else, have a setPropertyListener with 'name' of the page and to = = #{pageFlowScope.yourVariable}. (assuming that you have it all in one single taskflow, otherwise use session it)

    And get this pageflowscope variable and have problems on this (to implement your own business logic)

    Thank you

    Alisson.

  • Get the current name of the page without the aid of a bean

    Hello, everyone!

    If I would get the current name of the page to a page, I'd do something like this:
    #{bean.currentPageName}
    @SessionScoped
    @Named
    public class Bean
    {
        public String getCurrentPageName()
        {
            return FacesContext.getCurrentInstance().getViewRoot().getViewId();
        }
    }
    But my question is: is it possible to get the name of the current page directly from the xhtml page without using a bean? Is it something related to it or information available to the page itself? If so, how can I access it?

    Thank you in advance.

    Marcos

    Use the same semantics in the page:

    #{facesContext.viewRoot.viewId}
    
  • Get the page to validate in WC3

    I have two pages I have forms on. I'm getting errors

    on the two pages of the section of the form of the pages on the validator 3 Toilets. How can I get the pages to validate the WC 3?

    Here is the code for the form:

    < div id = "form" > < h3 > Contact form < / h3 > < form action = "FormToEmail.php" name = "Contact form" method = "post" > "
    < fieldset > < div id = "label" > < label > name: < / label >
    < br >
    < input name = "Name" type = "text" id = "Name" size = "30" / >


    < / label >

    < / div >
    < div id = "label" > < label > address: < br >
    < input name = "Address" type = "text" id = "Address" size = "30" / >
    < / label > < / div > < div id = "label" > < label > City: < br > < input name = "City" type = "text" size = "30" / >
    < / label > < / div > < br >
    < div id = "label" > < label > phone number: < br > < input name = "phone" type = "text" size = "13" / >
    < / label > < / div > < br >
    < Lablel > e-mail address: < br > < input name = "email" type = "text" / > < / label > < br > < / fieldset >
    < fieldset >
    < label >
    < br > the elements you are interested in: < br >
    < p >
    < label > < input name = "services" type = "checkbox" / > heating < / label >
    < label > < input name = "cool" type = "checkbox" / > air conditioning < / label >
    < label > < input name = "solar" type = "checkbox" / > solar < / label >
    < br > < label > < input name = "isolation" type = "checkbox" / > insulation < / label >
    < label > < input name = "Plate" type = "checkbox" / > sheet < / label >
    < label > < input name = "water heaters" type = "checkbox" / > water heater < / label >
    < /p >
    < br >
    < p > < input id = "Submit" type = "Submit" value = "Submit" / > < strong > < / strong > < / fieldset > < / form > < / div >

    Then the other page has this code for the form, and it is not validate either:

    "" < form > < input type = "button" value = "print this coupon"
    onclick = "Window.Print (); return false; "/ > < / make >

    Any advice/help is greatly appreciated.

    Thank you!

    That's all you need:

    
    

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • How can I get the user name (the user who has registered their own personalized interactive report) in the application

    Hello

    I want to get the user name. Who saved their own custom application of the Apex report.

    If someone could please help to get user names.

    Thanks in advance.

    Kind regards

    Cyril S

    A possible source: see in the following metadata table: apex_application_page_Ir_rpt

    You will need the id of the application, the page id and the id of the report to the information, which is located in the application_user column...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • When I run mozilla or open a link in a new window but I get the page you want to load an additional page of the new tab opens with it, the difficulty?

    When I launch mozilla or open a link in a new window I get the page you want to load but an additional page of the new tab opens with her. I tried to change my homepage to different things (new tab, firefox home, see the blank page) but I always get a new additional tab to open. How can I get only one page to open it?

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions and preferences.

    • Sites Web open is not recorded in less than 25 versions of Firefox.

    To reset Firefox, perform the following steps:

    For Firefox versions prior to 29,0:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the "Reset Firefox" line

      button.

    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    For Firefox 29,0 and above:

    1. Click the menu button

      click Help

      and select troubleshooting information.

    Now, should open a new tab containing your troubleshooting information.

    1. At the top right of the page, you should see a button that says "Reset Firefox"

      . Click on it.

    2. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    3. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • I bought ipad air 1 after that 2013 but can not get the pages for free. Numbers and imovie I can. IOS9 running at the moment. I have pages when I connect on icloud on my pc. Can I transfer iPad app, because it is not in the ILO purchased in itunes.

    Hi everyone, this is my first post, also help on the post would be appreciated.

    I bought ipad air 1 after that 2013 but can not get the pages for free. Numbers and imovie I can. IOS9 running at the moment. I have pages when I connect on icloud on my pc. Can I transfer iPad app, because it is not in the ILO purchased in itunes.

    Thanks in advance

    Newbie

    The only way to install an ipad app is through the app store.  PC or Mac software does not run on the ipad.  Search in the contacts link at the bottom right of this page.  Give apple a call.

    I guess is the icon for pages in icloud for storing documents pages.  At the same time, apple had a cloud based pages.  Not sure what happened to her.

    R

  • Can't get the page to print from Microsoft Visio. Also will not delete the queue.

    Can't get the page to print from Microsoft Visio. Also will not delete the queue.

    The problem arose when the USB printer to a laptop with Windows 7 on a desktop using Windows XP. The printer is a HP Deskjet D1660.

    Hunting around, I found a solution that had been proposed for someone else's problem. The detachment is shown below.

    Re: Update critical to correct a PC to printer communication problem, washer dot?

  • I only get the (page 1 of 1) header and footer (file://C...) when I print online

    When I try to print a document online, I only get the (page 1 of 1) header and footer (file://C...)  This is not always the case.

    How to print the document, as indicated on the screen?

    I'm on HP Officejet Pro 8600, but had the same problem with my HP Officejet 6500.

    Windows 7

    He tried again on another messaging - and it worked! It must be me.
    Thank you.

  • [MAF] How to get the user name and password after login?

    Hi Experts,

    I have a call to REST where it requires identification information of the user (uname and password) to identify the data that belongs to who.

    Authentication has been made with OAuth.

    I believe that there is an API to get the user name and password in the CRG

    See you soon,.

    Hendry

    Hello.

    You don't need to manipulate the credentials yourself in code. MAF will propagate the logon cookie or inject the identification information in the HTTP header if cookies are not supported.

    To do this, you must select the purchase option of cookie from the server connection Include in REST in the dialog box create a connection Login MAF , such as discussed here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-securing.htm#ADFMF23732

    In addition, you must attach the policy of security appropriate to the connection, as explained here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-Web-services.htm#ADFMF23697

    Best regards

    Frédéric Desbiens

    Senior Product Manager

    Mobility and Cloud oracle

    Twitter: @BlueberryCoder

    blog: http://blogs.oracle.com/blueberry

  • How to get the full name of the user of the OPS?

    Hi Experts,

    I know we can get the login controller pageContext.getUserName () user name. Is there a simple way/API to get the full name of the user (name, first name) of the OPS?

    Thank you.

    Hello

    USER name and information of the PERSON are two different concepts. You can get the id of user with pageContext.getUserId () connection. In order to get the first name, last name, you must select it from table PER_ALL_PEOPLE_F.

    You can use the sql select and set pUserId of pageContext.getUserId ();

    SELECT FIRST_NAME, LAST_NAME TO PAP PER_ALL_PEOPLE_F, FND_USER FU

    WHEN TRUNC (SYSDATE) BETWEEN PAP. EFFECTIVE_START_DATE AND PAP. EFFECTIVE_END_DATE

    AND FU. EMPLOYEE_ID = PAP. PERSON_ID

    AND FU. User_id =: pUserId

    Anil

  • How can I get the file name of a report, I have just stored in the cache

    I would like to be able to get the file name of the report that is stored in the cache directory.

    When a report is created from forms to help

    SET_REPORT_OBJECT_PROPERTY (v_report_id, report_desname, 'fubar.pdf');

    In the cache directory a file is created something like fubarABC123DE.pdf. I guess that part of ABC123DE is the cache key.

    I want to be able to read this file from another process. This process cannot use http, so I can't pass the URL. However, I would still be able to access by using the URL.

    Is all the same to get at the file name?

    The answer is, according to management, you can get the name of the file in the cache, so if you want to access the file you need to store somewhere else.

  • How to get the user name during the execution of a workflow?

    Here's what I would do:

    Say that each user is allowed to have 4 instances QA, create a workflow when a user run from vCenter plugin, it must be able to get the user name of the SSO user jsmith, and then he questions if there is an existing virtual machine jsmith_qa1, jsmith_qa2,jsmith_qa4, etc., if there isn't one, then create one for him; If not, indicate to the user that there are already 4 cases.

    I found that I can use getCurrentLdapUser to get [email protected] , now I want to remove the domain.name (there are several areas):

    username = actionResult.userPrincipalName.replace ("@[a - z].") +","");

    This does not work. Anyone know where I can find the right document for the document script of vRealize Orchestrator?

    Thank you!

    Jack

    vRO uses javascript as its scripting engine.

    UPN var = actionResult.userPrincipalName;

    var username = upn.substring (0, upn.indexOf("@"));

    Something like this will give what you want. You could also do a replacement, but I think that you should remove the quotes around the regex and use "/" instead.

    username = actionResult.userPrincipalName.replace (/ @[a - z] "+ /," "");

    Paul

  • How to get the host name of the physical computer inside a virtual machine until the user logs in Windows?

    I don't know if this is the right place to post this question, I develop software to support VMWare PCoIP and need to know how to get the host name of the physical machine (which manages the virtual machine and View Client) within a virtual machine before the user logs in Windows of the virtual machine.

    I understand there are two ways to read the host name, via the HKEY_CURRENT_USER\Volatile Environment registry and environment variables, but they are available once the user is connected. I need info before the user connects.

    Is there a VMware API that can be called or asked the host name?

    Thank you.

    Not on the broker, but there are the startup scripts to log on to the computer virtual itself: http://pubs.vmware.com/view-52/topic/com.vmware.view.integration.doc/view_integration_startsession_script.9.2.html

    Note that these executed when a virtual desktop computer allocated connection, not to the point that the client connects - it is possible for the customer to not complete the connection (crash, cancel, network failure) and so any what solution you design must handle this.

    Mike

  • Get the user name of the user of the system

    Hello world

    I am new to adobe flash. How can I get the user name of the user of system and display on the flash application.

    I would also like to know if it is possible to import libraries that are on Adobe air apps in Adobe flash.

    Thank you very much

    you have very little access to information on the system and no access to system user.  check the class features to see the available information.

Maybe you are looking for