Autonumber (sequencenumber) variable

Hi,
we're working on IP and we're trying to find a way to add a sequence number to our planning function. The idea is that one can do planning on a combination of Cost center and Cost element, whereby it is possible to plan more than 1 line on such a combination using the mentioned sequence number (possibly in combination with a copy function-e.g. one can copy a line and a new sequence number is automatically added).
Now I saw a post on this forum with regard to an autonumber variable, however the problem in that post didn't really regard the variable itself, and the solution was not explained. Is there anybody who knows the mentioned solution or has onother one?
Regards

Not exactly,
what should happen is that every combination of cost center and cost element has a sequence number. For example:
COST CENTER    COST ELEMENT    SEQ NR
1000______________400100_________1
1000 _____________ 400120_________1
1000 _____________ 400120_________2
2000 _____________ 400100_________1
2000 _____________ 400100_________2
2000 _____________ 400100_________3
Edited by: Jesse Brock on Sep 22, 2009 12:18 PM
Edited by: Jesse Brock on Sep 22, 2009 12:19 PM

Similar Messages

  • Pre-planning autonumbering and variables

    Today's question, sorry for the length.  ;-) 
    Recap: Former user of FM 5 or 6 years ago, now using/learning FM 11 and trying to remember a very rusty/weak skillset.
    I have read what I can find on Chapter numbering and variables (FM 9 help files and a few very general blog articles), but I never used either(autonumbering or variables) more than very simplistically in the past. I am trying to design as much structure up front as this is a pilot project that will morph a lot over time. I would appreciate input on whether I am approaching this correctly or if there is a BKM somewhere on how best to design this with concrete examples that would help me with the correct syntax for variable names.
    I am formating a new school curriculum from a series (hundreds) of individual Word docs (with nightmare formatting rife with inconsistencies). Each Word doc includes (in a single file) the Lesson Plan, between 3 and 10 Objectives and then each Objective may have zero to n classroom activities and/or zero to n physical skills (P.E activities which the gym teacher may handle instead and so want to rip out a page with only those physical skills.) Already I am getting emails that say move Lesson 3 plan to be Lesson 5 and reorder Activities 1-4 thus.
    I would like to make this as easy as possible for future formatting (though the SMEs will continue writing content in Word) by using variables and autonumbering so that I can just drag files around and know that they are re-numbered correctly, but I have only minimal experience with this kind of design in FM. In order to be sure that the numbering stays consistent and I don't have to enter it every time myself, I think I need to create each of those categories pulling them out into separate documents and then contain each of those in its own "book."  So each level is actually a book because that is the only way to keep the autonumbering flowing?
    Course (book)
         Cover (document)
         Legalese (document)
         Course Intro (document)
         TOC
            Lesson Plan 1 (book)
                   Body Text (document)
                        Objective 1  (book)
                              Body Text (document)
                                  Activity 1 (document)
                                  Activity n (document)
                                   Physical Skill 1 (document)
                                   Physical Skill n (document)
                        Objective n (book)
                             Body Text (document)
                                  Activity 1 (document)
                                  Activity n (document)
                                  Physical Skill 1 (document)
                                  Physical Skill n (document)
            Lesson Plan n (book)
                  Body Text (document)
                        Objective 1  (book)
                             Body Text (document)
                                  Activity 1 (document)
                                  Activity n (document)
                                  Physical Skill 1 (document)
                                  Physical Skill n (document)
                        Objective n (book)
                             Body Text (document)
                                  Activity 1 (document)
                                  Activity n (document)
                                  Physical Skill 1 (document)
                                  Physical Skill n (document)
             Index
            Glossary
    Then I can create a Master Page for each type of book and document (embedding the graphics that repeat) and apply the autonumbering in each book and the correct name of each thing in the footer. Most (but not all) of these categories have a unique name/title, or I will give them one as I go. Can I use system variables for all of this or should I be creating local user variables in each level?  I guess what I am asking is: is there a way to describe all of this in one place or is this something I need to do in each document? That goes to the proper syntax of the variables (would that be <chaptername> in each doc?) and then I assume I can create hyperlinks or cross-references (not sure which yet) in, say, the body text of the Lesson Plan. The goal for output of this project is printed manuals, on-line digital content, Kindle books, iPad books and then a Captivate training course. FYI, I need to create a high-res version for the digital formats and a low res one for teacher who will be photocopying things like the worksheets that would be 4 color digitally but black and white for their printing purposes, so I am planning on using conditional build tags for that purpose.
    If you read all this and have time to give me some feedback and assistance, thank you very much.
    -Laurie

    I have been looking for FM books for a month now, but the little I did find seemed so ancient or poorly reviewed. I wish they had the FM11 book available that is listed in their Book dropdown, but I went ahead and bought the FM 8 pdf based on your recommendation. I will go off and read with my morning coffee for a bit and check back later to see if anyone else has some input for me.
    Thanks Jeff!

  • Autonumbering and variables

    I typeset text books that use section numbering in their subheadings. Previously we've worked in Framemaker and are now converting over to InDesign. In Framemaker, we would use autonumbering in the paragraph styles for the subheads. We were able to have the subhead section numbering appear in the upper corners of the page by working with Framemaker's variable settings.
    Now that we're using InDesign, we've tried to fix this problem by creating nested styles within the subheads. This doesn't seem to work when we apply the autonumbering in the paragraph styles, and only works when actual text is present.

    I'm not sure if the commercial In-Tools.com's Power Headers InDesign plug-in  can capture the auto-number of an InDesign numbered-list paragraph style, so it could be worth your investigating here: http://in-tools.com/products/plugins/power-headers/
    Note the suggestion on that page: "For more information on what can be accomplished with Power Headers, please check out the forum here."
    You can also contact the folks from the Contact Us link with your specific questions.
    And, you might want to test the downloadable trial version in your documents.
    Please post what you learn.
    And though it's truly a wish with no guarantee of being granted, consider adding your voice for the ability for running header text variables to capture list auto-numbers, with a formal feature request here: Wishform.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Joel Cherney wrote:
    Yeah, this one is tough. More and more I think about revisiting Frame (I haven't used it since version 6, I think) for situations just like this. I can just guess from the treatise & answer-book structure that you're dealing with long documents and want as much of this as possible to happen without user intervention. The TOC tool and the cross-references tool both pick up numbered lists, but it seems that text variables do not. So it must be doable for InDesign CS n+1, but a feature request doesn't carry much weight, especially if you are already midstream in conversion to ID.

  • Pass form element value after insert

    I have a page with an insert behaivor, it inserts all form
    elements BUT one,
    I need to pass the value of this form element to the next
    page.
    If I apply the 'insert' behaivor, it does the insert well,
    but the value of
    the form element is not passed to the next page, how can this
    be accomplised
    Aleks

    I can't because the value is entered in the form and there is
    no value until
    it is posted. Remember this is an 'insert page' that then
    redirects to the
    next page.
    I used redirection as:
    <%
    ' *** Insert Record and retrieve autonumber: set variables
    If (CStr(Request("MM_insert")) <> "") Then
    MM_editConnection = MM_eimmigration_STRING
    TM_editTable = "dbo.Users"
    TM_editRedirectUrl =
    "SPLinkFamilymember.asp?FamUserId=Request('relations')"
    Last line has the redirection link.
    but didnt work, I get following error, next page I get this
    value:
    Request('relations')
    Instead of the actual value selected in the form.
    I am using ASP/VB and MS SQL 2000
    A
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:ec821m$df0$[email protected]..
    > By making it a URL parameter? You would arrange that
    when you make the
    > link to the next page.
    >
    > For example -
    >
    > <a href="next-page.php?<?php echo($yourvariable);
    ?>">Next page</a>
    >
    > --
    > 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
    > ==================
    >
    >
    > "Alejandro" <[email protected]> wrote in
    message
    > news:ec7p5g$4d3$[email protected]..
    >>I have a page with an insert behaivor, it inserts all
    form elements BUT
    >>one, I need to pass the value of this form element to
    the next page.
    >> If I apply the 'insert' behaivor, it does the insert
    well, but the value
    >> of the form element is not passed to the next page,
    how can this be
    >> accomplised ?
    >>
    >> Aleks
    >>
    >
    >

  • Unicode characters Autonumbering

    Hello all,
    I have FrameMaker 8 and I often work with Russian text.
    I didn't find how I can make up the cyrillic numbering display style.
    Like this:
    1.
    2.
    3.
    4.
         а.
         б.
         в.
         г.
    5.
    6. ...
    Thank you!

    In other words, it's not supported?
    Though FM's Help states:
    FrameMaker features supporting Unicode content
    Use Unicode characters in
    features such as master page names, paragraph and character tags, table tags,
    variables and variable names, user-defined menu item names, color definition
    names, math equations, file paths, hypertext, footnotes, cross-references,
    custom autonumbering,
    FrameVector, file info, conditional text tag, object attributes, element names,
    and attribute names.

  • ASP insert then get newly created autonumber

    I'm using ASP Javascript & Access 2003 & Dreamweaver
    8
    I want to insert a new record then grab the autonumber that
    was generated for that record and pass it as a session variable to
    the next page. From what I have read in this and many other forums
    I can use "Select @@Identity as Identity" to do this. However, I
    don't know where to place it in my code. I've tried placing it in
    several locations but it hasn't worked. I figure it needs to go
    before "MM_editCmd.ActiveConnection.Close();" to grab the right
    record. If anyone can help me I would soooo appreciate it. OR if
    you have an even better solution I would still sooooo appreciate
    it. I know I can use "Select Max(column)" but I want to make sure
    the user isn't grabbing a record that was created miliseconds after
    they created theirs. Here is the code:
    <%
    // *** Edit Operations: declare variables
    // set the form action variable
    var MM_editAction = Request.ServerVariables("SCRIPT_NAME");
    if (Request.QueryString) {
    MM_editAction += "?" +
    Server.HTMLEncode(Request.QueryString);
    // boolean to abort record edit
    var MM_abortEdit = false;
    %>
    <%
    if (String(Request("MM_insert")) == "form1") {
    if (!MM_abortEdit) {
    // execute the insert
    var MM_editCmd = Server.CreateObject ("ADODB.Command");
    MM_editCmd.ActiveConnection = MM_Christmas_STRING;
    MM_editCmd.CommandText = "INSERT INTO tbl_Head (H_FName,
    H_LName, H_MAdd1, H_MAdd2, H_MCity, H_MState, H_MZip, H_Phone,
    H_Address1, H_Address2, H_City, H_State, H_Zip, H_Directions, H_SS,
    H_DOB, H_Sex, H_Race, H_Comments, H_Employer, H_ShirtSize,
    H_PantSize, H_ShoeSize, H_Special) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
    MM_editCmd.Prepared = true;
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param1",
    202, 1, 50, trim(Request.Form("H_FName")))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param2",
    202, 1, 50, Request.Form("H_LName"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param3",
    202, 1, 50, Request.Form("H_MAdd1"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param4",
    202, 1, 50, Request.Form("H_MAdd2"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param5",
    202, 1, 50, Request.Form("H_MCity"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param6",
    202, 1, 50, Request.Form("H_MState"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param7",
    202, 1, 50, Request.Form("H_MZip"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param8",
    202, 1, 50, Request.Form("H_Phone"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param9",
    202, 1, 50, Request.Form("H_Address1"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param10",
    202, 1, 50, Request.Form("H_Address2"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param11",
    202, 1, 50, Request.Form("H_City"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param12",
    202, 1, 50, Request.Form("H_State"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param13",
    202, 1, 50, Request.Form("H_Zip"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param14",
    203, 1, 1073741823, Request.Form("H_Directions"))); //
    adLongVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param15",
    202, 1, 50, Request.Form("H_SS"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param16",
    135, 1, -1, (String(Request.Form("H_DOB")) != "undefined"
    && String(Request.Form("H_DOB")) != "") ?
    Request.Form("H_DOB") : null)); // adDBTimeStamp
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param17",
    202, 1, 50, Request.Form("H_Sex"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param18",
    5, 1, -1, (String(Request.Form("H_Race")) != "undefined" &&
    String(Request.Form("H_Race")) != "") ? Request.Form("H_Race") :
    null)); // adDouble
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param19",
    203, 1, 1073741823, Request.Form("H_Comments"))); // adLongVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param20",
    202, 1, 50, Request.Form("H_Employer"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param21",
    202, 1, 50, Request.Form("H_ShirtSize"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param22",
    202, 1, 50, Request.Form("H_PantSize"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param23",
    202, 1, 50, Request.Form("H_ShoeSize"))); // adVarWChar
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param24",
    203, 1, 1073741823, Request.Form("H_Special"))); // adLongVarWChar
    MM_editCmd.Execute();
    MM_editCmd.ActiveConnection.Close();
    // append the query string to the redirect URL
    var MM_editRedirectUrl = "redirect_insert_head.asp";
    if (MM_editRedirectUrl && Request.Form &&
    Request.Form.Count > 0) {
    MM_editRedirectUrl += ((MM_editRedirectUrl.indexOf('?') ==
    -1) ? "?" : "&")+ Request.Form;
    Response.Redirect(MM_editRedirectUrl)
    %>
    many thanks,
    Winona

    If you can get it to work, try this. This is the wrong way to
    do this,
    but take a unique value from the submitted content (say
    email) and query
    the db for the newest record with that value. In your case,
    SS would
    work (if it is required).
    Or you can try:
    http://www.tom-muck.com/extensions/help/insertretrieve/
    Or, write your own INSERT statement and plug Select
    @@Identity as
    Identity in the appropriate spot.
    Winona wrote:
    > I'm using ASP Javascript & Access 2003 &
    Dreamweaver 8
    >
    > I want to insert a new record then grab the autonumber
    that was generated for
    > that record and pass it as a session variable to the
    next page. From what I
    > have read in this and many other forums I can use
    "Select @@Identity as
    > Identity" to do this. However, I don't know where to
    place it in my code.
    > I've tried placing it in several locations but it hasn't
    worked. I figure it
    > needs to go before
    "MM_editCmd.ActiveConnection.Close();" to grab the right
    > record. If anyone can help me I would soooo appreciate
    it. OR if you have an
    > even better solution I would still sooooo appreciate it.
    I know I can use
    > "Select Max(column)" but I want to make sure the user
    isn't grabbing a record
    > that was created miliseconds after they created theirs.
    Here is the code:
    >
    > <%
    > // *** Edit Operations: declare variables
    >
    > // set the form action variable
    > var MM_editAction =
    Request.ServerVariables("SCRIPT_NAME");
    > if (Request.QueryString) {
    > MM_editAction += "?" +
    Server.HTMLEncode(Request.QueryString);
    > }
    >
    > // boolean to abort record edit
    > var MM_abortEdit = false;
    > %>
    > <%
    > if (String(Request("MM_insert")) == "form1") {
    > if (!MM_abortEdit) {
    > // execute the insert
    >
    > var MM_editCmd = Server.CreateObject ("ADODB.Command");
    > MM_editCmd.ActiveConnection = MM_Christmas_STRING;
    > MM_editCmd.CommandText = "INSERT INTO tbl_Head (H_FName,
    H_LName, H_MAdd1,
    > H_MAdd2, H_MCity, H_MState, H_MZip, H_Phone, H_Address1,
    H_Address2, H_City,
    > H_State, H_Zip, H_Directions, H_SS, H_DOB, H_Sex,
    H_Race, H_Comments,
    > H_Employer, H_ShirtSize, H_PantSize, H_ShoeSize,
    H_Special) VALUES (?, ?, ?, ?,
    > ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
    > MM_editCmd.Prepared = true;
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param1",
    202, 1,
    > 50, trim(Request.Form("H_FName")))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param2",
    202, 1,
    > 50, Request.Form("H_LName"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param3",
    202, 1,
    > 50, Request.Form("H_MAdd1"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param4",
    202, 1,
    > 50, Request.Form("H_MAdd2"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param5",
    202, 1,
    > 50, Request.Form("H_MCity"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param6",
    202, 1,
    > 50, Request.Form("H_MState"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param7",
    202, 1,
    > 50, Request.Form("H_MZip"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param8",
    202, 1,
    > 50, Request.Form("H_Phone"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param9",
    202, 1,
    > 50, Request.Form("H_Address1"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param10",
    202, 1,
    > 50, Request.Form("H_Address2"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param11",
    202, 1,
    > 50, Request.Form("H_City"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param12",
    202, 1,
    > 50, Request.Form("H_State"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param13",
    202, 1,
    > 50, Request.Form("H_Zip"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param14",
    203, 1,
    > 1073741823, Request.Form("H_Directions"))); //
    adLongVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param15",
    202, 1,
    > 50, Request.Form("H_SS"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param16",
    135, 1,
    > -1, (String(Request.Form("H_DOB")) != "undefined"
    > String(Request.Form("H_DOB")) != "") ?
    Request.Form("H_DOB") : null)); //
    > adDBTimeStamp
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param17",
    202, 1,
    > 50, Request.Form("H_Sex"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param18",
    5, 1,
    > -1, (String(Request.Form("H_Race")) != "undefined"
    > String(Request.Form("H_Race")) != "") ?
    Request.Form("H_Race") : null)); //
    > adDouble
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param19",
    203, 1,
    > 1073741823, Request.Form("H_Comments"))); //
    adLongVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param20",
    202, 1,
    > 50, Request.Form("H_Employer"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param21",
    202, 1,
    > 50, Request.Form("H_ShirtSize"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param22",
    202, 1,
    > 50, Request.Form("H_PantSize"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param23",
    202, 1,
    > 50, Request.Form("H_ShoeSize"))); // adVarWChar
    >
    MM_editCmd.Parameters.Append(MM_editCmd.CreateParameter("param24",
    203, 1,
    > 1073741823, Request.Form("H_Special"))); //
    adLongVarWChar
    > MM_editCmd.Execute();
    > MM_editCmd.ActiveConnection.Close();
    >
    > // append the query string to the redirect URL
    > var MM_editRedirectUrl = "redirect_insert_head.asp";
    > if (MM_editRedirectUrl && Request.Form
    && Request.Form.Count > 0) {
    > MM_editRedirectUrl += ((MM_editRedirectUrl.indexOf('?')
    == -1) ? "?" :
    > "&")+ Request.Form;
    > }
    > Response.Redirect(MM_editRedirectUrl)
    > }
    > }
    > %>
    >
    > many thanks,
    > Winona
    >

  • Editing variables for Headers

    Hi,
    I am trying to give a header a particular look. The header I am using looks like this:
    Running H/F 1--Running H/F 2
    The varaiables are separated by an em dash.
    Running H/F 1 definition is <$paranum[ChapTitle]> <$paratag[ChapTitle]>
    Running H/F 2 definition is <$paratag[Heading1]>
    On the body page header it displays like this:
    Chapter X: Chapter Title--Heading1
    It all works well except when there is no Heading1 on the page before the header. It looks like this:
    Chapter X: Chapter Title--
    I would like to anchor the em dash to the second variable so it only displays if there is a Heading1.
    The only way I could find to do this was by erasing the em dash and adding <$marker1> before <$paratag[Heading1]> and inserting a Header/Footer $1 marker with the special character for an em dash in the marker text box before all Heading1's. I would like to avoid this extra step and would like to automate the process, either by editing the variable or the autonumber property in the Heading1 paragraph definition.
    Any suggestions?
    pracktikal

    Hi Arnis,
    Thanks for your reply on the thread and your email.
    I had tried including the em-dash code in the variable but it displays whether or not there is a Heading1. I guess that is because it is not part of the definition. I tested it by placing some text in the same place and the text also displays. If there were a way to make it a part of the variable's definition, it would work.
    I also tried various combinations in the autonum format for Heading1 but there I couldn't find a way to hide it. Ideally it would be part of the Paragraph tag.
    I just now tested your suggestion to manage its display through Character Tag and making it an invisible color. The em-dash did not display in the header. I tried making it normal instead of invisible and it still didn't display. I tried both ways with small and large font sizes but it didn't display. I added  before the variable definition but it made no difference.
    So far, the marker method is the only way I have found to do this but it is not elegant.
    I appreciate your responses. I wonder if there is a way using user variables?
    Peter Rack aka pracktikal

  • Table and Figure Autonumbering

    I am currently using FrameMaker 8.0 and having a problem with the autonumbering of my tables and figures.
    Is there a way to have these as seperate numbering but still referencing the Chapter number?
    E.g. CHAPTER 1
    Table 1.1
    Figure 1.1
    Figure 1.2
    Table 1.2
    CHAPTER 2
    Figure 2.1
    Table 2.1
    Figure 2.2
    Table 2.2
    Thanks in advanced!
    Skye

    Skye,
    If your chapters are separate files, then you should be using the
    $chapnum variable and control that at the book level.
    If all of your chapters are in a single file, then you have to define
    your autonumber sequences to use the matrix method and have the
    chapter number paratag reset the sub-ordinate paratag autonumbers.
    This is explained in the "Using multiple counters in an autonumber
    format" section of the Help file.
    The first method is the easiest to use and maintain.

  • SQL and autoNumber problem!!! Pls help!

    Hi everyone!!
    I am very new with using SQL language to connect to a database.
    In my database, i have a certain table called 'Tourists' and the primary key of this table is TouristID. The data type of the primary key is an autoNumber.
    When i use SQL statement like
    String strDelete = "DELETE FROM Tourists WHERE TouristID="+touristID;
    With this I get an run time error :
    ****Data type mismatch in criteria expression.****
    This is because i save the variable as an Integer..
    IS there a way to save me ??? Plss helpp needed! :)
    Thanx

    Thnks just one question!!
    Is the primary key variable in Access an auto number!
    What i mean is that is the varibale type in database an auto number!
    That is my problem!! The tourist ID is an autonumber in Access!
    Below is the erorr!!
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:2525)
         at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:337)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:252)
         at TouristRegistrationGUI.deleteRecord(TouristRegistrationGUI.java:500)
         at TouristRegistrationGUI.buttonClicked(TouristRegistrationGUI.java:217)
         at BreezySwing.GBDialogButtonListener.actionPerformed(GBDialog.java:459)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
         at java.awt.Component.processMouseEvent(Component.java:5021)
         at java.awt.Component.processEvent(Component.java:4818)
         at java.awt.Container.processEvent(Container.java:1380)
         at java.awt.Component.dispatchEventImpl(Component.java:3526)
         at java.awt.Container.dispatchEventImpl(Container.java:1437)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
         at java.awt.Container.dispatchEventImpl(Container.java:1423)
         at java.awt.Window.dispatchEventImpl(Window.java:1566)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:134)
         at java.awt.Dialog.show(Dialog.java:524)
         at ExoticToursGUI.buttonClicked(ExoticToursGUI.java:186)
         at BreezySwing.GBFrameButtonListener.actionPerformed(GBFrame.java:518)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
         at java.awt.Component.processMouseEvent(Component.java:5021)
         at java.awt.Component.processEvent(Component.java:4818)
         at java.awt.Container.processEvent(Container.java:1380)
         at java.awt.Component.dispatchEventImpl(Component.java:3526)
         at java.awt.Container.dispatchEventImpl(Container.java:1437)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
         at java.awt.Container.dispatchEventImpl(Container.java:1423)
         at java.awt.Window.dispatchEventImpl(Window.java:1566)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

  • Is a system variable at the root of this problem?

    Hi, there,
    Please refer to the attached fm file to help solve the puzzle. When you open this small file (a stripped down copy of a chapter file in a book file), you'll see a chapter number to the left of the chapter title. I have tried several ways of deleting that chapter number but cannot grasp it on either the master page or the body page. It appears to be a system variable that was inserted inside a text frame on the master page by someone long ago but I cannot figure out how someone got the number in there.
    I cannot remove it by altering either the column layout or playing with the text frame.
    The chapter number does not appear in the TOC, but does appear to be linked to chapter numbering properties because the number resets itself when I update the book if I've added or removed another chapter file.
    I really want to locate and get rid of that number to the left of my chapter title without having to create a brand new master page. Does anyone out there know how to get rid of it?
    Immensely kind thanks,
    Elizabeth

    Thank you, Sheila -- that was very helpful and I am almost there! I could delete the number  reference (yes, the number 4) from the para designer but am unable to get rid of the t for tab, even when I delete and/or deselect the Autonumber Format box above the field for number building blocks. Whenever I deselect and click Apply, the Autonumber Format box simply reselects itself.
    This means when I go back to the doc, the t still appears. This actually became a problem when the number associated with the chapter title did not appear in the TOC. Basically, I want the Chapter Number to appear before the Chapter Title in the TOC. But I don't seem to be able to include that in the chaptertitleTOC para tag.
    So, your answer seems to be on exactly the right track, Sheila -- thank you. But I still can't get rid of the t for tab in my chapter title tag (I'm using Frame 9) so the problem is not yet completely solved. If anyone can do this on my frame file, I'd be much obliged and give you 100 points (all imaginary as well as hearty thanks, not imaginary).
    Very kind thanks,
    Elizabeth

  • Lifetime of variables

    Trying to create an autonumber field - just need a set of unique names.
    Have a function in a script object that does the creation with the autoNumner variable located at the top of the script object outside of the function and starts off as null.
    form1.#variables[0].Misc - (JavaScript, client)
    var autoNumber = null;
    function generateNewBldgNumber ()
       var BldgNumber = null;
       if (null == autoNumber)
          autoNumber = "1";
       BldgNumber = "N_" + autoNumber; 
       autoNumber = (autoNumber * 1) + 1;
       return BldgNumber;
    If I add a set of entries that call this in a row, it works.  If I delete one or more, the autonumber starts off at 1 again.
    I am confused about why it works some of the time.
    Thanks in advance.
    Patrick

    Tried it this moring, the first go round was coming out N_1, N_11, N_111 rather than N_1, N_2, N_3.
    Global variables seem to want to be text, and tried to cast the text as a number without luck.
    var BldgNumber = null;BldgNumber
    = "N_" + autoNumber.value; autoNumber
    = autoNumber.value + 1;
    return BldgNumber;

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Error while offsetting a variable

    Hello Experts
    I want to display the data for last 5 years in my query. So I tried using the SAP exit variable Current Calendar Year (0CYEAR) and the offset it by 5. However, I am getting the following error message for the query "System error in program SAPLRR12 and form REP_ASSIGN_INITIAL_OPT-01"
    Any Help on this is appreciated and points will be assigned.
    Thanks

    Thanks Chetan for your prompt reply. I have assigned points.
    But I would appreciate if you help me clear my understanding of offseting a variable.
    Say if the Current Calendar Year variable returns 2008, then will offseting that variable by 5 return me the data for years 2008, 2007, 2006, 2005 , 2004. Or, will it just return me the data for 2008 - 5 = 2004 only.
    Thanks
    Rishi

  • Error while Creating Presentation variable

    Hi,I am new to OBIEE
    I am facing this error:
    "A numeric value was expected (received "max("Sales Measures".Dollars)").
    Error Details
    Error Codes: EHWH2A7E"
    1.I am using paint rpd.I want to use presentation variable.
    2.So i took two column in criteria 1.Region 2. Dollars
    3.In Dollars edit formula ,I created presentation variable i.e. @{Doller_presentation}{max("Sales Measures".Dollars)} in the column formula.
    4.And In the same column i use filter
    Add ->presentation variable->variable exp =Doller_presentation and default =max("Sales Measures".Dollars)
    5.I have added this request on dashboard page,but error is coming.
    6.Also i have created dashboard prompt,
    Set presentation variable to "Doller_presentation"
    and in column formula :@{Doller_presentation}{max("Sales Measures".Dollars)}
    and took that prompt on the same dashboard page.
    so promt with 2 values are coming.1.All choces 2.13087528..may be ths is max value of dollar but on click its showing error as
    "Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42021] The query does not reference any tables. (HY000)
    SQL Issued: SELECT 13087529 FROM Paint ORDER BY 1"
    I am confuse abt use of presentation variable
    Please Help,
    Thanks
    Kapil
    [email protected]
    Edited by: user13098263 on May 9, 2010 10:58 PM
    Edited by: user13098263 on May 9, 2010 11:01 PM
    Edited by: user13098263 on May 9, 2010 11:02 PM
    Edited by: user13098263 on May 9, 2010 11:04 PM

    Hi Rachit
    You answered my doubt.This one really works . Thanks a lot !
    But i have one more doubt i.e if have created the Presentation variable in the dashboard prompt and I want to use it in a report
    i.e the scenario is If I have created a new column i.e " Revised Salary " in the Presentation Services and want the values to be entered there dynamically upon end users choice. For ex the end user selecrts value of 1 then the report would display an increament of 500 to all the employees in the " Revised Salary " column and if the end user select value of 2 .. the report would display a decrement of 500 in the " Revised salary column".
    I am getting the following error :
    ========================================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)
    SQL Issued: SELECT "D0 Time"."T05 Per Name Year" saw_0, "D2 Market"."M04 Region" saw_1, "D4 Product"."P01 Product" saw_2, "D1 Customer"."C1 Cust Name" saw_3, "F1 Revenue"."1-01 Revenue (Sum All)" saw_4, CASE WHEN 0='1' then "F1 Revenue"."1-01 Revenue (Sum All)" +500 else "F1 Revenue"."1-01 Revenue (Sum All)" - 500 end saw_5 FROM "Sample Sales" ORDER BY saw_0, saw_1, saw_2, saw_3
    ========================================================================
    Please NOTE : The column on which I want to do an increament is : "F1 Revenue"."1-01 Revenue (Sum All)"
    Thanks

  • Error message into a Variable.

    Dear users,
    I have a rather usual (unusual from the weekend beers for me though!!) query which I can't figure out a proper way to implement.
    My requirement is like this:
    I have a message class in which I want to define a text 'Employee number & not found'.
    I want to use this in the program, but not to raise this error. Instead, I want to move this error message with the Employee number into a Character(200) variable.
    So instead of using MESSAGE e0xx(messageclass) USING employee number, I would like to move the error text into a variable which looks like:
    lv_text = e0xx(messageclass) USING '1234'   which stores the text 'Employee number 1234 not found' in lv_text.
    How would I acheive it??
    Thanks, V!

    Try tis way
    message e999(00) with i_emp-empno into lv_text.
    press f1 in message will provide you more details

Maybe you are looking for