How to disable disclosureClosedIcon on a tree for a particular node ?

How can I selectively disable the disclosureClosedIcon in  front of a particular tree node and leave the other tree nodes unaffected. If I do myTree.setStyle("disclosureClosedIcon",null);
Then the whole tree is affected. Please look at the code below.
<?xml version="1.0" encoding="utf-8"?> 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.events.ListEvent; 
import mx.controls.Alert; 
import mx.events.TreeEvent;[
Bindable] 
public var selectedNode:XML; 
public function myTreeOpening(event:TreeEvent):void { 
//How to do the following selectively just for one node. For example if I want to just disable
//further opening of "Marketing" node and leave the other two
Alert.show(
"Trying to disable the disclosureClosedIcon just for the Marketing node"); 
//myTree.setStyle("disclosureClosedIcon",null);
]]>
</mx:Script>
<mx:XML
id="treeData">
<node label="Mail Box">
<node label="Inbox">
<node label="Marketing">
<node label="Professional"/>
<node label="Individual"/>
<node label="team"/>
</node>
<node label="Product Management">
<node label="Professional"/>
<node label="Individual"/>
<node label="team"/>
</node>
<node label="Sales">
<node label="Professional"/>
<node label="Individual"/>
<node label="team"/>
</node>
</node>
</node>
</mx:XML>
<mx:Panel
title="Tree Control Example" height="75%" width="75%" paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
<mx:Label width="100%" color="blue" text="Select a node in the Tree control."/>
<mx:Tree id="myTree" width="50%" height="100%" labelField="@label" showRoot="
false" dataProvider="{treeData}" itemOpening="myTreeOpening(event)"/>
</mx:Panel>
</mx:Application>

Thank you
but I don't want to modify the underlying xml data by adding isBranch on the node. I just want to modify the display of the data on Tree. The reason is that the xml data is retrieved from database and I can not  modify the XML.

Similar Messages

  • How to disable the Language dependent option for 0PROJECT and 0WBS_ELEMT

    Hi Friends,
                Some Info Objects are re installed in latest version that's why DBW and QBW is not sinked. that's why giving transports errors.
               In DBW both Info Objects(0PROJECT and 0WBS_ELEMT) having the option text language dependent is checked. I go for disable that option it is not accepting to disable.
              when i am going to delete the data from both the info objects it's not deleting the data from both the objects. it is giving message some master data is not deleting.
           Please give me solution for this how to disable text language dependent option for both the objects.
       I am waiting for your valuable replies.
    Thanks,
    Guna.

    Hi Rajesh,
              i did that changes in RSD1 but not accepting that change.
    It is showing the error message for The Text Table /BI0/TPROJECT must be converted incompatibly with an activation of characteristic 0PROJECT (changes to the key in the table). Table /BI0/TPROJECT contains data. Parts of this data were lost in the conversion.
    Please give me help for solving this issue.
    Thnaks,
    Guna.
    Edited by: gunasekhar raya on Mar 24, 2009 11:58 AM
    Edited by: gunasekhar raya on Mar 24, 2009 5:42 PM
    Edited by: gunasekhar raya on Mar 24, 2009 5:43 PM

  • How to display complete menu tree for a particular SAP user in UI5

    Hi Experts,
    I am trying to display menu tree for a particular SAP user on click of button placed in shell content.
    I am referring this link
    Displaying the Complete Menu Tree - User Interface Add-On for SAP NetWeaver - SAP Library
    But I am not getting the exact process.
    Can anyone please provide some help.
    Thanks in advance.

    >
    cranjith kumar wrote:
    > I am displayed a user name and password columns in
    > screen painter.if i will not fill any one of the two fields
    > means then a message will be display.
    > My requirement is if i wont fill the "username field"
    > means then the cursor should not move to the
    > "password"  field (i.e we should not able to enter passwords)
    > and a message should be displayed to indicating that
    > user name is invalid.
    > Kindly send me the coding for this one immediately.....
    How about you immediately try to figure it out for yuorself?  Read the SAP help on screen development and search these forums.  Here's a hint, look at things like FIELD and CHAIN in your PAI...

  • How to set a default Billing type for a particular Delivery type

    Dear All,
    How to set a default billing type for a particular delivery type.
    My requirement is, we are creating delivery for a Stock Transport Order. Delivery type is NL and the Purchase order type is UB.
    When we are creating Billing, it should take Billing type "ZSTO" by default, which is the customised Billing type.
    Where we have to do this setting?
    In case of normal sales order, this control will be available in the Sales order document types.
    In case STO, how to set a default billing type for a delivery type (NL).
    Regards,
    Rajesh

    There is a customization available here no default or hard coded
    Normally in a sales doc type we mention which billing type system has to pick
    If the billing happens from a PO which billing type system will take depends on the controls set in the areas mentioned below
    Go to your delivery type OVLK (say your delivery type is NL)
    In that there is a field called default order qty in the order reference tab (say if you maintained DL there)
    This DL is called PSEUDO order type
    Then in VOV8 for DL based on the billing types mentioned ,system will take the billing doc
    For delivery related billing say if you mention say ZF8 in the details of DL in VOV8(provided you have created ZF8)
    Then while you bill the delivery doc of NL system will take ZF8
    For intercompany delivery you can create ZIV billing type also Pure customization
    PO is linked to delivery type ( MM spro settings)--Del type linked to order (pseudo) type---in order type (pseudo) we mention the billing types. Here the flow is bit different that pure SD flow
    Though the invoice is crated by manually putting customized Biiling Type and A/Cing doc also generated, but in the VF04 still system shows the same deliveries pending with Billing Type (F2).
    This manual is not reqd if the said assignments are done properly
    Hope it can assist you.
    Thanks & Regards
    JP
    Edited by: J Prakash on Jun 23, 2010 4:05 PM

  • How can i find the exact BADI For a Particular Transaction

    hi ppl,
    How can i find the exact BADI For a Particular Transaction. Is there any Standard transaction or Programs to do this or suggest some other way.

    Use this code:
    *& Report  ZGET_BADI
    REPORT  ZGET_BADI.
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    *Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    *Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    *For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.
    Regards
    Vinayak

  • How to disable the option of Resart for application error in SXMB_moni

    Hi Experts,
    I have a scenario of JDBC to Proxy.In this we have created Fault message type to capture any error.The requirement is to disable the option of Restart in SXMB_MONI for application error generated with Fault message.We have made coding for generating application error in inbound proxy code.Looking for a quick reply.
    Thanks
    Deepak

    Hi Mayank,
    I am looking for disabling the "Application Error" generated from Fault message of inbound proxy to "Resart" using Resart button in SXMB_moni of Application system ECC.what I am referring to is how to disable u201Crestartu201D (not resend) of the messages in SXMB_MONI if they have errors.
    For example, the interface to load some entries calls a proxy which may load some messages successfully and some may result in errors. This would appear in the SXMB_MONI with application errors with restart capability. If the user restarts the message it will post the entries again which were successfully posted earlier. We would like to prevent this from happening.
    Thanks
    Deepak
    Edited by: deepak jaiswal on Mar 2, 2010 5:19 PM

  • How to disable drag and drop feature for a document library?

    Hi
    How can I disable drag and drop feature for a document library? Do I have an option to disable it from the SharePoint's feature set?
    Or can I disable it using a script? If so, how?
    Regards
    Paru

    Hi,
    According to your post, my understanding is that you want to disable drag and drop feature for a document library.
    Drag and drop in SharePoint 2013 is a feature that depends on HTML5, which requires version of browser, SharePoint by default doesn’t has feature to disable or enable this.
    You can try disabling the drag and drop feature by disabling an add-on in Internet Explorer, or
    using Internet Explorer 9 or lower.
    Here is a similar thread for your reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/8961ff07-039d-47b0-ae7d-8e24af96234a/2013-doc-library-settings-turn-off-drag-and-drop-and-findsearchfilter-on-metadata-columns?forum=sharepointcustomization
    http://community.office365.com/en-us/f/154/t/228079.aspx
    More information:
    The Solution to SharePoint 2013 Drop and Drag Not Working
    SharePoint 2013 Drag and Drop Upload Not Working
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to disable Private Browsing on Firefox for Android

    I disabled Private Browsing and deletion of History on Firefox for the lap top using extension Disable Private Browsing 1.9. How can I disable Private Browsing on Firefox for android?

    Hello,
    to know more about Private Browsing on a android device please visit [[Private Browsing on Firefox for Android]] article. Hope this will help you.
    Report us back if this works.

  • How-to: Disable syncing of document library for individual users or groups

    Currently, as far as I know, disabling syncing for a document library is all or nothing - everyone with access can sync, or nobody can sync.
    Ideally, there would be an independent list permission, "disable syncing," which appears when assigning permissions to a permission level.  (Syncing is allowed by default if access to document library is granted, opposed to an alternative
    approach of having "enable syncing" which would set the default the other way).
    Given that this level of granularity is not provided out of the box (yet?),
    is there any way (SPD?) to disable syncing for individuals?  (Or to disable syncing for the entire library, then enable syncing to individual users?  Depends on who there is more of, 'syncers' or 'nonsyncers'.)
    * I know that syncing can be disabled across the board.  This is not an option.
    (2) "Open with Explorer" seems to be tied in with syncing, disabling syncing disables "Open with Explorer".  Is there a way to keep "Open with Explorer" functionality while disabling syncing?

    Hi,
    According to your post, my understanding is that you want to disable sync option in library.
    To disable sync option, and keen the open with explore option, we can use the JavaScript to achieve it.
    I have made a code demo below to disable sync option for a particular user, it works like a charm, you can modify it to fit your scenario.
    <script src="../jquery-1.11.0.min.js" type="text/javascript"></script>
    <script src="../jquery.SPServices-2014.01.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    var userid= _spPageContextInfo.userId;
    var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/getuserbyid(" + userid + ")";
    var requestHeaders = { "accept" : "application/json;odata=verbose" };
    $.ajax({
    url : requestUri,
    contentType : "application/json;odata=verbose",
    headers : requestHeaders,
    success : onSuccess,
    error : onError
    function onSuccess(data, request){
    var loginName = data.d.Title;
    //alert(loginName);
    if(loginName=="Administrator"){
    $("a[id='ctl00_SyncPromotedAction']").hide();
    function onError(error) {
    alert("error");
    </script>
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to disable the dashboard and spotlight for the latest Iion OS

    How to disable the dashboard and sportlight function in the latest Mac OS?

    to disable spotlight, open the terminal and type "sudo mdutil -a -i off" without the quotes. ( You will be prompted to enter your admin password.)
    to disable dashboard:
    Open Terminal, and then type this command, followed by the Return key:
    defaults write com.apple.dashboard mcx-disabled -boolean YES
    This tells the system that you no longer wish to have Dashboard available. However, the Dashboard task is actually “owned” by the Dock, so to make your changes take effect, you need to restart the Dock. The easiest way to do that is to type this command into the Terminal (and press Return when done):
    killall Dock
    After the Dock restarts, hit F12 and you’ll see…nothing at all. If you run Activity Monitor, you also won’t find any Dashboard widgets in the list of tasks, even if you had several open when you ran the above command.

  • How to get the connected Adapter Object for a particular BDoc Type?

    Hi All,
    I have a scenario in which CRM system is connected to ERP system.
    In SMW01 transaction, I can see one BDoc with BUS_TRANS_MSG as the BDoc Type in CRM.
    Now, how do I get to know if this one BDoc is a SALESDOCUMENT or SALESCONTRACT.
    Is there any way thorough which I can get to know the Adapter Object for this particular BDoc.
    Regards,
    Madhuri

    Hi Madhuri,
               Happy new year.
    In Transaction : R3AC1.
    You can observe the Linked BDOC for the adaptor objects. For example Sales docuemnt and Sales contrcat will have the same linked BDOC as "BUS_TRANS_MSG".
    If you see an error in SMW01, you want to find whether it is salesdocument or contract.
    1. Please take the Queue name from SMW01.
    from the queue name you can find whether it is sales contract or sales document.
    Queue name is customized in tables: SMOFQFIND.
    I hope this helps you.
    regards,
    Sri...

  • How to Validate or test SJW parameter For HS CAN Node?

    Hi All,
    To paraphrase the Question asked in the post, If the CAN parameters for Baud rate, Tq, BRP ,Prop Seg 1, PRop Seg 2 are all programmed with proper Tq. How to test them ?
    I have worked on CAN Stress Tool to test Sample point of a  CAN Bit for a HS Node  I achieved this by disturbing a Transmit message from the ECU at Tq level and confirm the sampling point by observing Stuff ERRORs ( for the HS node chosen, NBT -  was 16 Tqs)
    However, please share information in case any one had tested/ Validate SJW parameter for a CAN node. 
    Please also  provide information on Bench setup/ Test Steps if any required.
    Tq- Time Quanta
    BRP -Baud Rate Prescalar
    HS-High Speed
    NBT - Nominal Bit Time
    Thanks,
    Gouri

    Hi All,
    To paraphrase the Question asked in the post, If the CAN parameters for Baud rate, Tq, BRP ,Prop Seg 1, PRop Seg 2 are all programmed with proper Tq. How to test them ?
    I have worked on CAN Stress Tool to test Sample point of a  CAN Bit for a HS Node  I achieved this by disturbing a Transmit message from the ECU at Tq level and confirm the sampling point by observing Stuff ERRORs ( for the HS node chosen, NBT -  was 16 Tqs)
    However, please share information in case any one had tested/ Validate SJW parameter for a CAN node. 
    Please also  provide information on Bench setup/ Test Steps if any required.
    Tq- Time Quanta
    BRP -Baud Rate Prescalar
    HS-High Speed
    NBT - Nominal Bit Time
    Thanks,
    Gouri

  • How to retrieve the Sapscript layout changes for a particular Transport request in development server after this Transport request so many requests created  ?

    Dear Abapers,
    I request the Abapers kindly reply for this blog
    I want to retrieve the sapscript layout changes for a particular transport request in development server after that many transport request created and moved to quality ? 
    I checked in SE03 transaction the transport request was there.  But I want to retrieve the existing transport request which is not moved to Quality?
    Is it possible to retrieve the existing transport request in development which is not moved to quality ?
    Like how we retrieving the programs using versions in development server,  In the same way I want to retrieve the sapscript layout in development server ?
    Thanks & Regards
    Muzeebur Rahiman.S

    Hi,
    There is no version management for SapScript or Smartforms .
    When you write "transport request in development which is not moved to quality" - was the transport ever released and exported from the development system? If yes, and if the "Transport files" are still available in "Transport directory" (or if the transport files were backed up and could be retrieved), the transport could be imported again. If the TR was not exported, you are out of luck, I believe...
    I would not recommend you do it on your own even if you happen to have enough authorizations (consult with Basis and/or Transport Admin, if you have one in your organization). I would not recommend that it's imported on a development system or QA system, even if the transport contains no other objects - only the SapScript form in question. Import it on a "sand-box" that gets overwritten by system copy from time to time... Once the transport is imported, you should have the old version of SapScript in that system and could analyse the changes and perform manual merge.
    cheers
    Jānis

  • How to find out the Queries Generated for a particular ods?

    Hi all,
    There are atleast 10 queries generated for a Particular ODs zyyyyy. I would like to know what are the queries generated for a particular ods.
    I have used the where use list of the ods. But it did not displayed the queries generated for that ods.
    I have looked at the bex query for that ods but cant find any query being generated on that ods??
    Is there any way to find out what are the queries generated for a particular ods?
    thanxs
    haritha

    Hello Haritha,
    Please follow the path.
    Go to RSA1 -> Metadata Repository ->DataStore Objects(ODS) -> Find you DSO(ODS) there and click on that, you will get all the details(Queries, Objects - Char, Key figures, update rules,etc..) related to that particular DSO(ODS), same is the case for Cube as well.
    Please assign points.

  • How to find out the set handler for a particular signal?

    I have an interesting puzzle to solve. l'm investigating problems with someone else's code and I'd like to get the name of the handler that is set for SEGV. psig shows that the process catches SEGV, however I don't have access to the source code for all the libraries it links against and none of the source code I have sets a handler for SEGV. Is there a way to find out the name of the signal handler that is set for a particular signal in a process? I'm sure the source was compiled with cc -g. Solaris 8

    Hello Haritha,
    Please follow the path.
    Go to RSA1 -> Metadata Repository ->DataStore Objects(ODS) -> Find you DSO(ODS) there and click on that, you will get all the details(Queries, Objects - Char, Key figures, update rules,etc..) related to that particular DSO(ODS), same is the case for Cube as well.
    Please assign points.

Maybe you are looking for

  • Why does my Macbook Pro make every flash drive read only?

    Anybody else having this problem? I can write to a flash drive once on my Macbook Pro. After I remove it, it becomes read-only, but only on my Macbook (I still have read/write access on other computers). Happens with every flash drive, regardless of

  • File adapter transport acknowledgement in Integration Process

    Hi,     I am working on a very complex integration process. In one of its part, a message is sent to the File Receiver and a Transport Acknowledgement is requested. From what I read, I still don't get it how to check in the integration process if eve

  • Hp color sphere laser jet cm 1015

    Everytime I try to print a color copy it comes up  COLOR RESTRICTED. How do I fix this so I can make color copies?

  • Using the SciLab LabVIEW gateway

    Has anyone had any success running commands through the SciLab Scripting Node that are avaialble through an installed module in SciLab?  I am trying to run a command (emd) that is available through the EMD ToolBox, but am getting an error (Error 1050

  • Olympus E-30 and RAW 5.6

    I have finally managed to get RAW 5.6 intergrated with Elements 8 and can now open the "ORF" images, but only when I select that particular "ORF" file.. So my question is when using the "organiser" I have multiple "images" that show up as unconverted