Autonumbering Sections via Master?

Reading the forum post Section Numbering in Header it seems as though what I need to do may not be possible, but the online documentation implies otherwise, and Bob Bringhurst suggested I post my question here.
What I'm trying to do is provide chapter-numbers on each page, in addition to page numbers.  But since the content is from XML all my chapters are in the same document and I need to set up the numbering in the Master.
The documentation about "Add an automatically updated chapter number" says ""if you want to divide a single document into chapters, you can create sections instead".  But the section "Define section numbering" seems to be only about dynamic page numbers or static section text (explicitly defined in the Section Options dialog box).
Is there a way to create an automatically updated number in a page header (defined in the Master) that is NOT the page number or chapter number?
I guess my follow-on issue will be - if I can get an automatically updated section number in the header, is there a way to add a Section break, or does that have to be done manually for every section anyway?
julie

Yes. You can add whatever you want between the quotes. You can also
make it:
doc.sections[i].marker = "text before " + (i+1) + " some more text after";
as well...
If you need leading zeros before the number, you can do something like
this:
var sectionNumber = ""+(i+1);
if(sectionNumber.length == 1){
   sectionNumber = "0" + sectionNumber;
doc.sections[i].marker = "text before " + sectionNumber +" some more text after";
Harbs
Message was edited by: Harbs.
Reason: fixing up badly formatted code.

Similar Messages

  • Markers - Can I trigger looped marker sections via MIDI controller?

    This is kind of a multi-part question:
    I know that I can set up key commands to toggle between various markers, but can I set up a group of MIDI controller buttons so that each one represents the 1st marker, the 2nd marker, the 3rd marker, etc., etc. of whatever project/song might be loaded?
    Pending that answer, is there a way to set up each marker as its own looping section (without manually changing the cycle section)? Logic makes it very inviting to write/record over looped parts, and I would love to be able to toggle between each looped section of a project, via MIDI controller hardware, for a more intuitive way to both write additional parts for each song section, as well as compose more fluid sequences and experiment with different arrangements without having to drag everything around in the arrange window. I figured that using markers would be a way to do this, since I am under the impression that I can already have the 1st, 2nd, 3rd, etc. mapped out to MIDI controller buttons/triggers. I am hopeful that the trick can be accomplished with cycle automatically being associated with each marker section . . .
    Thanks for your time, and your assistance/suggestions!

    You can assign buttons to control key commands by opening the key command set-up window. Navigate to the key commands you wish. You don't need to assign an actual key command for this to work, by the way. Highlight the appropriate key command (go to marker number X in your case). At the bottom left is the 'learn new assignment' button, press it and then press a button on your keyboard. Repeat for all desired key commands.
    If you type 'marker' into the search box of the key command window, you will notice a key command a few spaces up from the 'go to markers' that is called 'set locators by marker and enable cycle' - to jump to this cycle just hit play, even if it's already in play it'll jump as long as you have 'play from cycle' selected in your play button options (which it is by default). Then press record and it will be recording.
    There are several other key-command strategies that end up with the same result. So explore the options to find out what works for you. Since you can only assign one key command to a button, you do have to press several buttons (select marker, set loc. at marker, play, and then record).
    You could rig up a little system in the environment that splits and converts cc messages so that pressing cc24 spits out 24,25,26 which are all assigned to different key commands. So one button kicks out 3 key commands this way. It's not too complicated to set up, but you need to pay attention to what is assigned to what or else you'll end up with a spaghetti pile of confusing assignments. Start with the easy 4 button method to make sure this is actually accomplishing what you want - who knows, maybe you will discover a key command combo that takes a step or two out. Then you can take a look at combining and simplifying.

  • How to apply master pages across sections or whole

    It's a very basic problem to which I'm not readily finding the answer in searches. I wish to apply master pages and consistently, no matter how I format the request, am notified: "one or more of the pages specified are not valid page names." So please provide an example of how the page/section names are supposed to be written for:
    A 100 page book with 1 section;
    A 100 page book with 2 section;
    Applying master page changes to only a subsection of the book (i.e. pages 50-75).
    I'm aware it's similar to "Sec1: 1-100", but not precisely that.

    OK, I think maybe I'm beginning to understand waht you are doing. Are you trying to use the Pages Palette menu to Apply Master Page to a range? You would need to include the section number for both pages, like this: Sec1:1 - Sec1:100.
    You can also select the pages in the palette first, then use the apply master command. That might be easier.

  • New Page numbers for Sections in Pages 5.2

    Hi, I can't figure out to how to start numbering pages from 1 in a new section using Pages 5.2.
    I've tried to add new sections via both the Inspector and Insert > Add Section Break, but when I attempt to insert page numbers in the header of a new section, it's still not starting at 1.

    See what I mean? I've successfully created the new section, but it still wants number the first page of a section with 2.

  • GL master data - display translation in GL account list report

    Hello all. I would like to produce a report that shows the Spanish translations we've assigned to GL accounts in the Translation section of master data. However, I can't see where I can define the language "ES" in any of the standard reports criteria. Any suggestions? Or do I have to log into SAP 4.7 with the language "ES" in order to see those translations?
    Thanks!

    Hi,
    Try F.01.
    Enter the chart of accounts, the comapny code.  Select the FSV (use BABE, its like a trial) and input the language as ES.  It should show you the text in Spanish.
    If you just want to view the GL account and the Spanish description, you can view the table SKAT in transaction SE11 / SE16 and you will be able to see the text in the language of choice.
    Cheers.

  • Sending smartforms as PDF attachement via e mail

    Hello all:
    I have configured PPF actions to send smartforms as PDF attchment via e mail it works fine in one client.
    But when I copied the transport to another client, the entries in field 'Recipient' in the configuration step 'Define Conditions and Output Parameters for Comm. of Cust.Shipm. & Cust.Dcl'  are not copied to the new client. I had maintained the name of the inbox folder that has e mail addresses in this field. Any one has a similar issue ? Or is this similar to the number ranges and not transportable and we have to maintain them in every client. Any insight into this very much appreciated.

    Hello:
    If you want to send the smartform as a PDF attachment, configure your PPF action as described below:
    Step 1: Define Techn. Medium for Msgs (PPF Actions) f. Cust. Shipm. and Cust. Decl.
                In the action definition, choose processing type as 'External Communication'
                                                             form type:  'Smart Forms'
                                                             format: /SAPSLL/FORM_PROC
                                                             personalization type: 2 object specific....
                Make this action definition partner function dependent and create a Z partner function. Maintain that  
                partner function in this definition.
    Step 2: Define Conditions and Output Parameters for Comm. of Cust.Shipm. & Cust.Dcl
                Select Communication Method: Internet Mail
                          Mail Settings: send status: 3
    Configure the reamaining PFF actions as usual.
    This will work if that configured partner function is maintained in the customs declaration. And for that business partner, maintain the e mail address in the address dependent section via txn BP.

  • Reapplying Master to Slide / Selection not working

    I've searched for this problem through the database without any hits.
    I've created my master slides with bulleted body text and heads. If I make changes to the masters, the changes instantly reflect as they should. BUT if I copy text from another presentation or source and paste it into the body text, Keynote is defaulting to Helvetica 12 pt (master is Arial 30). I right click on the slide for Reapply Master to Slide and nothing. I click the section, Reapply Master to Selection. Nothing. I try switching back and forth between other masters. Nada. I've tried pasting the copy into another program to strip it's formatting code. Zilch.
    Time and again I am forced to go in and reformat cut and paste copy manually using copy style and paste style. It's a tedious process since I'm merging some old and new shows.
    Anyone else encounter and solve this? Any help, much appreciated.

    Can I change my icon to a sheep? As in sheepishly shrinking away from the post feeling like a dope?
    Thanks Jerry. That certainly will do it. I guess I always mistook that pull down command as copy style / paste style in my haste.
    <Edited by Host>

  • How to get name of the slicer via script

    Hi Gurus,
    I was wondering if we could get the name of the slicer added in IR Query section, via script ??
    That is, I have a bqy connecting to Essbase OLAP.
    Now I am adding a slicer in OLAP Section via script.
    For Ex : ActiveDocument.Sections["Query2"].Slicers.Add('Market.Gen3,Market' , 'Market.LA')
    Now,for some reason, I wanted to retrieve the name of the slicer I added and assign it to a variable. Is this possible ?? I couldn't see any option for this. Please help me out if any one has done this before ?
    Thank You,
    Aji

    Sethil,
    Use your date(let us say Date1) instead of sy-datum.
    CALL FUNCTION 'MONTH_NAMES_GET'
    EXPORTING
    LANGUAGE = SY-LANGU
    IMPORTING
    RETURN_CODE =
    TABLES
    MONTH_NAMES = itab_month
    EXCEPTIONS
    MONTH_NAMES_NOT_FOUND = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE itab_month
    WITH KEY MNR = date1+4(2).
    itab_month-LTX will contain the value you are looking for
    Good luck
    Raghava

  • GTS SPL Master Data Refresh

    Hi all,
    We are planning to refresh SPL Master Data in GTS System, We have excessive record in GTS System.
    SPL records in production system is not in sync with records we are getting from 3rd party.In production system we have more than 190K  records whereas actual entries should be 55K according to 3rd party system.So first Question is how to find out excessive record?
    Second How to Archive those records in GTS System.?
    Can anybody please help me on above issue & also best approach to refresh?
    Thanks
    Rajrishi Gupta

    Hi Rajrishi,
    You can archive the SPL master data. That shouldn't be a problem. But I was trying to understand how there were extra entries created. Did you get chance to check with your provider, if there were 190K entries provided by them in the past and now they have reduced it to 55K?
    For archiving SPL master go to GTS Area menu-> System Administration->Archiving->(SPL section) Archive Master Data. Archiving Object will be SPL_MD. This will let you delete the existing SPL data.
    Once done, you can upload the latest XML file. After uploading you will have to rescreen all your partners which might take some time and there might be some blocks. Please try this in your sandbox and check the results before proceeding ahead.
    Audit trails stores data of your Document,BP SPL screening,blocking, releasing reason etc. For an example, say you had a document blocked with one of your old SPL master and the same was saved in Audit trails. Now if you delete the actual SPL master, I doubt if Audit trail will give you the exact result.
    Regards
    Dhilipan

  • ADF 10.1.3.4: 'losing' newly created row in master-detail-detail.

    Situation:
    I have a page in JSF/ADF with the following set up.
    Top-half of the page is a table.
    Underneath the table is on the left a selectonelistbox component and next to it on the right a tabbed section.
    The table -> selectonelistbox relation is master-detail.
    The selectonelistbox -> tabbed section is master-detail.
    So when you change the selection in de seletonelistbox the data in the tabbed section changes.
    One of the functions in a tabbed section is a createinsert.
    step1: select value '1' in the selectonelistbox.
    step1: a new row is create (with createinsert). there is no commit yet, the row is in the entity cache.
    step2: change the selection to '2' in the selectonelistbox.
    step3: create a new row (with createinsert).
    step4: commit the changes.
    We see that only the row of the current row is committed. The newly created row under value '1' has disappeared.
    There are no warnings/exception thrown.
    How can I commit all newly created rows?
    It must be possible to created several new rows, before committing if it is possible.
    Some specs:
    JDeveloper 10.1.3.4.0
    using the embedded OC4J server
    JDK
    Thanks,
    Goldhorn

    Which technology are you using?

  • ADF: Master Details Page

    Hello,
    I have just started out trying to develop an application in JDeveloper with ADF and I am coming from a Apex/Forms/PL SQL background. I am trying to develop an online application form for our Grants program.
    The problem I am having is I have a master detail type page where I have a section D (Master) and then I have a breakdown of cost (detail). I have created a creation page for the section D and I have then another creation section on the same page for the breakdown of the costs by dragging the view that is under the section D view.
    The problem is the detail section seems to be bring back the first record from the table. This is not what I expected as I would assume this to be blank record as we have a blank record in the master part.
    Is there anyway around this where on startup the detail section brings up a blank record instead of the first record in the view?
    Cheers in advance in any help on this matter.
    Paul.

    Most likely you dragged the wrong detail structure from the Data Control palette. When you created your Application Module, and added View objects to it, you would have seen a tree structure. Views will be listed separately, but if you have a View Link associating a detail view with its master, you will also see that view in the tree under the master. Something like this:
    MyMasterView
      MyViewLink
        MyDetailView
    MyDetailViewMake sure that this structure has been moved to the right side of your Application Module. There you will see something like:
    MyMasterView1
      MyDetailView2
    MyDetailView1This is what creates the tree structure in the Data Control palette. When you created your master/detail page, you dragged MyMasterView1 for the fields from your master view. But you probably dragged MyDetailView1 for the details. This does not use the View Link to associate your details with the current master record. To do this, you must use MyDetailView2, which you will find by expanding the tree under the master.
    Now, to get a blank record in the detail, you have to execute a Create action from that data control. You can drag a Create button to the page, and the user can press the button to get a blank record. Or you can cause a create action to happen whenever you enter that page.

  • Regarding creation of BOM through Master Recipe

    Dear all,
    I am trying to create a BOM but system is giving a message as BOM can be created through Master recipe only
    Please guide me where do we set this and what is to be done to avoid this
    Regards
    venkat

    Hi,
    Refer the answers from thread mentioned below.
    Re: BOM can only be extended via Master Recipe
    Regards,
    Lodhi.S

  • BOM/ Master Recipe

    Hi again experts,
    I changed a BOM of a material by accessing its production version then thru its recipe.  Now whenever i try to change the BOM using CS02, there's message "BOM can only be changed via Master Recipe" (warning message).  Then if i try to create an alternative BOM for the same item, there's an error message "BOM can only be extended via Master Recipe".  This prohibits the user to do so.  How can we bypass this?  Is it adviseable to just turn the message to warning message?  Thanks in advance!
    Keb

    Hi Prasobh,
    Thanks for the input. But...
    Is there anyway to revert the scenario back to original?  I mean, what if they unpurposely changed the BOM thru the recipe?  Does it mean we need to create new recipe and new bom for this material just so we can do normal changes with the BOM, or create?  Cause right now we cant create an alt bom for the material using CS01.  Thanks again!

  • Master Aspect Ratio Reset?

    My version of Aperture 3.2 has developed a strange bug when trying to crop vertical images choosing crop via Master aspect Ratio, I only get a small horizontal box that does not let me expand over the entire image. Width is set to 2 and height is set to 3. Seems to only apply to vertical images Any thoughts on how to reset Master Aspect Ratio settings?
    TIA.

    It's a bug with 3.2, there are a couple of threads regarding the issue on this forum. Submit a bug report to Apple, it may help us get a fix sooner!

  • Manipulating a cubequery via javascript

    Hi all,
    I'm trying to manipulate a cubequery section via javascript within an interactive reporting document (version 11.1.1.2).
    Docs are quite terse and I wasn't able to find an Object Model Map, the snippets of code are one line long and quite useless as a guide.
    I have a cube with a Scenario dimension with 2006,2007 etc as children.
    I can add Scenario to rows or columns of the query, but I have not found the right instruction to add a single children of the top level member to rows or columns.
    Has anyone a working piece of code or, even better, a detailed description of the CubeQuery object (and of his components)?
    TIA & best wishes
    Gianluca

    SOLVED
    to add 3 members from the scenario dimension in the columns of the cubequery you can use:
    ActiveDocument.Sections["Q personalizzata"].Columns.RemoveAll();
    ActiveDocument.Sections["Q personalizzata"].Columns.Add("Scenario");
    ActiveDocument.Sections["Q personalizzata"].Columns["Scenario"].FindAndAdd("2006",1,true,true);
    ActiveDocument.Sections["Q personalizzata"].Columns["Scenario"].FindAndAdd("2007",1,true,true);
    ActiveDocument.Sections["Q personalizzata"].Columns["Scenario"].FindAndAdd("2008",1,true,true);
    ActiveDocument.Sections["Q personalizzata"].Columns["Scenario"].MemberSelectors["Scenario"].DisableSelection = true;
    for the rows substitutes Columns with Rows
    2006,2007 and 2008 are children of Scenario
    apparently the top level member of the dimension has to be always present in the QueryLabel, but can be disabled if you don't need it in the results
    BTW the second parameter in the FindAndAdd method could be substituted by the constant bqOlapMemberSelector, unfortunately if you use the constant instead of the value 1, you get an error message stating that the constant is not defined
    Gianluca

Maybe you are looking for