How to make some nodes invisible?

I set up a xml tree with JTree.Now I want to make some nodes invisible like the nodes which the name of the node is "datatype",how can I ?Thank you.

I don't know if the nodes can be made invisible. But if you make cell renderer then you can evaluate the value before displaying it. If value is like 'datatype', you display (cell renderer displays) nothing as value in the cell.

Similar Messages

  • 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 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 some fields in ALV tree editable

    Hello All,
    Can any one tell me how to make some fields in ALV tree editable.
    If possible please post some code.
    Regards,
    Lisa.

    Hi Lisa,
    I want to make 3 fields in the ALV tree editable and update the saved values in ztable.
    I tried making the wa_fieldcat-edit = 'X' But in vain.
    Also i made the layout fields  wa_layout-edit = 'X'  and wa_layout-edit_mode = 'X'.
    But still the alv tree field appears as display.
    As you have mentioned in the post as answered, So please guide me to make the field editable.
    I am using oops method.
    Please provide me code if any.
    Thanks & Regards,
    Mozila

  • How to make some part of front panel transparent?

    There is a property node to make a front panel completly transparent...but is there anything that only makes some part of the vi transparent like if I define a decorative block in the vi which takes 1 quardant of front panel and I have a control to make it transparent during runtime...
    And moreover the frontpanel transparent property makes the whole window transparent, is there any way to retain toolbar of window like stop, run button when front panel is transparent??

    Hi,
    Have a look at this VI (attached). To make it work you need to create an image mask as a .png (open paint, colour in the areas that you want to become invisible and save it as a .png). The VI diffentiates between white areas and black areas of the mask you create, the black areas will become transparent and the white areas will remain the same- this will be implemented on your front panel. I've included an example of a possible paint image in "mask2.png".
    You may also want to play around with the resolution of the mask created in paint, this will effect how the program works (I advise you use a lower resolution than your display- I used 500x300)
    NT: If the front panel controls disappear, go into the block diagram window and attach a false constant instead of a control. Let me know if this works
    Cheers, Tom
    Attachments:
    custom window.zip ‏107 KB

  • 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.

  • How to make a field invisible using t-code SHDG

    Hi Experts,
    I got a requirement to disable a field Business unit in all transactions of Plant maintainance. I heard that it can be done with the help of transaction SHDG.
    I am not aware of this transaction. So anyone please provide some information or the material related to this transaction.
    Also let me know. If i make this field invisible using this transaction. If the same field business unit is used in other modules such as SD, FICO then there also will it get invisible?
    If that is the case how to overcome the above scenario.
    Useful answers are rewarded....
    Thanks
    Kiran.

    Hi,
    I think its not shdg but shd0.
    the best way to do it is Screen Variant and Transcation Variant.
    Tcode for it is SHD0 and you can disable, make any field invisible, make screen invisible , can have default value can be done through SHD0.
    Try it. It will be helpful for you.
    http://help.sap.com/saphelp_47x200/helpdata/en/7d/f639f8015111d396480000e82de14a/frameset.htm
    Regards

  • How to make the buttons INVISIBLE in the Application toolbar

    Hi All,
    I have a requirement to create a button in the Application toolbar of the Module Pool Screen. The field should be made Invisible by default. and it should be displayed based on one condition.
    Could you please let me know how to make that particular button INVISIBLE. I think we can make it invisible by using EXCLUDING statement. But, How to make the button VISIBLE again when the check is satisfied.
    I found from the portal that the FM 'VIEW_SET_PF_STATUS' can be used to make a button INVISIBLE. Could anyone help me out how to pass the parameters to this Function module?
    or is there any Function Module available to make the button VISIBLE and INVISIBLE? Please help me on this issues.
    Is there any possibility to make the button VISIBLE or INVISIBLE as we do for the screen fields using LOOP AT SCREEN..?
    Thank you in advance.
    Regards.
    Paddu.

    Hi,
    Try to use below in the PBO module status_0100 OUTPUT.
    DATA t_fcode TYPE TABLE OF sy-ucomm.
    refresh t_fcode[].
    APPEND 'Function code name of the button' TO t_fcode. 
    Check the condition here for which you want to make field visible.
        DELETE FCODE of the button from T_FCODE table
      ENDIF.
      SET PF-STATUS 'STATUS_0100' EXCLUDING t_fcode.

  • How to make some fields mandatory for a custom screen we have added

    Hi All,
    Please let me know how can I make some fields mandatory through coding in PBO for only some fields of a screen.
    Say if I have 4 fields in my screen(module pool not selection screen) i want to make mandatory 2 fields based on some conditions how to do this? I tried using screen-group but this will make mandatory all the fields of that screen mandatory.
    I want only specific fields based on condition in run time.
    Regards
    Mahesh

    Hi Mahesh,
             Try this ..
      Assign the same group to those fields , say GRP
           in  PAI
             IF <CONDITION>
                Loop at screen.
                   if screen-group1 = 'GRP'.
                      screen-required = '1'.
                      modify screen.
                   endif.
                 endloop.
              ENDIF.

  • How to make some fields disable mode in BAPI?

    Dear sir,
    I want to know in Bapi, In Import parameters of output display screen as we are entering values i want to make some fields disable mode (as in report program, in output screen, suppose 2 entry fields are der so i need only one and another one in disable mode)how to do in BAPI?  please explain with example by taking 2 or 3 predefined tables? and in Bapi how to do ranges programs.. please explain with example? is it posiible in bapi to display the output in ALV_GRID method?
    regards
    patil

    Hi Rachu Patil,
    I think there is no posibility to disable fields in import parameter of bapi but you can select optional check box to make the field as an optional field in import parameter. Like wise you cant set range. If you want to set range than declare two variable for low and high.
    Regards,
    Harish

  • How to make tab strip invisible?

    hi Gurus,
    i had used a tabstrip in my screen 100. now i want make my strip invisible initailly.
    if certail condition is satisfied than i want to show my tabstrip.
    can anybody help me this,
    thanks in advance.

    Hi vipul,
    Tabstrip Controls
    Tabstrip controls are made up of pushbuttons (the tabs) and several subscreens. Each tab has its own subscreen. These tabs are part of the main screen and are therefore displayed in the field list of the dialog box for the main screen. Subscreen fields are displayed in other dialog boxes.
    According to how a tabstrip has been constructed internally:
    ●      Either a sole dialog box is displayed for the subscreen that belongs to the tab that is currently active, or
    ●      Dialog boxes are displayed for all subscreens that belong to the tabstrip control.
    If an invisible tab is set to active by the application transaction, different subscreens are selected for those tabs remaining that actually belong to other tabs. If the subscreens are invisible, it is also possible that an empty screen will be displayed.
    Technical Background:
    The transaction variant sets another tab (the remaining tab furthest left) to active. This additional active tab is, however, unknown in the application transaction, which assumes that its tab is active and selects the corresponding subscreen. If this subscreen has been faded out using the transaction variant, then an empty screen is displayed.
    CXTAB_CONTROL in SAP ABAP and TABLE CONTROL ... This field is used to make a particular column invisible or visible
    thanks
    karthik

  • How to make the message invisible.

    use transction "CNMASS" to mass change the activity.
    but there is a message. the message no. is CN354. "No authorization for processing: WBS element  XXX"
    how to make this warning message "CN354" is invisible.
    Please explain me all the steps to be required.
    Thanks in advance!

    Tense,
    From the looks of it, the error message seems to be authorization-related.  You should try CNMASS with an userid that has the appropriate authorizations instead of trying to circumvent the problem.
    Next time you get this message, immediately do a /nSU53.  This will show you what authorizations failed. Send this log to your Security team to get the required access.

  • How to make screen elements invisible ??

    Hi,
    In  my selection-screen, I can add no-display attribute to Parameter data but how can i make screen elements invisible which are declared as follows ??
    PARAMETERS: SMALLLOG as checkbox .
    thanks

    PARAMETERS: SMALLLOG as checkbox user-command abc.
    at selection-screen output.
    ***if it is input disable
    loop at screen.
    case screen-field.
    **if input disable
    when 'SMALLOG'.
       screen-input = '0'.
       clear smalllog.
    endcase.
    modify screen.
    endloop.
    loop at screen.
    case screen-field.
    **if inivisible
    when 'SMALLOG'.
       screen-invisible = '1'.
       clear smalllog.
    endcase.
    modify screen.
    endloop.
    Message was edited by: Vijay Babu Dudla

  • How to make Visible and Invisible using a Button?

    hi!... I've a Text3D using Oriented3D object and I would like to know how to make it visible and invisible by clicking a button.
    I know there is a function, setVisible() in RenderingAttributes, which can be set by the object's Appearance.
    Since I want to use a button to change the object's appearance, I need to change it in the button's actionPerformed function, but it has thrown an exception:
    "Shape3D: no capability to set appearance".
    I'd tried using those setCapability flags... but still nothing...
    Could someone help me please?...
    Thanks

    When you create Shape3D, setAppearance to it and
    setCapability(ALLOW_APPEARANCE_READ).
    For the Appearance, you should setCapability(
    ALLOW_RENDERING_ATTRIBUTES_READ).
    For the RenderingAttributes, you should setCapability(
    ALLOW_VISIBLE_WRITE).
    So in the button event handler,
    shape.getAppearance().getRenderingAttributes().setVisible(true/false).
    Now you can control the visiblity of Text3D

Maybe you are looking for

  • Which Hard Drive for MacBook Pro 5,5?

    Hi everybody! I bought a brand new MacBook Pro 5,5 (13,3", 2.53GHz C2D, 4GB RAM, 250GB HD) from an iStore on December 2009. It was a Xmas present from me to myself. I use it mainly for music-video recording and editing with Logic Express, Final Cut X

  • System Landscape directory not available error,

    I am still a beginner, and I am having some slight trouble understanding, what tools would be needed, and how to install. I am using the forums. We have the MII Discovery Server up and running. NWDS Server installation is done. We have the MII track

  • I have a cd with scans of a document. How do I convert to a pdf document?

    I want to convert the contents of a cd to a pdf document. I am new to this and the first time I have attempted this. Any help is greatly appreciated.

  • Will there be a macbool pro with matte display ?

    will there be a macbool pro with matte display ? if not - how to change the exisiting display to a matte display ... ? thx hl

  • Net Sales by Location

    Hi, I need a sales report by Date and locationwise and the report should contain the Credit Memos(Needs to be deduct from the Sales). Any Custom query please reply. Regards, Santhosh