EDD Context Rules for a parent element possible?

Hi all,
I understand the use of {first} when identifying the context of an element, such as:
If context is: {first}<Section
But what if I want to set whether Section is first inside its parent?
For instance, for this hierarchy:
<chapter>
  <section></title></section>
  <section></title></section>
</chapter>
I want to say that if <title> appears in the first <section> element within a <chapter>,  then apply a particular format.  Otherwise, apply a different format if <title> appears in a <section> that is not first within a <chapter>. -- i.e. a parent element context, if you will.
The syntax to do this is eluding me.  My EDD has a series of context rules for a <title>, including for when it appears within a <section>, like this:
Else, if context is: Section < Chapter
     If context is: <{first}<Chapter
        Use paragraph format: Heading1NoNewPage
     Else
        Use paragraph format: Heading1
Whatever syntax I try for the context rule above (that the section be first within the chapter), I get parsing errors or the rule is not read.  I've tried:
If context is: Section<Chapter{first}
If context is: <{first}<Chapter                   // invalid
If context is: Section{first}<Chapter          // applies only Heading1; never reads this
If context is: Section < {first} Chapter       // invalid
Any ideas if there is a syntax that allows you to set a context for  the parent element, and not just for the element in question?
Thanks for anyone's help on this.
Shelley
Shelley Hoose
Rogue Wave Software
Senior Documentation Developer

Shelley,
  A few minutes ago, I suggested you use a context specification such as:
      Section{after Title} < Chapter
That's fine, but if in fact the first Section in a Chapter can follow many possible types of elements (Title, Paragraph, List, Figure, Table, etc.), you do not want to have to test for all of them. If a Section's only possible following sibling is another Section, you can use that fact to distinguish the first Section from others:
     1. If context is: Section{after Section} < Chapter
           Use paragraph format: Heading1
        Else, if context is: Section < Chapter
           Use paragraph format: Heading1NoNewPage
My own preference in such a situation is to use level rules instead of context rules. Furthermore, instead of defining a new paragraph format to suppress the page break, I would use hierarchical styles:
      1. Count ancestors named: Section
         If level is: 1
            Use paragraph format: Heading1
          If level is: 2
            Use paragraph format: Heading2
         Else
            Numbering properties
                Autonumber format: *** Only 2 section levels supported ***
     2. If context is: Section{after Section} < Chapter
            No additional formatting.
         Else
            Pagination properties
              Start position: Anywhere
         --Lynne

Similar Messages

  • What is the rule for adding application elements to faces-config.xml

    I have posed this question before, but was unable to get an answer so here goes again.
    What is the rule for adding more than one application element to the faces-config.xml?
    The schema documents that 1-n are possible, but why and when should I do this?
    --W                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    sorry if you don't login in tomcat administration before. you must enter login and password of a manager user on tomcat .
    The user is the one you give when installing tomcat.
    If you have forgotten it : see it to: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat_users.xml
    and choose one whop have role='manager'

  • Auto Run Program not updating Settlement Rules for few WBS elements

    Hi,
    Addition of settlement rules for OPEX WBS.
    In producion system, two jobs are running daily for generating settlement rules of WBS elements but, all WBS elements are not updating with Settlement rules.
    It is becoming a problem in the Period end while doing the settlement. Currently we are updating the settlement rule manually.
    We have investigated and found the following WBS element with Profile name  are not updating Settlement rule.
    H-U0DU0204DE-EX-J0  - HHDC01
    H-N0U00ULD01-P1-D1-W2 - 000090
    H-U0DU0204DE-EX-U0-T1-OB - HHDC01
    H-U0DU0204DE-EX-U1-W1-ON - HHDC01
    H-U0DU0204DE-EX-U2-W1-ON - HHDC01
    H-U0DU0204DE-EX-I0-E1 - HHDC01
    H-U0DU0204DE-EX-I0-B1 -HHDC01
    H-U1DU0204DE-EX-U0-W1-ON - HHDC01
    Job Names :
    ZFPD_UK_SETTLEMENT_RULE_GEN
    ZFPD_NO_SETTLEMENT_RULE_GEN
    Please suggest on this issue
    Regards

    Hi,
    I suppose these are background jobs. Usually there is an issue with background jobs that are run for a custom developed program. Not sure why that happens. Even i faced this issue with a couple of jobs in my system. I have still not found out the reason as to why this happens. There might be a possibility that these projects were being processed in the foreground by some user and hence they were omitted from the run.
    I would suggest you to consult your technical guys on this.
    Regards,
    Gokul

  • Kontext rule for formatting only the first child section in a chapter

    Hi all, I have run into a DITA problem. Each chapter of the document, i.e. top-level topic, contains a miniature toc of the nested sections. Therefore the first child topic's title should receive a page break.
    I tried this context rule for the title element, below you find the screenshot which I have tried to translate because the EDD is in German. Even though I define that the context should be the first parent topic only, the result is that every second-level topic now has a page break. Any ideas?
    8. Count ancestors: topic
        concept
        task
        reference
        If level is: 2
          8.1 If context is: (topic{first} | concept{first} | task{first} | reference{first})
                ..then set page break.
    Robert

    First, regardless of the UI language, you can import element definitions from an EDD using any of the language templates. Second, you can change the template that FM uses when it creates new EDDs (from the commands that in English are labeled StructureTools > New EDD and StructureTools > Export Element Catalog as EDD). Simply copy the desired template to $FMHOME\fminit\fmstruct\elemcat where $FMHOME is the directory in which FrameMaker is installed. I recommend backing up the original first.
    You can create an English EDD template from any English EDD simply by deleting all its content.
    By the way, you can modify the EDD template by changing its formatting rules, master pages, and so forth. I haven't yet done so for FM 11, but see http://forums.adobe.com/thread/909395 for information on various changes I've made to the English EDD templates for previous versions.
             --Lynne

  • Can I include unstructured files in the general rule for a book ?

    Hi,
    I have a series of books with lots of generated files. I want to keep those as they are, but still add structure to the book and the content chapters. How do I write a general rule for the book element that allows an unstructured component - i.e. without wrapping the unstructured content into a container first (which would involve structuring the generated files with a special conversion table just to set the root element for them). Is this possible at all ?
    Thanks
    Jang

    Well,
    In my projects the DTD/EDD has an element for the TOC and/or Index, both are defined as <ANY>. The unstructured book component is then wrapped into the appropriate element in the book’s Structure View and gives you something like this:
    I am sure there are other ways to handle the population of a structured book with some unstructured files, but this is how I do/did it in several projects.
    Using the R/W rules I exclude the content of e.g. <toc> from the XML.
    - Michael

  • XML Rule + JS example: group elements under new parents

    Thanks again to everyone here for helping me get started! I'm now making real progress. In token of my appreciation, here's something that hopefully will eventually help others.
    I've worked out how to use the XML Rule facility (together w/ some JS management) to collect groups of XML elements and create new parent elements containing each group.
    The sample code here demonstrates several things in both JavaScript and InDesign Script, including:
    Use of the XML Rules facility to quickly retrieve data from the XML structure
    Use of the following-sibling XPath facility to obtain same-level XML elements
    Creating XML tags, parent elements, and moving elements
    Multi-dimensional JS array for managing XML elements
    By the way, here are a few more things that were not obvious to this noob (I'm sure they are documented; just took time to find them...)
    In the InDesign script editor, you can bring up the Object Model Viewer by pressing F1
    In the object model viewer, you must click below "Browser" and select the InDesign Object Model before doing a search
    At the following link is a list of links to incredibly valuable documents and a huge collection of "Scripting Guide" sample scripts. http://www.adobe.com/products/indesign/indepth.displayTab2.html#Scriptingresources
    Using try { xyzzy; } catch (myErr) { alert(myErr); }  ... is your friend
    Below is a description of what my sample code actually accomplishes. But first, here are some things I learned about the XML Rules facility. Probably obvious to someone who has used this before but hey, I'm new to this:
    You create a set of XML Rules and pass them to the "glue code." Each time the set of rules is run, a single (potentially complex) traversal is made through the XML Structure.
    The implication of #1 is that for any given element in the structure, the first rule that matches the element will process it. Thus, the sequence of rule definitions is always important. This both simplifies and sometimes makes more complex how one designs a set of rules.
    An example in my case:
    I wanted to collect all elements at one level into "groups", with a particular (known) tag as the first element in each group.
    It was pretty clear how to find the known tag; use an XPath like "/devices/name" if the tag is "name" underneath "/devices."
    But how to collect the intervening tags? In normal XPath/XSLT syntax, this is a bit complicated. But in the XML Rule system, it's actually easy...
    Since the first rule will always collect every "name" element, my second rule becomes simply "/devices/name/following-sibling::*" which means "collect all siblings after the 'name' element. Normally, that would include following name elements as well, but it does not do so here since the first rule collects those.
    Don't bother trying to rearrange the XML structure from within XML Rule processing. In certain limited situations it can work... but it is just as easy, and quite reliable, to collect the needed info during XML Rule processing, then make the structure changes as a later step.
    The MakeXMLGroups(myXPath,myParentTag,myHeadTag) function changes:
    Devices
       Name
       Type
       Desc
       Name
       Quantity
       Type
       Desc
       Name
       Desc
    To:
    Devices
      Device
          Name
          Type
          Desc
      Device
          Name
          Quantity
          Type
          Desc
      Device
           Name
          Desc
    In this case, the function call was MakeXMLGroups("/Devices","Device","Name").
    (NOTE: I'm on personal travel this week so may not get back to answer questions until next week...)
    Here are links to the necessary files:
    http://ds.org/files/adobe/MakeXMLGroups.jsx
    http://ds.org/files/adobe/grpXMLRulesExampleSetup.jsx
    http://ds.org/files/adobe/grpXMLRulesExampleData.xml
    Message was edited by: SLTyPete to insert file links

    Hi John,
    1) I like that the new model adds parameterization. It's cleaner than pulling in parameters from pre-set variables. However, the given example didn't actually make much use of it. The only non-constant parameter multiply-used in the example is the "table" variable. Seems like a lot of work for not a lot of gain, at least in this case?
    2) I am cautious that this new template/model condenses the paradigm sooo much, that it is no longer clear where XPath is involved vs straight constant tag names. Yes, Adobe's example is overly-expanded but that's common in code meant to be a demonstration.
    3) I also am cautious that the example intermingles direct node creation into the XPath search/processing chain. I've learned to be VERY careful with this. It only can work when the changes made do not interfere with the rule processing. In my model, I simply avoid it completely (by not making node-position or node-add/remove/move changes until after tree parsing is complete.) This will always be a safe model.
    Bottom line: while I very much appreciate the parameterization and lintability (is that a word? Sure makes sense to me )... I think I would still define each rule separately rather than bring them all together as an inline array in the rule processing call. To me it seems sooo condensed that the XPath meaning can become lost. (Would someone recognize that //para/section-head is actually an XPath statement that could (in another situation) be //para/* or //para/following-siblings::* ... while some of the other strings are exact-match tag names?)
    I realize this is all a matter of style... my preference: clarity for the future reader, particularly when the future reader is me a year later who forgot what all those parameters and embedded methods were all about ...
    Blessings,
    Pete

  • Itu00B4s possible to change the Distribution rules for a order type RM01 ??

    Hi Experts:
    I need to change the settlement rule which is automatic created at the moment  that you create a Cost colector (class order RM01) transaction KKF6N..
    but when I go into KKF6N transaction and I select the "change" option and after that I go into settlement rule screen, I can´t change the distribution rule.
    I would need to change the settlement type from "PER" value to "TOT" value.. It´is possible in this kind of Cost colectors??
    Thanks and regards!
    Manuel

    Hi,
       Please note that you will not be able to change manually the settlement rule for a cost collector. 
    When you save, the system creates a settlement rule for the product cost collector.
    The settlement rule for the product cost collector always specifies the distribution rule "100% to material" and the settlement type  is always PER (periodic).
    Also refer the note 388457 in which one of the paragraph it says "As of Release 4.5, a special settlement rule is generated when you create a product cost collector (with procedure 5: delivery value for product cost collector). You cannot subsequently change this settlement rule".
    regards
    Waman

  • Creation of settlement rules for WBS element

    Hi,
    Iam having problem when creating the settlement rules for WBS elements. The business goes like this.
    We have XI interface which creates the Idocs and an inbound program(customized) to process the Idocs. When the Inbound program is run the WBS elements are created and settlement rules are created for the WBS elements. The inbound program is run automatically thru batch job.
    First time when the Idocs are processed about 95% of the WBS elements have settlement rules created and for other 5% settlement rules are not created. The Idoc is in status 64. I tried reprocessing the Idoc and then the settlement rules are getting created succussfully. The problem is Iam not able to find why the Inbound program is not processing succusfully when its run first time but works when reprocessed.
    I appreciate if anyone can send their views.
    Best Regards
    SK

    Hi!
    You might set the processing to check not only once the relevant IDocs, but more times...
    Check out these programs, and set them into a batch job periodically...
    RBDMANI2
    RBDAPP01
    Regards
    Tamá

  • Nstalling Photoshop Elements 13 and Premiere Elements 13 but I have no disc drive. Is it possible to install and register it online?, I bought at Media Market the CD for installing Photoshop Elements 13 and Premiere Elements 13 but I have no disc drive. I

    I bought at Media Market the CD for installing Photoshop Elements 13 and Premiere Elements 13 but I have no disc drive. Is it possible to install and register it online?

    I was in the same boat as you, so I went to Best Buy and purchased the box (on sale, by the way). I then downloaded the trials separately for Photoshop Elements and Premiere Elements from the Adobe product site.
    In the box you should have been given 2 discs (one for Photoshop Elements (PS) and one for Premiere Elements (PE)) and something called a "redemption code" on a square of colorful cardboard with instructions on how to get your serial keys for installation. The single redemption code is NOT the serial/product key you use to install your purchase. Once you follow the instructions on this card you will be shown two serial/product codes, one each for PE and PS. Write them down, print them, whatever, you will need them during installation.
    Now go to the downloaded trial file(s) and run the installer, either for PE first or PS, it makes no difference. During the installation you will be asked if you want to start a trial or use a serial/product code. Choose "I have a code". Enter the product key and you will be golden. Repeat for the other program.
    Hope this helps!

  • Is possible to config an subscrat rule for all the signatures enables in IPS?

    Hi.
    is possible to config an subscrat rule for all the signatures enables in IPS?
    Thnks
    Sent from Cisco Technical Support iPad App

    Yes, In the event action filter configuration configure the signature range , victim IP address and the action to subtract.

  • Spry MenuBar - IE6 - how to make that submenu is shown above the parent element

    Hi you all,
    I need the menubar to open the submenu above the parent element.
    Here´s what I did:I inserted a spry menubar and the only css-change I did was the one shown below in red "botom: 2em;"
    This works exactly as I need it to - in Safari, Firefox and Opera.
    In IE6 however, the submenu is shown far below the parent element. Is there a solution?
    Greetings from Germany
    Alex
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 100px;
        position: absolute;
        left: -1000em;
        bottom: 2em;   

    thank you very much, Nancy!
    Greetings from Mannheim, Germany
    Alex
    Am 03.09.2010 um 23:45 schrieb Nancy O.:
    >> In IE6 however, the submenu is shown far below the parent element. 
    >> Is there a solution?
    Possibly.  It's hard to tell without seeing your page, though.
    >
    The position of Spry Menu Bar submenus is controlledby the margin 
    property on submenu ul tags.
    1. Locate the ul.MenuBarVertical ul or ul.MenuBarHorizontalul rule.
    2. Change the margin: -5% 0 0 95%; default values to the desired 
    values.
    >
    http://livedocs.adobe.com/en_US/Spry/SDG/help.html?content=WS895F3A6D-6D73-42ef-B568-3D04A BD2F171.html
    >
    Also, look through the CSS coments for IE hacks. Often these 
    workarounds for older browsers can be commented out or deleted.  
    Test before you delete anything permanently.
    >
    >
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    >

  • Settlement rule for AUC not automatically generated

    Hi Experts,
    I am working on a capital project scenario where I have configured the investment profile and assigned this to the project profile.  I have also configured the settlement profile and allocation structure for settlement to FXA.
    On release of the WBS element the AUC is automatically created.
    I have posted costs to the WBS element.
    When I run settlement in test mode, using CJ88 the details show the sender as the WBS element and the reciever as the AUC, and the amount = the cost posted to the WBS element in the posting period, (as expected)
    However, (now my problem)
    When I run settlement in "update" mode the settlement shows 1 settlement however when I drill down to see the sender or reciever details are blank.  There are alno no accouting documents and a settlement rule does not display for the WBS element.  There are no error messages even though the settlement has not taken effect.
    Please can anyone advise on the possible cause of this error.  One further  point the document type on the settlement profile is configured as "SA"  GL Account Document.
    Thanks in advance.
    Ian

    hi,
    Go to Settlement rule (CJ02),where enter the WBS .here go to Extra in the menu bar of that WBS ,under Asset under construction ckeck the box of Historiy....something like that .
    Regards
    Ricky

  • Message Mapping - Filter on parent element

    Hi,
    I'm using message mapping for mapping IDoc ORDERS05 to flat file.
    This is the source structure :
    ORDERS05  1..1
    ---- IDOC  1..1
         ---- E1EDKT1  0..99
              ---- TDID  0..1
              ---- TSSPRAS_ISO
              ---- E1EDKT2  0..9999999
                   ---- TDLINE  0..1
    and this is the target structure :
    TCD 1..1
    ---- TCT  1..unbounded
         ---- TDID
         ---- TDSPRAS
         ---- TDLINE
    Can anybody help me about how to do the mapping for having 1 TCT element for each
    E1EDKT2 element with parent (E1EDKT1) having field TDID equals to the constant "ZALO" ?
    For exemple:
    <ORDERS05>
       <IDOC>
          <E1EDKT1>
             <TDID>ZALO</TDID>
             <TSSPRAS_ISO>tdspras1</TSSPRAS_ISO>
             <E1EDKT2>
                <TDLINE>tdline11</TDLINE>
             </E1EDKT2>
             <E1EDKT2>
                <TDLINE>tdline12</TDLINE>
             </E1EDKT2>
          </E1EDKT1>
          <E1EDKT1>
             <TDID>unused</TDID>
             <TSSPRAS_ISO>tdspras2</TSSPRAS_ISO>
             <E1EDKT2>
                <TDLINE>tdline2</TDLINE>
             </E1EDKT2>
          </E1EDKT1>
          <E1EDKT1>
             <TDID>ZALO</TDID>
             <TSSPRAS_ISO>tdspras3</TSSPRAS_ISO>
             <E1EDKT2>
                <TDLINE>tdline3</TDLINE>
             </E1EDKT2>
          </E1EDKT1>
       </IDOC>
    </ORDERS05>
    must result in :
    <?xml version="1.0" encoding="UTF-8"?>
    <TCD>
         <TCT>
              <TDID>ZALO</TDID>
              <TDSPRAS>tdspras1</TDSPRAS>
              <TDLINE>tdline11</TDLINE>
         </TCT>
         <TCT>
              <TDID>ZALO</TDID>
              <TDSPRAS>tdspras1</TDSPRAS>
              <TDLINE>tdline12</TDLINE>
         </TCT>
         <TCT>
              <TDID>ZALO</TDID>
              <TDSPRAS>tdspras3</TDSPRAS>
              <TDLINE>tdline3</TDLINE>
         </TCT>
    </TCD>
    Thanks in advance,
    Laurence

    Hi,
    When implementing your solution, I get only 1 TCT per E1EDKT01 (and no more loop on E1EDKT02) and filter on "ZALO" TDID is not working.
    <TCT>
         <TDID>ZALO</TDID>
         <TDSPRAS>tdspras1</TDSPRAS>
         <TDLINE>tdline11</TDLINE>
    </TCT>
    <TCT>
         <TDID>unused</TDID>
         <TDSPRAS>tdspras2</TDSPRAS>
         <TDLINE>tdline2</TDLINE>
    </TCT>
    <TCT>
         <TDID>ZALO</TDID>
         <TDSPRAS>tdspras3</TDSPRAS>
         <TDLINE>tdline3</TDLINE>
    </TCT>
    I have changed context of TDID to ORDERS05, and context of E1EDKT2 to ORDERS05 too.  Aren't thoses contexts correct?
    Laurence

  • Creating Context Menus for reports

    Hi All,
    I have a classic report with some fields. Whenever I right click on any of the values in the report column, a context menu should appear with the options I define.
    Any idea abt how to do this?
    Regards,
    Sushma.

    Hi,
    <u><b>Context Menus for Lists</b></u>
    As with normal screens, the system creates a standard context menu when you use a dialog status in a list. You can call this standard context menu using the right-hand mouse button (Shift + F10). It displays all of the functions assigned to function keys.
    You can define context menus for list lines in the same way as for screen elements. To do this, you must assign a special function code to the function key Shift+F10 in the dialog status of the list. To define context menus for a list, you must first have defined a dialog status for the list and set it using SET PF-STATUS.
    In this dialog status, which you will normally create using the List status template, the List with context menu option must be selected in the function key setting attributes. To do this, place the cursor on a function key setting in the Menu Painter and choose Attributes or Goto   Attributes   F key setting. The function code %CTX is assigned to function key ShiftF10. Since the introduction of context menus on lists, it is no longer possible to assign ShiftF10 freely to any
    function in the Menu Painter. In any existing dialog status where a function code was assigned to ShiftF10, it has been reassigned to ShiftCtrl+0. You must activate the function code %CTX manually before it has any effect in the dialog status.
    As on screens, context menus on lists are generated dynamically in ABAP programs as objects of the class CL_CTMENU.
    For context menus on lists, you must program a callback routine in the ABAP program:
    FORM on_ctmenu_request USING <l_menu> TYPE REF TO cl_ctmenu.
    ENDFORM.
    In this subroutine, you can define a context menu using the object reference <l_menu> as described in the Context Menus [Page 639] section. To define a specific context menu, for example, you could get the cursor position on the list using GET CURSOR. If required, you may need to find out the current list level from the corresponding system fields (for example, SYLISTI).
    When you right-click a list line (or choose Shift+F10), the callback routine is executed, and the context menu defined in it is displayed. If the user chooses a menu item, the system carries on processing according to the function code assigned to it. The function is either executed by the runtime environment, or the corresponding event is triggered (in which case, the function code is placed in the system field SY-UCOMM).
    If you right-click outside a list line, the system displays the standard context menu.
    Ex.
    REPORT demo_list_context_menu .
    DATA: wa_spfli TYPE spfli,
    wa_sflight TYPE sflight.
    START-OF-SELECTION.
    SET PF-STATUS 'BASIC'.
    SELECT * FROM spfli INTO wa_spfli.
    WRITE: / wa_spfli-carrid,
    wa_spfli-connid,
    wa_spfli-cityfrom,
    wa_spfli-cityto.
    HIDE: wa_spfli-carrid, wa_spfli-connid.
    ENDSELECT.
    CLEAR wa_spfli.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'DETAIL'.
    CHECK NOT wa_spfli IS INITIAL.
    WRITE sy-lisel COLOR COL_HEADING.
    SELECT * FROM sflight INTO wa_sflight
    WHERE carrid = wa_spfli-carrid
    AND connid = wa_spfli-connid.
    WRITE / wa_sflight-fldate.
    ENDSELECT.
    ENDCASE.
    FORM on_ctmenu_request USING l_menu TYPE REF TO cl_ctmenu.
    DATA lin TYPE i.
    IF sy-listi = 0.
    GET CURSOR LINE lin.
    IF lin > 2.
    CALL METHOD l_menu->add_function
    EXPORTING fcode = 'DETAIL'
    text = text-001.
    ENDIF.
    CALL METHOD l_menu->add_function
    EXPORTING fcode = 'BACK'
    text = text-002.
    ENDIF.
    ENDFORM.
    In the dialog status BASIC for the basic list, %CTX is assigned to Shift+F10. In the
    callback routine, a context menu is defined. The definition depends on the cursor
    position and the list currently displayed.
    If the user right-clicks the two-line default page header on the basic list, the system displays a single-line context menu. The Back function is executed by the runtime environment. If you right-click a list line, a two-line context menu is displayed. The Detail function triggers the event AT USER-COMMAND.
    Regards,
    Bhaskar

  • How correct rule for Pcon calc for different hierarchy withsame Ent andICP?

    Hi! My question is below, after problem and describing of current situation
    The problem:
    Calculation of percentage of consolidation is runnig only for fixed hierarchy by consolidation rule
    The situation:
    I've got three hierarchys for my Entity's in system: one is base and two others are alternative.
    #root ConsBase
    ConsBase BaseChild
    BaseChild BaseChild1
    BaseChild BaseChild2
    #root ConsAlt1
    ConsAlt1 BaseChild1
    ConsAlt1 BaseChild2
    #root ConsAlt2
    ConsAlt2 BaseChild1
    ConsAlt2 BaseChild2
    And I have different value for Pcon for each member of hierarchys:
    BaseChild.BaseChild1, pcon = 30%
    BaseChild.BaseChild2, pcon = 30%
    ConsAlt1.BaseChild1, pcon = 50%
    ConsAlt1.BaseChild2, pcon = 50%
    ConsAlt2.BaseChild1, pcon = 70%
    ConsAlt2.BaseChild2, pcon = 70%
    Because of the different pcon for same entity members I've wrote a rule for correct consolidation proccess:
    Pieces of elimination rule:
    'After checking possibility for elimination starts percentage of consolidation rule for Entitys and ICPs:
    If CanEliminate Then
    dPCon = HS.Node.PCon("")
    'ICP parent define (restriction: consolidate only hierarchy ConsAlt1)
    call GetParent(strICPParent, strICP)
    'calculate Pcon for ICP
    dPConICP = HS.Node.PCon("E#"&strICPParent&"."&strICP)
    'allow for portion of all parents
    call GetParent(strICPSecondParent, strICPParent)
    dPConICP = dPConICP * HS.Node.PCon("E#"&strICPSecondParent&"."&strICPParent)
    'Parent rule define for entitys and icps
    Sub GetParent(strParent, strEntity)
    +For each EntParent in HS.Entity.List("ConsAlt1",[Parents])+ '!!! fixed hierarchy ConsAlt1 !!!!
    If (HS.PARENT.ISCHILD(EntParent,strEntity) = TRUE) Then
    strParent = EntParent
    End If
    Next
    End Sub
    I want have a process of consolidation with correct calculation of percentage of consolidation for Entity, ICP and not in one fixed hierarchy (ConsAlt1) - but in ConsBase, ConsAlt2 without making corrections in rules to fix Entity. How can I do it in my situation?
    Edited by: 806947 on 02.11.2010 3:58

    Hi DST
    This is a great effort and gesture. thank you on behalf of all the newbies.
    PJ

Maybe you are looking for

  • Hard disk Short DST: Failed, HP Pavilion g6-2213so

    We own a notebook HP Pavillion g6-2213so, windows 8 and is about 5-6 months old still on waranty. Yesterday the screen just went blank, but i thought it wasprobably hibernating or something. Now when i try to boot it, the message it gives is wait aut

  • How to paste text in Adobe Muse with same color where i copied this text?

    How to paste text in Adobe Muse with same color where i copied this text?

  • Quick install of RDS "unable to create the session collection"

    Simple as new virtual server, not touched. Had this happen in the past as well. When I attempt to run the Quick Install of RDS I get "unable to create the session collection" on the Session Collection stage. Then when I go to add roles or features th

  • No Audio in Elements 7

    Uploading from a Sony HDR Sr12 camcorder in AVCHD. I have sound in all other programs but not when I need to edit with Adobe Premiere Elements 7. My system is a Dell 2.93 quad system with 6gig ram, 512 video ram and 1.28 T hard drives. System uses wi

  • TS1424 How to stop a download in iTunes

    Hi so I was downloading a whole season for the Simpsons on iTunes and I want to cancel and get a refund on it.I tried deleting but it doesn't work.Not even pausing works!Help please before my iPod dies?