DMEE : how to make parent node disappear when child node is empty

Hi Friends ,
Currently i am working on DMEE , I have a problem . When Child node is empty I donot want the parent node to appear in the tree.Here I am uisng a field via exit function module for childnode. so not a fpay* strucutre field to write a condition.
Is there any other way for this ?
Please help.
Komaravolu

I'm not sure if this can be done in DMEE tree, but there is BADI DMEE_BADI_01 that can be implemented to perform any kind of postprocessing right before the file is created. I used it, for example, to replace separators with tabs. I believe this can also be used to eliminate the unneeded nodes.

Similar Messages

  • How to make parent node JCheckbox

    How can I make the parent node in
    http://www.java2s.com/Code/Java/Swing-JFC/CheckBoxNodeTreeSample.htm
    to a checkbox.
    Any help is greatly appreciated.
    Regards,
    Anees

    See my example here: [http://forums.sun.com/thread.jspa?threadID=5180008&messageID=9699576]
    If you have a specific problem post a Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the problem.

  • How to make "Submit" features disappear when form is distributed?

    Hi, I am very new at this. I'd like to know how to make the purple header that appears when a form has been distributed go away. This section says "Please fill out the following form. When finished, click Submit Form to return the completed form. Our company has been having problems when people submit these automatically, so we'd like to have them save them as PDFs and submit them as an attachment on an email. We don't want there to be any confusion about this, but I know that the forms have to be distributed so they can fill them out, and this purple header appears after I distribute. What do you suggest?

    You need to be a little more specific as to what is going on with the form. What is the exact issue you are having with the form when it is sent back? If your form is  designer form that is fillable then the header will always be there. It says "Please fill out the following form. If you are a form author, choose DistributeForm in the Forms menu to send it to your recipients."
    If you would like I could take a look at the form to see what you are experiencing. I have been designing forms for a major insurance company for four years and have come across many issues. In ordder to troubleshoot these issues you have to explain exactly what is happening to get at the root cause. It may something as simple as not having the submit button on the form or a little script written that saves the form as a save as.
    Not knowing the exact issue people are not going to be able to give you a fix. It is like taking your car to the mechanic and saying it doesn't work.

  • Filteredtreemodel, how to hide parent nodes if no children

    hi. i have surfed and read a lot of posts and topics here regarding filteredtreemodel. some i found hard to understand so i chose to use NiceGuy1's code from long ago since it's the easiest to understand.
    package test;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeNode;
    import java.util.ArrayList;
    import java.util.Enumeration;
    public class FilteredTreeModel extends DefaultTreeModel {
        // this hashmap gets the list of pdf files and the filter status
        private String filterText;
        private DefaultMutableTreeNode orig_root;
        public FilteredTreeModel(DefaultMutableTreeNode root) {
            super(root);
            orig_root = root;
        public void setFilterText(String s) {
            this.filterText = s;
            reload();
        public String getFilterText() {
            return this.filterText;
        @Override
        public Object getChild(Object parent, int index) {
            return getFilteredChildren(parent).get(index);
        @Override
        public int getChildCount(Object parent) {
            return getFilteredChildCount(parent);
        @Override
        public int getIndexOfChild(Object parent, Object child) {
            return getFilteredChildren(parent).indexOf(child);
        private int getFilteredChildCount(Object parent) {
            return getFilteredChildren(parent).size();
        private ArrayList<TreeNode> getFilteredChildren(Object parent) {
            ArrayList<TreeNode> filteredChildren = new ArrayList<TreeNode>();
            DefaultMutableTreeNode parentNode = null;
            parentNode = (DefaultMutableTreeNode)parent;
            for (Enumeration e=parentNode.children(); e.hasMoreElements();) {
                DefaultMutableTreeNode nextNode = (DefaultMutableTreeNode) e.nextElement();
                DefaultMutableTreeNode dummy = null;
                  if (nextNode.children().hasMoreElements()) {
                      filteredChildren.add(nextNode);
                } else {
                    // if node is leaf node
                    if (filterText == null ) {
                        // add right away if no filter
                        filteredChildren.add(nextNode);
                    } else {
                        // if filter matches this leaf node, add it. if not, how to check if
                        // parent nodes have empty children and remove it.
            return filteredChildren;
    }i havent had luck the whole day trying to make this work. it seemed that once the filteredChildren.add() is called, it gets rendered to the treecellrenreder right away so if i wnat to remove the parents (in case it has no children based on the filter),the parent nodes will stay put in the jtree. any workaround? or ideas? i dont want to use a different defaulttreemodel for this. i want to avoid that because i have lots of nodes in my jtree.

    Looks like you need this:
    for (Enumeration e=parentNode.getFilteredChildren(); e.hasMoreElements();) Edit: okay, that was just a quick guess. Actually you're going to get into trouble if you try to recursively suppress nodes with no children. First you suppress all the leaf nodes (because they naturally don't have any children). Then you suppress all of their parents, because now they don't have any unsuppressed children. Then you suppress all of the parents' parents, because now they don't have any unsuppressed children... and so on until you only have the root left. So you need to refine that requirement.
    But I get what you're saying. I had to do a similar thing, only I didn't use a FilteredTreeModel, I just built the TreeModel based on a selection from another tree. It's ridiculously hard to do when you don't get the nodes in order from the database, too, but that's a different problem.

  • How to make all nodes in a detailed navigation tree open automatically??

    Dear All,
    I have added some iViews to two folders and add these two folders to a workset "Time" and then add "Time" to the role of Employee portal user.
    How to make all nodes expanded automatically when this workset is clicked in EP??
    thanks,
    Zita

    Not surprising...it does not work even if you follow the exact way...
    Role ->
             Workset 1
                          -> Page 1
                          -> Workset 2
                                           -> Page 2
                          -> Workset 3
                                           -> Page 3
    When the user clicks on Role which is the Entry Point, I want the user to see Page1 (works alright) and want the tree node Workset 2 open (doesn't work)...I want tree node Workset 3 closed (which is what happens...)
    The thing is Workset 2 has to be open...
    This is what I've done...I've made the Initial State of Navigation Panel set to "Open"...
    What else is to be done????
    Thanks a lot.
    JP

  • How come my junk email disappears when I open it? for my .me email account

    how come my junk email disappears when I open it? for my .me email account

    Roadrunner is POP email, and the feature you are looking for
    is a function of IMAP email. Roadrunner has not announced
    any plans to make IMAP available. If this is important to you,
    get a gmail account (which can be setup as IMAP)  and configure
    your Roadrunner account to automatically forward emails to the
    gmail account.

  • In windows 7, how to make firefox start automatically when I turn on the computer

    In Windows 7, how to make Firefox start automatically when I turn on the computer. Note, I am asking how to do this with Windows 7, not xp, not vista.

    You need to place a shortcut to open Firefox in the Start > Programs > Startup folder.<br />
    That is basically the same in all Windows versions.

  • How come my safari windows disappear when I close my laptop and open again? The safari windows I wanted to keep running for the next time I open my laptop disappeared. Why? Help me.

    How come my safari windows disappear when I close my laptop and open again? The safari windows I wanted to keep running for the next time I open my laptop disappeared. Why? Help me.

    Important note, do NOT sleep your macbook Air with headphones attached until this is resolved.
    Ive done a good best of testing on same to confirm not to do that
    also if you have the APP "BOOM" installed........ remove it

  • How to make a node chooseable

    this is my tree:
    <af:tree value="#{favoriteTreeMB.treeModel}" var="node"
    rowSelection="single" id="pt_t1">
    <f:facet name="nodeStamp">
    <af:group>
    <af:goLink text="#{node.attributes['name']}" styleClass="common"
    destination="#{node.attributes['link']}"
    rendered="#{not empty node.attributes['taskflow']}"/>
    <af:outputText value="#{node.attributes['name']}"
    rendered="#{empty node.attributes['taskflow']}"/>
    </af:group>
    </f:facet>
    <f:facet name="pathStamp"></f:facet>
    </af:tree>
    this is the tree model:
    public class FavoriteTreeModel extends ChildPropertyTreeModel {
    public FavoriteTreeModel() {
    super();
    public FavoriteTreeModel(java.lang.Object p1, java.lang.String p2) {
    super(p1, p2);
    @Override
    public boolean isContainer() {
    return ((TreeNode)getRowData()).isLeaf();
    how to make the node chooseable,and how to get the choosed node?

    Hi,
    the tree component has a selectionListener property that you need to wire with a method on your tree model using EL
    Frank

  • How to make VM to suspend when it not use , VDI3.0 with SGD 4.5

    Hi All,
    We are using SunVDI3.0 with VBox 2.0.10 and connecting via SGD 4.5.
    i konw that we can do suspending vm on vmware esx, however i couldn't find it in VirtualBox provider.
    how to make VM to suspend when vm is not using for some period time.
    thanks in advance
    -kevin-
    Edited by: kevin on Sep 27, 2009 5:44 PM

    Hi All,
    We are using SunVDI3.0 with VBox 2.0.10 and connecting via SGD 4.5.
    i konw that we can do suspending vm on vmware esx, however i couldn't find it in VirtualBox provider.
    how to make VM to suspend when vm is not using for some period time.
    thanks in advance
    -kevin-
    Edited by: kevin on Sep 27, 2009 5:44 PM

  • How do I make email inbox disappear when i rotate to portrait

    My email inbox does not dissapear when I rotate my ipad to portrait. Is there a setting that I've not checked?

    alanfromnewtownards wrote:
    ClayG
    Are you not getting your portrait and landscape mixed up?
    Yes! I guess it's too early in the morning for my brain. So sorry, folks! Please ignore my previous answer.
    In portrait mode, you can make the inbox disappear either by swiping to the left on the open email or by tapping on the Inbox button.

  • How to make screen field enable when table control gives an error

    Hi,
        I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
    How to make the other parameter enable when table control throws an error.
    Regards,
    Jaya

    Hi Gobi,
         Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
    For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
    as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
    please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
    Thanks
    Jaya

  • How to make the date disappear on the blog summary page?

    Hi,
    I have read thru the message on this forum and can't seem to figure out how to hide or make the date disappear on the blog summary page.  I can do it on the blog entry pages by turning the color opacity to 0. 
    I have included my page here:http://www.quantumhealthcentre.com/www.quantumhealthcentre.com/Services/Services .html
    Also, if anyone knows how to delete the archive page or inactivate it on my website, please let me know.
    Any advice would be appreciated.
    Thanks,
    Peggy

    http://www.wyodor.net/_Movies/HideDateBlogEntry.mov
    http://www.wyodor.net/_Movies/HideDateBlogArchive.mov

  • JTree: How to make few nodes editable

    I have a JTree which displays some complex expression.
    I want to make few nodes of the JTree editable and specify JCombobox as an editor. How can I do this?
    Any help or pointer?
    Thanks in advance
    Sachin

    I want to make few nodes of the JTree editablei'm not sure how you can do this - there is JTree.setPathEditable(boolean) but this means you'd have to subclass JTree ?
    you might be able to make a cell editor that returns some value to indicate a particular cell isn't editable, or failing that return a read-only component but I've not tried this..
    and specify JCombobox as an editor.this may help:
    http://www.cs.cf.ac.uk/Dave/HCI/HCI_Handout_CALLER/node156.html
    asjf

  • How to make 2 Node File Cluster with SAS Disks

    Hello,
    I cant fine any detailed, specific information and answer on this question
    I have 2 Servers, Say HP, with 4 SAS disks each,  1 for OS (2012R2Data) and 3 available.
    I want to create fault tolerant SMB 3.0 share for my Hyper-v nodes, to make hyper-v FT cluster afterwards.
    So, I see inr equirements that SAS disks will work, but during creating cluster, I can not manage Cluster to see disks from both servers (total 6 free units)
    If it is made via ISCSi target, both servers have access to that targets and cluster sees all available through iSCSI disks, but how to mnake SAS disk available to other server?
    Is it possible what I need with this configuration?  is it a option to make each server iSCSI target and initiator? (but it would be way complicated and slow, I think).
    so, what I have misunderstood, how to make FT file Cluster with 2 servers with SAS drives?
    Any info about this SPECIFIC config would be welcomed, or any general step-by-step guides  (please, do not link me guides with other config, like iscsi or with additional servers, I have seen a lot of them :()
    thanks

    Hello,
    I cant fine any detailed, specific information and answer on this question
    I have 2 Servers, Say HP, with 4 SAS disks each,  1 for OS (2012R2Data) and 3 available.
    I want to create fault tolerant SMB 3.0 share for my Hyper-v nodes, to make hyper-v FT cluster afterwards.
    So, I see inr equirements that SAS disks will work, but during creating cluster, I can not manage Cluster to see disks from both servers (total 6 free units)
    If it is made via ISCSi target, both servers have access to that targets and cluster sees all available through iSCSI disks, but how to mnake SAS disk available to other server?
    Is it possible what I need with this configuration?  is it a option to make each server iSCSI target and initiator? (but it would be way complicated and slow, I think).
    so, what I have misunderstood, how to make FT file Cluster with 2 servers with SAS drives?
    Any info about this SPECIFIC config would be welcomed, or any general step-by-step guides  (please, do not link me guides with other config, like iscsi or with additional servers, I have seen a lot of them :()
    thanks
    You cannot do what you want with a Microsoft built-in tools. MSFT require you to take your SAS disks away from your servers, buy a SAS JBOD (better more then one to get advantage of a so-called "enclosure awareness" and avoid single point of failure) and
    configure Clustered Storage Spaces with now *external* SAS drives. See:
    How to Configure a Clustered Storage Space in Windows Server 2012
    http://blogs.msdn.com/b/clustering/archive/2012/06/02/10314262.aspx
    Prerequisites
             A minimum of three physical drives, with at least 4 gigabytes (GB) capacity each, are required to create a storage
    pool in a Failover Cluster.
             The clustered storage pool MUST be comprised
    of Serial Attached SCSI (SAS) connected physical disks. Layering any form of storage subsystem, whether an internal RAID card or an external RAID box, regardless of being directly connected or connected via a storage fabric, is not supported.
    Windows Server 2012 R2 had flexed out some limitations so now ReFS is supported (but useless as VMs cannot be integrity checked and protected) and now you can use parirty spaces (also useless as they are DOG slow with a typical VM workload dominated by small
    writes, say 4KB write initiates 256KB+ parity stripe read-modify-write update). Core requirements "SAS everywhere" is still there.
    So if you don't want to mess with SAS JBODs you may give a try to a virtual SAN solutions available on the market. They can cluster a pair of hosts (even with a single port SATA drives) w/o any external hardware, only Ethernet required. There are even free
    options available. See:
    Free Virtual SAN
    http://www.starwindsoftware.com/native-san-for-hyper-v-free-edition
    Also Google (or Bing?) for DataCore and SteelEye as they have very similar native (Windows-based) offerings. + there's bunch of a VM-running storage doing more or less the same.
    Hope this helped a bit :)
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

Maybe you are looking for