How do I update the TOC, after setting page numbers?

I have set page numbers to run from Chapter 1. Actually on Page 9. but the TOC shows Chapter 1 starting at Page 7, which is not correct anyway.
How do I cause the TOC to update? so the Chapter/Page numbers align ok.

You need to say which version you are taking about, they behave differenetly.
Peter

Similar Messages

  • How can I update the children after updating a node in a tree?

    Hi everyone.
    I'm trying to update a subtree programatically while using a managed bean as data source.
    All topics I can find are about using VOs and JUCtrlHierNodeBinding.updateValuesFromRows.
    Now I need to find some way to directly update nodes without any Row. What should I do?
    Here's the code:
    tags:
                                    <af:tree id="tframe" initiallyExpanded="true"
                                             selectionListener="#{backingBeanScope.systemDataFrameBB.onSelectNode}" var="n"
                                             binding="#{backingBeanScope.systemDataFrameBB.tframe}"
                                             value="#{systemDataFrameMB.treeData}" expandAllEnabled="true"
                                             rowSelection="single" fetchSize="-1" contentDelivery="immediate"
                                             immediate="true" summary="summary">
                                        <f:facet name="nodeStamp">
                                                      <af:group>
                                                      <af:outputText value="#{n.is_system?'[SYSTEM]':''}" />
                                                      <af:outputText value="#{n.is_use?'':'[X]'}" />
                                                                     <af:outputText value="#{n.data_frame_name}"/>
                                                      </af:group>
                                        </f:facet>
                                    </af:tree>
    managed bean(systemDataFrameMB):
         private ChildPropertyTreeModel treeData;
         public ChildPropertyTreeModel getTreeData() throws SQLException
              if (this.treeData == null)
                   AuthAMImpl authAM = this.getAppModule();
                   List<DataFrameNode> subTrees = authAM.getDataFrameTrees();    // load with JDBC and POJO
                   DataFrameNode root = new DataFrameNode();      // insert all sub-trees into a new tree
                   root.setData_frame_id(0);
                   root.setData_frame_name("[ROOT]");
                   root.setParent_data_frame_id(Integer.MIN_VALUE);
                   root.setIs_system(true);
                   root.setIs_use(true);
                   if (subTrees != null && subTrees.size() > 0)
                        root.setChildren(subTrees);
                        for (DataFrameNode n : subTrees)
                             n.setParent(root);
                   this.treeData = new ChildPropertyTreeModel(root, "children");      // I guess this is the simplest way to show hierachical data...
              return this.treeData;
    model:
    public class DataFrameNode
         private int data_frame_id;
         private String data_frame_name;
         private int parent_data_frame_id;
         private boolean is_use;
         private boolean is_system;
         private DataFrameNode parent;
         private List<DataFrameNode> children;
            // getters/setters are omitted....
    backing bean(systemDataFrameBB):
            // edit event handler
         public void onEditResult(DialogEvent de)
              String name = (String)this.getItName().getValue();
              boolean isUse = this.getSbcIsUse().isSelected();
              SystemDataFrameMB dfMB = (SystemDataFrameMB)JSFUtils.resolveExpression("#{systemDataFrameMB}");
              try
                   node.setData_frame_name(name);
                   node.setIs_use(isUse);
                   dfMB.updateNode(node);                   // persist changes, this method will change all the children's 'is_use' field to FALSE when isUse == FALSE
                   AdfFacesContext.getCurrentInstance().addPartialTarget(this.getTframe());      // refresh the tree, only the edited node will be updated, but I want the tree to update the whole sub-tree to reflect the change on all its children
              catch (Exception e)
                            // omitted...
            }

    I solved the problem using RichTree.visitChildren :)
    Maybe not the proper way, but at least it works...
                                    <af:tree id="tframe" initiallyExpanded="true"
                                             selectionListener="#{backingBeanScope.systemDataFrameBB.onSelectNode}" var="n"
                                             binding="#{backingBeanScope.systemDataFrameBB.tframe}"
                                             value="#{systemDataFrameMB.treeData}" expandAllEnabled="true" rendered="true"
                                             rowSelection="single" fetchSize="-1" contentDelivery="immediate"
                                             immediate="true" clientComponent="true" summary="summary">
                                        <f:facet name="nodeStamp">
                                            <af:panelGroupLayout id="tg">
                                                <af:clientAttribute name="node_path" value="#{n.node_path}"/>
                                                <af:outputText id="tIsSystem" value="#{n.is_system?'[SYSTEM]':''}"/>
                                                <af:outputText id="tIsUse" value="#{n.is_use?'':'[X]'}"/>
                                                <af:outputText value="(#{n.data_frame_id})#{n.data_frame_name}"/>
                                            </af:panelGroupLayout>
                                        </f:facet>
                                    </af:tree>
    private static final String PARENT_NODE_PATH = "PARENT_NODE_PATH";
    // all nodes should have a 'node_path' property whose value looks like 'id1/id2/id3'
    // keep path on view root
    FacesContext.getCurrentInstance().getViewRoot().getAttributes().put(PARENT_NODE_PATH, node.getNode_path());
    // visit the whole tree to find specified nodes
    VisitContext vc = VisitContext.createVisitContext(FacesContext.getCurrentInstance());
    RichTree.visitChildren(vc, this.getTframe(), new VisitCallback()
              @Override
              public VisitResult visit(VisitContext visitContext, UIComponent uIComponent)
                   if (uIComponent instanceof RichPanelGroupLayout &&
                        visitContext.getFacesContext().getCurrentPhaseId().equals(PhaseId.INVOKE_APPLICATION))
                        String parentPath = (String)visitContext.getFacesContext().getViewRoot().getAttributes().get(PARENT_NODE_PATH);
                        if (parentPath != null & parentPath.length() > 0)
                             // if current node is in the sub-tree then update its state
                             String path = (String)uIComponent.getAttributes().get("node_path");
                             if (path != null && path.length() > parentPath.length() && path.charAt(parentPath.length()) == '/')
                                  RichOutputText t = (RichOutputText)uIComponent.findComponent("tIsUse");
                                  JSFUtils.refreshTarget(t);
                   return VisitResult.ACCEPT;
         });there might be another solution which uses JavaScript:
    I found out that the HTML tag ADF generated has a attribute like "id='0_1_2_3'", that means I can find the sub-tree with JavaScript.
    But it was not tested 'cause I don't think it would be stable.
    it looks like this:
    StringBuffer clientId = new StringBuffer(node.getLevel_id() * 4);
    while (node != null)
         clientId.insert(0, node.getData_frame_id());
         clientId.insert(0, '_');
         node = node.getParent();
    JSFUtils.executeScript("disableSubTree('" + (clientId.length() > 0 ? clientId.substring(1) : clientId.toString()) +"')");
                <af:resource type="javascript">
                  function disableSubTree(id)
                      // find the adfrichtree component and traverse it, trying to find the sub-tree and modify the nodes
                </af:resource>

  • I have a new mac air, updated the software, have downloaded Pages & Numbers but cannot read .wps documents received from friends.... wps docs are from Microsoft Works word processor.

    I have a new Mac Air, updated the software, downloaded Pages & Numbers but cannot open .wps documents from friends.   .wps is the format used by Microsoft Works word processor. Can anyone open .wps on Lion?

    Only MsWorks opens .wps on the PC, what chance has Mac OSX got?
    http://www.microsoft.com/download/en/details.aspx?id=12
    To convert them to something readable.
    Peter

  • How do you automate the point size of page numbers in a generated index?

    In Framemaker 10 I have a generated index for a book. The indexed items are in point size 10 but the generated page numbers come out in 12 pt.
    Can I automate the page number size to be 10 pt?
    I have tried defining a character tag IndexPage Numbers and entered the following on the index Reference page:
    Level1IX
    <IndexPageNumbers><$pagenum>
    Level2IX
    <IndexPageNumbers><$pagenum>
    but this does produce the desired point size.
    Thanks

    Error,
    I was just generating an index today and had this weird behavior. The level1IX, level2IX, and level3IX entries formatted as expected (TNR, 11pt, plain) but the markers and page numbers displayed as 24pt, bold, Arial which matched the IndexIX format. What is that format for anyway? My user guide does not mention its purpose.
    I looked at the reference page and there was a paragraph formatted as IndexIX with this content:
    <$pagenum>
    It was 24pt, arial, bold, and centered.
    Another manual had an index that formatted properly last week but it too had the above <$pagenum> tag. So it's confusing as to the different behavior.
    I reformatted the <$pagenum>/IndexIX paragraph to TNR, 11pt, plain (in the index file), regenerated the index, and now the page number formatting matches the entry formatting.
    Again, is IndexIX the format for the index page numbers only and why does Frame insert <$pagenum> in the Index spec. on the reference page?
    Yours,
    Michael F.
    ~~~~~~~~

  • Family sharing. i have set my wife up on family sharing and each time we try to download a book or an app, we are requested that i update the payment details. I have done this and we still cannot share.. what do i do or how do i update the payment

    family sharing. i have set my wife up on family sharing and each time we try to download a book or an app, we are requested that i update the payment details. I have done this and we still cannot share.. what do i do or how do i update the payment details to enable my wife to download

    Drrhythm2 wrote:
    What's the best solution for this? I
    Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer.

  • HT204053 I used one Apple ID to set up iCloud after iOS 6 was downloaded to my iPhone, now I want to change the Apple ID for iCloud on my iPhone but I'm unable to. How do you change the ID after it's been set up?

    I used one Apple ID to set up iCloud after iOS 6 was downloaded to my iPhone, now I want to change the Apple ID for iCloud on my iPhone but I'm unable to. How do you change the ID after it's been set up?

    See https://discussions.apple.com/message/19218571#19218571.

  • I just got a replacement i phone and i was setting it up and I cannot restore it with my iTunes because the soft wear is to old how to i update the soft wear without running the process

    I just got a replacement i phone and i was setting it up and I cannot restore it with my iTunes because the soft wear is to old how to i update the soft wear without running the process

    Hi Balzer1313,
    Thanks for visiting Apple Support Communities.
    If you have an older version of iTunes installed on your computer, you can update it using this menu option:
    Windows: Choose Help > Check for Updates.
    Mac: Choose iTunes > Check for Updates.
    From:
    iTunes: How to install the latest version
    http://support.apple.com/kb/ht5654
    If iTunes is not installed on your computer, you can download it here:
    http://www.apple.com/itunes/download/
    Cheers,
    Jeremy

  • HT5538 How to update the devices: after Change of Apple ID & Password

    I changed my Apple ID name and password using my PC and was already verified. 
    How do I update the Icloud account settings in my Iphone4 and Ipod Touch 5th generation
    with my new Apple ID?  My old Apple ID Account name is greyed and cannot be edited in my devices. 
    And still prompts for a password with my old Apple ID in the prompt message.

    Hi ilayski,
    Sign out of the iTunes & Apps store and then sign in with your new AppleID. Delete the iCloud account, and then create a new one using your new AppleID.
    Hope this helps!
    Cheers,
    GB

  • How we can update the time profile ?

    Hello,
    How we can update the time profile daily in PP/DS ?
    This time profile we need in the background job scheduling.
    Please suggest

    Hi Sunil,
    The Time Profile is first to be maintained by going to the current settings (S_AP9_75000087) and creating one Time Profile as per your requirements.Here you define the Display Period and Planning Periods. If you create Relative days/weeks/ months then it is calculated in relation to the current date.So for example if you want to view 10 weeks in past and 20 weeks in future from today, you give the Start Date as -10 and End date as +20.after selecting Relative month/week/day in the Daye column.
    Similar method is used for both the Display Period and Planning Period. Preferably ristrict the Display period.
    You also have the option of Absolute time where you enter the start date and the finish date as an absolute value in the set period type.This will hard code the dates for you.
    This Profile which you have created needs to be attached to Detailed Scheduling Planning Board - View 1/2/3 which ever you want to use by going to the Profile icon on the top and in the pop up click on the More profiles Tab and putting this value in the Time Profile Box.
    Thanks,
    Harsh

  • How Can I Update the coils on Quantum PLC...

    Dear Sir,
    I am in the process of configuring Lookout4.5 build9 with Quantum PLC.
    I am trying to write two O/p coils of the PLC using two latchgate
    objects. I am using two different set of push buttons for latching
    and unlatching the two latchgates. After this I have directly
    connected the two latchgates to the O/P coils of Modbus object
    in modbus ethernet mode of communication.
    Now I am using the PLC simulator s/w of PLC to watch the status.
    When I start the first pump (coil1) and Stop the second(coil2),
    after sometime it is seen that the position is reversed such
    that the coil1 is off and coil2 is On. Though here in Lookout
    I see that the latchgate 1 is ON and latchgate2 is OFF.
    I am
    unable to understand this change over in the status of the coil.
    I have read one of the documents on NI website (Document ID:15QA2P9C
    "Why can't I update the coils on Quantum PLC without reading them
    back in?" Report dated:01/27/98). I think my problem is similar
    to that.
    So please tell me a proper method of updating the coils on Quantum
    PLC or how can I update the coils by reading them back ?
    OR is there any problem regarding the modbus.cbx file, if so please
    send me the latest modbus.cbx for Lookout4.5
    Waiting for your earliest response...
    Yours Truly,
    Girish Nalgirkar
    Theta Controls
    Pune, India.

    The KnowledgeBase that you refered to is 3-1/2 years old, and the problem in the modbus driver is long-since fixed. Their are no other known issues with the Modbus driver.
    The method you are using to update the coil sounds appropriate. What I would first verify is that Lookout is not sending a command to toggle the coil.
    1) Write the simplest possible process that shows the problem (ie 2 pushbuttons, the modbus object, 1 latchgate).
    2) Create a "modbus.ini" file in your Lookout directory. Place the following in the modbus.ini file:
    [ethernet]
    DiagnosticPath=c:\
    3) Run your program until the problem occurs. If it does, find the "modbus1" file created in the C:\ directory. This file contains a log of all modbus communication that moved back and forth. Check the
    log to see if Lookout sent a command to the PLC. If no command was sent, then the change occurred internal to the PLC software.
    Regards,
    Greg Caesar
    National Instruments,
    Applications Engineer

  • If record is in application server how do u update the single table

    hi
    could anybody tel me
    if record is in application server how do u update the single table
    by using direct input method

    If your Flash player/plugin is older, the only way is to go to Adobe's site (use Limnos' link) and download the full installer. A .DMG file, which you doubleclick to have it mount on the desktop. Inside is the Flash installer app you doubleclick to run and have it upgrade all. Will need an Admin user account.
    After you've upgraded to the latest & greatest, currently 11.5.502.110, a Flash perfpane will show up in System Preferences, where you can set it to auto-update itself, warn you of new updates or manually check for same.

  • How do I update the software on my Airport Express?

    Hello everyone,
    I have an Airport Extreme base station acting as WDS and an Airport Express station. I recently upgraded the security on the Airport Extreme base station from 128-WEP to WPA (Personal), but I don't know whether I have to do something to the Airport Express base station. It's green light is on. Do I need to do something? Also, how do I update the software in the Express? Whenever I open the Airport Admin Utility, the only thing that comes up on a scan is my Extreme base station. Any advice would be most appreciated.

    yes you need to update your Airpost Express. I just went through this last week with two of my Airport Expresses. I updated my Base and my Remote's light was green but was unable to view it in Airport Admin Utility. So this is what I ended up doing and it works great.
    First bring the Airport Express you are working on in the same room as your computer......just the ease of seeing what is going on with the Airport Express. Next you need to reset it.....take a paper clip and push in the little button next to the Audio port and hold in 10 seconds. Then unplug the unit wait 10 seconds and plug it back in. wait about 3 minutes and then you will need to use Airport Set Up Assistant. You will need to make sure you have WPA Personal on your Airport Express too.
    don't forget to make sure you have the update firmware too.
    http://www.apple.com/support/airport/
    I hope this helps.....
    Powerbook G4 1.67 15", 1 gig ram, 128 vram, 80 gig harddrive   Mac OS X (10.4.6)   Powermac G3 266 mt, Dell 5150,ibook G4, 1 gig shuffle, epson printers, airport

  • How do I update the value of a hidden field?

    Jsp has hidden field. The value of the hidden field is set.
    <%= RequestCtx.getSessionInfoAsHiddenParam() %>
    <INPUT type ="HIDDEN" name=billtoContactPartyId" Value="<%=billtoContactPartyId %>">
    Based on some logic I've added to the jsp. I want to update the value of the hidden field. This does not work. How do I update the value?
    windowForm.elements['billtoContactPartyId'].value = windowForm.elements['defaultcontactPartyId'].value;

    Hi,
    If you create a function to return wwctx_api.get_user you could
    call this inside an update trigger, you could put in an
    exception to return USER if there is an error, this would then
    work for users connected directly and users using Portal.
    Regards Michael
    e.g.
    CREATE OR REPLACE FUNCTION F_PORTAL_USER RETURN VARCHAR2 IS
         vRet VARCHAR2(50) := wwctx_api.get_user;
    BEGIN
         RETURN(vRet);
    EXCEPTION
         WHEN OTHERS THEN
              RETURN (USER);
    END F_PORTAL_USER;

  • How do I update the music in my iTunes account to my wife's on the same computer

    How do I update the music in my iTunes account to my wife's itunes acc on the same computer?

    iTunes: How to share music and video - http://support.apple.com/kb/HT2688 - about Music Sharing and Home Sharing
    Home Sharing Support page - http://www.apple.com/support/homesharing/
    iTunes: Setting up Home Sharing on your computer - http://support.apple.com/kb/HT4620
    Understanding Home Sharing - http://support.apple.com/kb/HT3819
    iTunes Home Sharing now works between users on same computer - https://discussions.apple.com/thread/3865597

  • Can't we update the mesages after ceated messages in oracle apps 11i

    Hi All,
    i have created message and ran the concurent programme of generate message in 11i, after that i have called that message name into jdeveloper. message is displaying correctly. i am trying to update the message which i have created and again ran the concurent programme. but updated message is not reflected. its shwing old message.
    Can't we update the mesages after ceated messages in oracle apps 11i? if so what is the process.
    can any one know the process.
    Thanks and Regards,
    krishna

    Kindly check in AOL and confirm that the message is changed. Also make sure the Jdeveloper code refers to the message code and the language for which the message text is set correctly. Thereafter delete the myclasses file and run the code again. Updated message should be shown.
    Regards
    Sumit

Maybe you are looking for

  • How can I install Windows 7 through Boot camp?

    I have a MacBook Pro Mid 2009 and I am running OSX Mavericks. How can I install Windows 7 from the install DVD? Thank you for the help in advance. Just as a side note, if I want to run GTA 4 on Windows 7 through Boot Camp, will it be faster than it i

  • Deleted my iPhoto Library

    I accidently deleted my current iphoto app.  I have an old 5.0.4 version of iPhoto but cannot retrieve the photos because I'm was running the latest version of iPhoto.  Any ideas on how to get my old photos from an old hardrive?  Thanks.....

  • Working with Grid Suppression in Financial Reporting for EPM 11

    Greetings: Does anyone know if it is possible in Financial Reporting Studio to have multiple grids with suppression so that if one grid has no data the grid below it moves into that grids spot on the report. Currently, I am able to suppress the grid

  • Flash Player 10 ActiveX, installed perfectly on FireFox but does not want to install on IE8

    I tried to install Flash Player 10 ActiveX but no luck operating system VISTA 32bit web browser and version IE8 32bit Flash Player version WIN 10,1,82,76 is there anything in the security needs to be adjusted? It was running perfect before I do the l

  • Block the data by VBA

    Hello! I need help with VBA Macro: First of all, I crated a new workbook. There is a button in it. When we press the button, the second WB is called. When we call the WK, makro stand parameters of filter: For Each itm In BEx1.DataProviders   If itm.N