Parent first in evdre

Hi,
    Anybody know how to configure Parent first in EVDRE?

I think you mean PARENTAFTER property. By default SAP BPC will put the Parent member before any other member. The parentafter property only works with the memberset keywork "ALL".
.e.g
Memberset: ALL(XXXXXX),PARENTAFTER.
This will result in all the members of members of XXXXXX and put any parentmember after
HTH

Similar Messages

  • How to realize 'parent first'  with grid api?

    I can realize most of the functions as realized in hyperion analyzer with SetGridOption function in grid api except 'parent first' function. Hyperion analyzer version 5.03 can work in 'Use Grid Api' mode, and can produce the right result, with parent member listed on the top of all it's children members. So I am sure grid api can do it. Could someone tell me how to do it?

    You'd think so, but no. The Grid API works the same way as the spreadsheet add-in - Analyzer has some client code that does the manipulation to "flip" the zoom in results to show the parent first.None of the available options in the SetGridOption function pertain to the positioning of the parent member.Regards,Jade-------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Parent-Child post order exception; FK constraint violation

    I've seen the discussion and answer recently in this forum for configuring BC4J
    to post the parent first, then the child, to avoid the FK constraint exception??
    So I have to appologise for re-asking, but I can't get the search function to find
    any thing that needs multiple key words. :(
    I've got two Entities, parent child, with Links, and Association between them on the FK.
    What was the trick to get the framework to correctly post the parent first??
    I've looked over the FkLink and FkAssoc and all these components are included by
    the AppModule...
    Thanks, curt

    Edit the association object between your parent and child entities and set the "Composition" flag (Composite Assocation in the UI), to true. You may elect to enforce "CascadeDelete" option, if you have database Cascade-delete turned on between the associated tables and want to avoid multiple DMLs for the details.

  • EJB 3, OneToMany that Acts As Tree, or Parent Child relationship support?

    (Sorry for the RoR reference)
    I first searched the forum and found this post that came close, but not exactly what I'm needing since my table doesn't reference the PK:
    http://forum.java.sun.com/thread.jspa?forumID=13&threadID=767913
    I have a table called Folder that represents a folder hierarchy. It has a 'Path' field and a 'Parent' field, and of course 'ID'. Each Folder knows its parent by the 'Parent' field, which references 'Path', not* 'ID'. Both are Strings.
    To find all the children of a Folder, the sql for a PreparedStatment might look something like this (shared for clarity of the situation):
    SELECT * FROM Folder
    WHERE Parent = ?Question:
    What are the proper annotations in EJB 3 / JPA to allow this kind non-primary key parent/child relationship mapping?
    Can I specify a named query that handles the logic and then reference it in the OneToMany annotation? Other cool tricks?
    Here is what I am trying (no runtime errors, but no results either). (Example simplified)
    @Entity
    @Table(name = "Folder")
    @NamedQueries(value = {@NamedQuery(.......)})
    public class Folder implements Serializable {
        @Id
        @Column(name = "ID", nullable = false, updatable = false)
        private Integer folderID;
        @Column(name = "Path", nullable = false)
        private String path;
        @Column(name = "Parent")
        private String parent;
        // v Here's the kicker v
        @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.EAGER)
        @JoinTable(name="Folder",
            joinColumns={@JoinColumn(name="Parent")},
            inverseJoinColumns={@JoinColumn(name="Path")})
        private List<Folder> children;
        // getters and setters ....
    }Thanks!

    It looks like the relationship is bi-directional.
    Will this work...
    // Parent.java
    @Entity
    public class Parent implements java.io.Serializable {
    @Id
    public Long parentId;
    @OneToMany(cascade=CascadeType.PERSIST,mappedBy="parent")
    public Collection<Child> children;
    // Child.java
    @Entity
    public class Child implements java.io.Serializable {
    @Id
    public Long childId;
    @ManyToOne
    public Parent parent;  // target of mappedBy
    }Then, in your code (a session facade?), you'll create the parent first, create the children, then add the children to the parent. Your code is also responsible for maintaining the reference back to the parent.
    Parent p = new Parent();
    for(int i=0; i<10; i++) {
      Child c = new Child();
      p.children.add(c);
      c.parent = p;
    em.persist(p);

  • One-to-Many:  New child not showing up when parent retrieved

    I have a one to many relationship. The parent contains a collection of children in a arraylist.
    A new child record is added independent of the parent, via a uow.
    The parent is retrieved.
    The new child doesn't show up.
    So the question is Does the parent first have to be retrieved and the child added to the parent. The child is not and should not be privately owned. The child is not dependent. If the parent goes away the child should still exist.

    "This last part" (as you describe it) is necessary. In a nutshell, you manage the object model (including both directions of a bi-directional relationship) and TopLink updates the database accordingly.
    This usually isn't a big issue. I.e., if you have a "addB(ClassB b)" method that looks like this, then you don't have to worry about managing the whole relationship all over the place:
    public void addB(ClassB b){
    bs.add(b);
    b.setA(this);
    At commit time the cache and database should be updated properly when you add a "b" to an "a".
    I have seen cases where the developer actually ended up not mapping the 1-M relationship in the model and had a "virtual" 1-M relationship. They would add a target to the "virtual" 1-M as you describe (just set the owner, i.e., tell the "b" it belongs to a particular "a". Then, they created a QueryKey in the Mapping Workbench in the Class "A" called "bs". Then they could build expressions and queries using "anyOf" through the "bs", even though it wasn't really mapped! I guess the point is that if you don't want to have to maintain that collection in code, and if it's not used in the application, then don't map it! Just create a QueryKey from A to B so that you can build the expressions as if it was there.
    - Don

  • Analyzer 6, selecting parent and children

    Hello I'm trying to use a combo box to select members and it's children.There is also a grid that the combo is connected to. Selection ofa single item in combo box results that the selected member andits children apear in the grid's page section. The problem is thatthe parent member is located below it's children on pages list.There was a "select parent first" option in Wired Analyzer 4 so the parent member apeared properly - over the children members. Has anyone idea how to set it up in the Analyzer 6.1?thanksGrzesiek

    According to the Readme Document, Parent first is not supported in Analyzer 6.1, and this is a known issue. I was able to add a combo box from the Design Report option (instead of Pages) and Also Select Children, and the parent does display first that way. That may be an option.

  • Depth first, pre-order traversal ?

    Im experiementing with various examples of parsing an XML document and adapting it to a TreeModel for use in a JTree component. Im looking at some of the newer JAXP API's like org.w3c.dom.traversal
    Interface DocumentTraversal. Im wondering about depth first and pre-order traversal.
    What do these terms mean ? Im guessing it has to do with the tree type data structure ? Like many programmers out there, I went to college for something other than comp sci so i never had the unfortunate pleasure of taking a data structures course.
    Also it seems like the level 2 DOM spec is making things alot easier to work with, but even Sun doesnt have a good tutorial on using the newer API's.

    Pre-order traversal simply means, that any method is applied to the parent first, before it is applied to its children. A tree like
    aNode
    -pNode-+-bNode
    cNode
    would therefor result in a series of method calls like:
    pNode.yourMethod();
    aNode.yourMethod();
    bNode.yourMethod();
    cNode.yourMethod();
    Whereas post-order taversal would start with the children and process the parent node as last one. Finally a in-order run would process some children first, which come in some kind of order before the parent node, then the root node and finally the remaining children. Of course, that makes only sense if the tree is ordered in some way, eg. if the node content can be ordered alphabetically or so.
    Hope that helps,
    Mathias

  • Changing the classloading Policy to Parent-last in Netweaver AS

    I want to know the way to change the default class loading policy of a deployed app (war in my case ) in Netweaor AS from 'Parent First' to 'Parent Last'.
    A quick reply will be higly appreciated.

    Check page 86/87 of this doc...
    http://help.sap.com/businessobject/product_guides/boe65/en/ManualConfigWin65.pdf
    Regards
    Juan

  • Unzipping Files in the wrong folder

    Hi
    I am trying to unzip files. It works fine except that it unzips the files at the root. So i have tried specifying the path for making the directory (in which the unzipped files are stored). But that doesnt seem to work. Now i am unable to find the unzipped files. CAN ANYONE HELP PLEASE
    public static void unzipFile(String zFile)
            Enumeration entries;
            ZipFile zipFile;
           try {
                zipFile = new ZipFile(zFile);
                File file = new File(zipFile.getName());
                String fname = file.getName();
               String substr1 = fname.substring(0, fname.indexOf("."));
                String filepath = "/data/psawant/temp";
                File dir = new File(filepath, substr1);
                try {
                        dir.mkdir();
                catch (Exception fe)
                      System.err.println("Unhandled exception:");
                        fe.printStackTrace();
                        return;
                entries = zipFile.entries();
                while(entries.hasMoreElements()) {
                    ZipEntry entry = (ZipEntry)entries.nextElement();
                    if(entry.isDirectory())
                         // Assume directories are stored parents first then children.
                        System.err.println("Extracting directory: " + entry.getName());
                                          (new File(entry.getName())).mkdir();
                        continue;
                    } //end of if
                    System.err.println("Extracting file: " + entry.getName());
                    copyInputStream(zipFile.getInputStream(entry),
                        new BufferedOutputStream(new FileOutputStream(entry.getName())));
                 } //end of while
                zipFile.close();
                   } catch (IOException ioe)  {                 }
             } //end of unzip function
    public static final void copyInputStream(InputStream in, OutputStream out)
        throws IOException
            byte[] buffer = new byte[1024];
            int len;
            while((len = in.read(buffer)) >= 0)
            out.write(buffer, 0, len);
            in.close();
            out.close();
    Any help is apprciated
    Thanx

    Sorry I got it this time. I had overlooked the new File. I added that & it works fine but there seems to be some problem
    If the folder has another folder inside . it doesnt show that one. or rather just unzips one folder & no folders inside it. But i guess i can check for that
    Thanx for u r help
    Have a nice day

  • Classloader Again

    Sorry to bring up the classloader questions again and again. I am a bit confused by the language used in the documentation when it says things like each application has its own universe etc. And also, the following statement in the docs,
    "The exception is the Web Classloader, which follows the delegation model in the Servlet specification. The Web Classloader looks in the local classloader before delegating to its parent. You can make the Web Classloader delegate to its parent first by setting delegate="true" in the class-loader element of the sun-web.xml file. For details, see the Developer's Guide to Web Applications."
    I wanted to see if some one could answer the following. (These are very easy for me to test. But, at this point I have a very "rich" system classpath that includes a lot of classes/jars etc. Makes it harder to see a clear picture. And I want to see if what I am observing the correct behavior))
    I have a com.xyz.myClass packaged in utils.jar. I also have a test servlet and jsp page. The test servlet makes a call to com.xyz.myClass
    A) If I individually deploy my test servlet/jsp as a .WAR, where should I place utils.jar?
    (If I had utils.jar in the system classpath, is the WAR supposed to see it?)
    B) What if the a

    I have a com.xyz.myClass packaged in utils.jar. I also have > a test servlet and jsp page. The test servlet makes a call to > com.xyz.myClass
    A) If I individually deploy my test servlet/jsp as a .WAR,
    where should I place utils.jar?You can place it in any one of a number of locations:
    - within the WAR under WEB-INF/lib/. This location would be the most conventional, self-contained approach.
    - under $INSTANCE_ROOT/lib/. This location would mean that the same "version" the library would be shared by all apps (assuming that the other apps did not include their own copy).
    - under classpath-suffix setting for the instance. Similar to using $INSTANCE_ROOT/lib/, but you have to specify the JAR file name explicitly.
    (If I had utils.jar in the system classpath, is the WAR
    supposed to see it?)Yes.
    B) What if the above .WAR was part of a larger .EAR and I > deploy the .EAR instead of the .WAR? (Should utils.jar
    be in system class path or the web-inf/lib of the .WAR ?)Either.
    C) What if the .EAR above also had a few EJBs that
    accessed com.xyx.myClass ?- Self-contained approach would be to package the JAR file in the EAR and use the manifest classpath approach to denote its location for both the EJB JAR module and the WAR module.
    - Alternatively, you could either place the library either under $INSTANCE_ROOT/lib/ or specify the library in the classpath-suffix setting in the instance configuration.
    A good example of when it makes sense for the web classloader to look in the local classloader before delegating upward to the system classloader is the case in which your web application depends on a particular JAXP compatible XML parser that is different from that which is being used by the application server infrastructure. In this case, you would want the XML parser embedded in your web app or EAR to take precedence over the other XML parser packaged in the system classpath for use by the app server.
    Chris

  • LDAP multidirectory with sub-domains

    Hi,
    i have some difficulties using LDAP COM object that comes with the IP phone Services SDK. I would like to search the whole AD, which has multiple subdomains. I would like to search the whole directory structure, with the base: DC=company, DC=country, without specifying any particular OU. However, the connection with this kind of directory base configuration fails (the COM object is not created), so i can not search the whole directory, only specific OUs. Is there any way to achieve searching the whole directory structure?
    Regards
    Marko

    Originally Posted by hwoess
    Hello to the commmunity!
    I have been done with our it-partners a DSfW-Setup. There are two OES2 Domain-Controllers which holds the "main-domain". Connected to this "main-domain" were two configured sub-domains (OES2, too). They have been setup virtually (VMWare). And there is the problem with our DSfW-Installation. If the VPN-tunnel (the sub-domains are connected through) is broken or I reboot the first "main-domain"-Controller, all the sub's didn't work. I mean, the don't reboot, but they have no "domain-functionality". I have seen, that the all the controllers make a (I guess) LDAP-connection to the first installed OES2 Domain-Controller. I don't know why. Is this normal? Can I change this?
    What I have to say is, that we connected to each (Sub-)Domain through a trust or a forrest a real MS AD. We put our workstations into the real AD and through the trust or forrest we get the users from eDir or DSfW.
    As I know no one has a construct like our company here in Austria, so nobody could help me. Maybe the community does!
    With kindest regards
    Hans-Christian Wssner
    Hi,
    When the VPN tunnel is broken or the first domain controller of the DSfW parent (first) domain is down, is the complete of eDirectory tree (all the partitions) still available (reachable)to the domain controllers of the DSfW sub-domains (child domains). You can place additional read-write replicas on the other DCs (for the partitions that are missing) if the complete eDirectory tree is not available when one of the above two conditions occur.
    Thanks,
    Praveen Kumar

  • Error in Adobe download form

    Hi Experts,
                 We are using Webdynpro Application with Adobe Forms for download the employee data we are using Print PDF form. Past two years it is working fine. But recently we got error while downloading the form. The system did not react and did not give me the PDF format. In the past I did not have any problem for printing them. I tried to several different computers and still not able to have claim in PDF format. Previously my Adobe Reader version is 9.1.0 now my version is 9.3.0 .
    Form is developed in Adobe Life Cycle Desiger 8.0. Adobe Reader version 9.1.0 is working fine. But we are upgrade the next versions (Like 9.3.1, 9.4.2 and 10.0.) that time it is not working. Can you please suggest me. Where is  the problem.
    Thanks in Advance.

    Umang,
    This exception occurs you are trying to add a child to a parent element not yet created. In your case vnAddress is the parent and vnData is its child if I am not mistaken.
    So in your code you should first create an element of vnAddress and bind it and then create an element of vnData and bind / add it.
    So your code should look like :
    // Create and add parent first.
         IAddressTypeSelectView.IVnAddressElement  addressEle = wdContext.createVnAddressElement();
         wdContext.nodeVnAddress().bind(addressEle);
    // Next manipulate with child.
         IAddressTypeSelectView.IVnDataElement dataEle = wdContext.createVnDataElement();
         wdContext.nodeVnData().addElement(dataEle);
    Chintan

  • I have problem in this unzip java codes

    hi all,I have problem in this unzip java codes,I think either the pathway that i put C:.......is wrong or the codes are wrong because when i run it, the zipped folder is not unzipped. So anyone has another set of example or know how to correct it? Thanks!Please post the solution here!
    This is the set of codes that i have:
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    public class Unzip {
    public static final void copyInputStream(InputStream in, OutputStream out)
    throws IOException
    byte[] buffer = new byte[1024];
    int len;
    while((len = in.read(buffer)) >= 0)
    out.write(buffer, 0, len);
    in.close();
    out.close();
    public static final void main(String[] args) {
    Enumeration entries;
    ZipFile zipFile;
    if(args.length != 1) {
    System.err.println("Usage: Unzip zipfile");
    return;
    try {
    zipFile = new ZipFile("C:\\Temp\\FolderZiper.zip");
    entries = zipFile.entries();
    while(entries.hasMoreElements()) {
    ZipEntry entry = (ZipEntry)entries.nextElement();
    if(entry.isDirectory()) {
    // Assume directories are stored parents first then children.
    System.err.println("Extracting directory: " + entry.getName());
    // This is not robust, just for demonstration purposes.
    (new File(entry.getName())).mkdir();
    continue;
    System.err.println("Extracting file: " + entry.getName());
    copyInputStream(zipFile.getInputStream(entry),
    new BufferedOutputStream(new FileOutputStream(entry.getName())));
    zipFile.close();
    } catch (IOException ioe) {
    System.err.println("Unhandled exception:");
    ioe.printStackTrace();
    return;
    }

    What does the program output when it's executed? Can you copy the screen and post it here? More info can help solve the problem.
    What exactly is the program supposed to do?
    Add some more println() to show the program flow and what the values of key variables are. For example what is in entries after the entries() method is executed?
    Some prep work on your part would make it easier for us to help.

  • Deletion from multiple tables

    Hi,
    I am having three tables
    Payment (Parent)
    Header (Child)
    Items (Grand Child)
    one payment can have multiple header and the header can have multiple item in it.
    P
    H H -- level 1
    I I I I -- level 2
    e.g one payment is having 2 headers and each header is having 2 items in it.
    I need to delete the item table first then header table then payment table.
    Condition for deletion. There is field(flag) in item table which decides when to delete record. I need to delete record when all the item records flag value is 2.
    How to check for all items flag value?
    P1
    H1 H2
    I1 I2 I3 I4
    2 1 1 1
    P1
    H1 H2
    I1 I2 I3 I 4
    1 1 2 2
    Since if we miss any check at level 1 or level 2 We will be having Orphan records in the database.
    First case(Level 2 check is missed)then
    I1 -> H1 -> P1 deleted
    and we have H2,I2,I3,I4 Orphans
    Second Case (Level 1 Check is missed)then
    I3,I4 -> H2 -> P1 deleted
    and we have H1,I1,I2 as orphans.
    Please help how to check the flag value of each item. These table are related through primary and foreign keys.
    Thanks in advance
    Edited by: anu2 on Oct 20, 2009 12:04 AM

    Double negation coming up again...
    You can identify the parents that are eligable for deletion as follows:
    select p.*
    from Payment p
    where not exists
          (select 'x'
           from Header h
           where h.FK = p.PK
             and not exists
                  (select 'x'
                   from Items i
                   where i.FK = h.PK
                     and i.status != 2))And then use the resultset of above query to:
    - delete the grandchildren of these parents first,
    - and then delete the children of these parents,
    - and then delete the parents.
    Maybe this helps.
    Edited by: Toon Koppelaars on Oct 20, 2009 9:19 AM

  • ADF Faces: how to extend one of the faces components

    Hi all,
    I am thinking of extending the built-in ADF Faces CommandMenuItem component (to work around a bug that was filed). The only thing that I think I need to do is to add an additional property - I don't believe that I will need to add any additional behavior to the tag.
    Can anyone comment on (high level) the steps that I would need to go through? I'd like to
    a). Add the property
    b). Make sure the property shows up in the JDev property inspector
    c). Inherit everything else from CoreCommandMenuItem.
    I've looked at the source code (from the Apache guys), and this doesn't look too hard. I don't want to re-compile the whole Apache drop, just create a new component as described above, but I've no idea really where to start.
    Any insights appreciated,
    John

    Hello John,
    I don't know how possible it will be. It depend on what kind of property you want to add. Here are the general indications to acheive this.
    1) Make a custom component class extending CommandMenuItem class and add an additional property.
    2) Extends the commandMenuItem tag clas with your own
    3) override the method public void setProperties(javax.faces.component.UIComponent component)
    you just have to call the parent first which is the specification behavior anyway, so:
    public void setProperties(UIComponent component) {
    super.setProperties(component);
    // Cast the component to your component class and set your additional property on it
    4) The hard part... This is where I'm unsure of the procedure, but I would say that you'll have to extends ADF Faces's renderer for commandMenuItem and find a way to push the property in it if it has to be sent to the client. This seem really annoying to do. One way to do it would be to wrap the ResponseWriter so you can intercept what the parent renderer encodes and insert your property in the right spot. That strategy requires an additional (probably intern) class extending ResponseWriter. Then you would have to do something like this:
    FacesContext context = FacesContext.getCurrentInstance();
    ResponseWriter initial = context.getResponseWriter();
    context.setResponseWriter(new MyWrapperWriter(initial));
    super.encodeBegin(context, component);
    context.setResponseWriter(initial);
    The Wrapper would have to override all methods and delegate the call to the wrapped instance. When calling startElement(String) you would add a call to writeAttribute for your own property.
    5) For showing the property in the property editor panel you must fill a faces-config.xml file with the <component> tag. Since that one does not allow inheritance (which is really annoying imho) you'll have to copy most of the properties from adf faces' faces-config.xml file.
    6) Fill the tld for your new tag
    7) JAR the whole thing
    8) Edit your tag library from Tool in the menu I think (not on a computer with JDev installed atm so cannot be sure). Add your library that you just created. If faces.config.xml and the .tld are well made JDev will figure prety much everything on its own. You will now have a new choice in the dropdown menu of the component palette for your custom library.
    I hope I was decently clear.
    Regards,
    Simon Lessard

Maybe you are looking for

  • OSX: FF running, but no windows open - clicking on the dock icon should open a new window.

    Running OSX 10.5.8, FF3.6.10. If I close all FF windows, but leave FF running, I should be able to open a new FF window by clicking the dock icon. This doesn't work - it just brings FF to the front, but no windows open. Any ideas how I can fix this?

  • How to use standard report program [RPR_ABAP_SOURCE_SCAN]

    hi all, how to use RPR_ABAP_SOURCE_SCAN report program for checking my program. when i run it its asking me the report name and i gav it but, its showing me the error message as  'ENTER SEARCH STRING' . SO I NEED TO KNOW WHERE I DID WRONG. thanks in

  • Relink CRM Business partner with customer in ECC

    Hi all, In our organization, most business partner master data is automatically replicated with ECC. Table BUT0ID contains the link between a BP and customer on ECC. For some reason it happens regularly that a CRM BP gets a wrong link. I.e. BP 800012

  • Sh ip int not working with 5.0(4d)

    Since upgrade to 5.0(4d) on MDS9513 the following command doesn't work (worked with previous versions) - MDS1# sh ip int Internal error during command execution (11 8b) MDS1# 2011 Oct 14 14:57:23 MDS1 %VSHD-2-VSHD_SYSLOG_EOL_ERR: EOL function ipconf_

  • Multiple issues with iphone 5 and its accessories.

    Hi, I am an indian citizen and purchased an iphone 5 in December 2012. It worked fine for the first 7 months till IOS7 was launched. After Iupgraded my iphone to IOS7, the power button stopped working. I have been using assistive touch ever since. I