A little change in my tree path function

Hello, I have a tree that receive this XML as data, and I want to know what is the path of one node, for example if I do click in Documentation I want to receive INBOX.Drafts.Flex.Documentation. I have a function to do that but I get that. [email protected] But id on't want the first node([email protected]). Here the xml and my function. What I have to change to get  INBOX.Drafts.Flex.Documentation?
<?xml version="1.0" encoding="UTF-8"?>
<Cuentas>
  <Cuenta id="cuenta1" label="[email protected]">
    <node label="INBOX" id="(2)">
      <node label="Drafts" />
      <node label="Flex" id="(49)">
        <node label="Codigo" />
        <node label="Documentacion" />
      </node>
      <node label="Sent" />
      <node label="Trash" />
    </node>
  </Cuenta>
  <Cuenta id="cuenta2" label="[email protected]">
    <node label="INBOX">
      <node label="Name">
        <node label="Surname" />
      </node>
      <node label="Carpeta1" id="(37)">
        <node label="Carpeta11" />
      </node>
      <node label="Trash" />
    </node>
  </Cuenta>
</Cuentas>
public function getRuta():String {
             var item:Object = newTree.selectedItem;
              ruta=item.@label
              while (true){
                   if (newTree.getParentItem(item) != null){
                       item=newTree.getParentItem(item)
                    ruta = item.@label + "." + ruta;
                   }else {break;}
               return ruta;
I think that the difference is small but I don't know how can I do. I have to say that the xml is not always the same, sometimes have 3 fathers, or 5 fathers or... I want something dinamic.
Thanks!

I want to know how can I change this if and say. If have parent && the parent isn't the 'root' or the node. I don't know how say the second condition.
if (newTree.getParentItem(item) != null) && ......
The second condition is because I don't want put the label of the main of the node ([email protected]) in the ruta String.
Thanks!

Similar Messages

  • Any change in the record path function in 8.02?

    Can you actually name the record path in 8.02 like we could in 7? Or is it still the same auto-name from track name nonsense that we have in 8.01? I saw no mention of it in the list from apple, but was hoping maybe they just left it off the list. I had to search for a misplaced file today and had to try to sort out 64 audiofiles that were called "Vince Ld Vx" from four different songs. I eventually was able to match the creation times with the hours I worked on the right song, but what a nightmare!

    Nope. They have not fixed it.
    I'm not sure they realize they need to fix it. But it's drivin me nuts the same way it apparently bothers you. Such a simple function, I can't believe they messed it up.
    Please - if any others out there are annoyed by the fact that file naming is so poorly implemented in L8, - leave more feedback for Apple. MAYBE they'll listen next time around...
    At the very least, it'd be nice if it worked like Final Cut Pro, which allows you to set a prefix for new files, so you can identify which project/song all your "lead guitar" tracks belong to.
    Grr.

  • Need help changing the default Save Path

    Hello,
    We are implementing SAP, and will be using Citrix as the source for the GUI.  One of our requirnments are, that we need to change the default "Save Path" that users save documents too.   By default, this is to the C drive, but, we need it set to a different drive (i.e. V: on the citrix server).
    We found this note on SDN (see below) - however, it does not explain how to change or add this registry value?  Is this done in the GUI options, or in regedit?  If in reg-edit, where abouts in the tree does it go?
    Thanks guys, and any help would be greatly appriciated.
    Richard
    (As of SAP GUI 7.20, patch level 4) the REG_EXPAND_SZ registry value InitSaveDir can be used to configure the default path and folder for users to save the reported information in case of an access denial due to security rules. If users change the default path and save the information to an individual location, this new path will be kept as long as the user does not terminate the program. When starting SAP GUI again, users will get the configured default path again to store the reported information, the individual path changes will be lost. If the registry value does not exist, the default directory is the document directory of the SAP GUI.
    By default none of the above registry values exists. In order to change the behavior of the security module, the registry values need to be created and set to the desired value. A not existing registry value means use the default.
    In this doc:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/002444be-7018-2d10-e18e-a8c537198ef6?quicklink=index&overridelayout=true

    Hi,
    "Security rules that are created for a large number of users can be centrally stored on a server by an administrator. The administrator can use the registry values below under the registry key
    [HKEY_LOCAL_MACHINE\Software\SAP\SAPGUI Front\SAP Frontend Server\Security]
    to configure the behavior of the security module.
    Note: For 64 bit operating systems please use the following registry key
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP\SAPGUI Front\SAP Frontend Server\Security]
    to configure the behavior of the security module."
    You can use regedit for installing this values.
    Best Regards,
    Aleh

  • A little change is required in the script, please help.

    I am using a script named as <Zoom to Width> that I found on web. This script does two jobs
    (1) zoom to a specific percentage
    (2) and center the page horizontally as well vertically at that zoom level.
    I have changed the zoom value to 170% in it. Now the problem is that when script center the page at 170% it shows the middle of the page (horizontal as well as vertical). I need horizontal center but not vertical center of page, so I have to move to the top of page by scrolling or by moving cursor. I want a little change in it that vertically top of the page should appear instead of the middle of page i.e.
    I want 170% zoom + horizontal page center + vertical page top.
    I would appreciate any help. I am on Windows 64bit. Here is the script
    //DESCRIPTION: Zooms to the width of currently selected object or the current page. http://www.in-tools.com
    ZoomToWidth();
    function ZoomToWidth(){
        var kAppVersion=parseFloat(app.version);
        try{
            if(File.fs == "Macintosh"){var isMac = true}
            else{var isMac = false}
            if(kAppVersion>=6 && app.generalPreferences.useApplicationFrame){
                var usesApplicationFrame = true;
            else{var usesApplicationFrame = false}
            var sel=app.selection[0];
            var window = app.activeWindow;
            if(! (window instanceof LayoutWindow) ){return}
            var doc = app.documents[0];
            var horizViewPrefs = doc.viewPreferences.horizontalMeasurementUnits;
            doc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
            var theWidth = doc.documentPreferences.pageWidth;
            var theHeight = doc.documentPreferences.pageHeight;
            var theSpread = window.activeSpread;
            var pagesLength = theSpread.pages.length;
            if(isMac){
                var windowWidth = window.bounds[3]-window.bounds[1]-35;
                if(usesApplicationFrame){
                    window.zoom(ZoomOptions.fitSpread);
                    var spreadZoom = window.zoomPercentage;
                    windowWidth = (spreadZoom/170)*(theWidth*pagesLength);
            else{
                var windowWidth = window.bounds[3]-window.bounds[1]-50;
                if(usesApplicationFrame){//|| pagesLength>1 || theWidth>theHeight
                    window.zoom(ZoomOptions.fitSpread);
                    var spreadZoom = window.zoomPercentage;
                    windowWidth = (spreadZoom/170)*(theWidth*pagesLength);
            if(sel && (sel.hasOwnProperty("parentTextFrames") || sel.hasOwnProperty("visibleBounds")) ){
                if(sel.hasOwnProperty("parentTextFrames")){
                    var textFrame = sel.parentTextFrames[0];
                    var frameBounds = textFrame.visibleBounds;
                    app.select(sel.parentTextFrames[0]);
                else{frameBounds = sel.visibleBounds}
                theWidth = frameBounds[3]-frameBounds[1];
            else{window.zoom(ZoomOptions.fitPage)}
            window.zoomPercentage = (windowWidth/theWidth)*170;
            doc.viewPreferences.horizontalMeasurementUnits = horizViewPrefs;
            app.select(sel);
        catch(e){}

    Hi,
    Basically your function is zooming base to width (selected object or window) so instead of modifying I suggest to create a new a "base to scale" function.
    To keep top window content shown after scaling one can use a trick and select temporalily created object in a center (remove it after), so:
    function zoomToScale(myScale) {
      if (isNaN(myScale) || myScale > 4000 || myScale < 4) myScale = 100;
      var
      window = app.activeWindow,
      mDoc = app.activeDocument,
      mZeroPoint = mDoc.zeroPoint,
      mHorizViewPrefs = mDoc.viewPreferences.horizontalMeasurementUnits,
      mActiveSpread = window.activeSpread,
      mSpreadPages = mActiveSpread.pages.length,
      mWidth, theRec, mTopCenter;
      mDoc.zeroPoint = [0,0];
      mDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      mWidth = mDoc.documentPreferences.pageWidth;
      theRec = mActiveSpread.rectangles.add();
      mTopCenter = mWidth*mSpreadPages / 2;
      theRec.move(undefined,[mTopCenter,0]);
      window.zoom(ZoomOptions.fitSpread);
      window.zoomPercentage = myScale;
      app.selection = theRec;
      theRec.remove(); 
      mDoc.zeroPoint = mZeroPoint;
      mDoc.viewPreferences.horizontalMeasurementUnits = mHorizViewPrefs;
    call it i.e. this way:
    zoomToScale(170);
    myScale is reset to 100 if it is out of range or is not a number
    Jarek

  • Is there a similar function in Edge Animate that is similar to the draw path function in After Effects?

    Is there a similar function in Edge Animate that is similar to the draw path function in After Effects?

    No, I'm afraid not.  However, you can drop a clip from in to out into the timeline and the hit CMD+R and grab the end, changing the length of the clip to fit in the space that you need by speeding up the clip.
    Hope that helps.
    Andy

  • Edit code for change drive letters in paths for links, to also work with Fonts that have been moved.

    I have the following code that looks through my links and changes all of the drive letters to the new locations where they exist.  So if something stays in the same folder structure, but moves to a new drive E: and InDesign can not longer find it, you can run the code and have it fix them all.
    Well I want to do the same but for fonts that have also moved.
    Thank you in advance for any and all help!
    if (app.documents.length == 0) {
        err("No open document. Please open a document and try again.", true);
    if (File.fs != "Windows") {
        err("This script is for Windows only.");
    var myDoc = app.activeDocument;
    var myLinks = myDoc.links;
    var myCounter = 0;
    if (myLinks.length == 0) {
        err("This document doesn't contain any links.", true);
    var mySettings = CreateDialog();
    for (i = myLinks.length-1; i >= 0 ; i--) {
        var myLink = myLinks[i];
        if ( myLink.status == LinkStatus.LINK_MISSING || (myLink.status != LinkStatus.LINK_MISSING && mySettings[2] == false) ) {
            var myOldPath = myLink.filePath;
            var myNewPath = myOldPath.replace(mySettings[0] + ":\\", mySettings[1] + ":\\");
            var myNewFile = new File(myNewPath);
            if (myNewFile.exists) {
                myLink.relink(myNewFile);
                try {
                    myLink.update();
                catch(e) {}
                myCounter++;
    if (myCounter == 1) {
        alert("One file has been relinked.", "Finished");
    else if  (myCounter > 1) {
        alert(myCounter + " files have been relinked.", "Finished");
    else {
        alert("Nothing has been relinked.", "Finished");
    function err(e, icon){
        alert(e, "Change drive letter in path", icon);
        exit();
    function CreateDialog() {
        var myDrives = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "y", "Z"];
        var myDialog = new Window("dialog", "Change drive letter in path");
        var myPanel = myDialog.add("panel", undefined, "");
        myPanel.orientation = "column";
        myPanel.alignChildren = "left";
        var myGroup = myPanel.add("group");
        myGroup.orientation = "row";
        var myStText1 = myGroup.add("statictext", undefined, "Change ");
        var myDropDownList1 = myGroup.add("dropdownlist", undefined, myDrives);
        if (app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl1") != "") {
            myDropDownList1.selection = myDropDownList1.items[app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl1")];
        else {
            myDropDownList1.selection = myDropDownList1.items[2];
        var myStText2 = myGroup.add("statictext", undefined, " to ");
        var myDropDownList2 = myGroup.add("dropdownlist", undefined, myDrives);
        if (app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl2") != "") {
            myDropDownList2.selection = myDropDownList2.items[app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl2")];
        else {
            myDropDownList2.selection = myDropDownList2.items[3];
        var myCheckBox = myPanel.add("checkbox", undefined, "relink only missing links");
        if (app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_checkbox") != "") {
            myCheckBox.value = eval(app.extractLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_checkbox"));
        else {
            myCheckBox.value = true;
        var myButtonsGrp = myDialog.add("group");
        var myOkBtn = myButtonsGrp.add("button", undefined, "Ok", {name:"ok"});
        var myCancelBtn = myButtonsGrp.add("button", undefined, "Cancel", {name:"cancel"});
        myOkBtn.onClick = function() {
            if (myDropDownList1.selection.index == myDropDownList2.selection.index) {
                alert("Both drive letters should not be the same.", "Change drive letter in path");
            else {
                myDialog.close(1);
        var myDialogResult = myDialog.show();
        if (myDialogResult == 1) {
            app.insertLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl1", myDropDownList1.selection + "");
            app.insertLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_Ddl2", myDropDownList2.selection + "");
            app.insertLabel("Kas_UpdatePathNamesAfterDriveLetterChange_3.0_checkbox", myCheckBox.value + "");
            return [ myDropDownList1.selection.text, myDropDownList2.selection.text, myCheckBox.value ];
        else {
            exit();

    ok, so I have discovered where the issue came from...
    The code you helped me with before, were I removed all links and my link character styles that I had (found here: http://forums.adobe.com/message/5881440#5881440)
    Well it set all the items I was finding/replacing to unknown fonts that my machine doesn't have (Like Helvetic Neue Bold, instead of just Helvetica Bold, etc).
    Is there an easy way of fixing this?
    The only way I know to fix it right now is:
    Go to Package >> go to Fonts >> Select the the font that says it's missing >> Select Find First >> CLOSE ALL OF THIS, then use the eye-dropper to select the text around that font which copies the formatting and then apply it to the text who's formatting got messed up.  And then start the process all over again for the next occurence of that word whose formatting got stripped.

  • ALV Tree using Function Modules

    Hi,
    I want a simple example of ALV Tree using Function Modules which can display multiple Columns in the Hierarchically arranged fashion along with nodes & icons.
    Also should be able to handle the events.
    Thanks in Advance..

    Hi Ramesh,
    Here is a example of alv tree
    *& Report  BCALV_TREE_DEMO                                             *
    report  bcalv_tree_demo.
    class cl_gui_column_tree definition load.
    class cl_gui_cfw definition load.
    data tree1  type ref to cl_gui_alv_tree.
    data mr_toolbar type ref to cl_gui_toolbar.
    include <icon>.
    include bcalv_toolbar_event_receiver.
    include bcalv_tree_event_receiver.
    data: toolbar_event_receiver type ref to lcl_toolbar_event_receiver.
    data: gt_sflight      type sflight occurs 0,      "Output-Table
          gt_fieldcatalog type lvc_t_fcat, "Fieldcatalog
          ok_code like sy-ucomm.           "OK-Code
    start-of-selection.
    end-of-selection.
      call screen 100.
    *&      Module  PBO  OUTPUT
    *       process before output
    module pbo output.
      set pf-status 'MAIN100'.
      if tree1 is initial.
        perform init_tree.
      endif.
      call method cl_gui_cfw=>flush.
    endmodule.                             " PBO  OUTPUT
    *&      Module  PAI  INPUT
    *       process after input
    module pai input.
      case ok_code.
        when 'EXIT' or 'BACK' or 'CANC'.
          perform exit_program.
        when others.
          call method cl_gui_cfw=>dispatch.
      endcase.
      clear ok_code.
      call method cl_gui_cfw=>flush.
    endmodule.                             " PAI  INPUT
    *&      Form  build_fieldcatalog
    *       build fieldcatalog for structure sflight
    form build_fieldcatalog.
    * get fieldcatalog
      call function 'LVC_FIELDCATALOG_MERGE'
           exporting
                i_structure_name = 'SFLIGHT'
           changing
                ct_fieldcat      = gt_fieldcatalog.
    * change fieldcatalog
      data: ls_fieldcatalog type lvc_s_fcat.
      loop at gt_fieldcatalog into ls_fieldcatalog.
        case ls_fieldcatalog-fieldname.
          when 'CARRID' or 'CONNID' or 'FLDATE'.
            ls_fieldcatalog-no_out = 'X'.
            ls_fieldcatalog-key    = ''.
          when 'PRICE' or 'SEATSOCC' or 'SEATSMAX' or 'PAYMENTSUM'.
            ls_fieldcatalog-do_sum = 'X'.
        endcase.
        modify gt_fieldcatalog from ls_fieldcatalog.
      endloop.
    endform.                               " build_fieldcatalog
    *&      Form  build_hierarchy_header
    *       build hierarchy-header-information
    *      -->P_L_HIERARCHY_HEADER  strucxture for hierarchy-header
    form build_hierarchy_header changing
                                   p_hierarchy_header type treev_hhdr.
      p_hierarchy_header-heading = 'Hierarchy Header'.         "#EC NOTEXT
      p_hierarchy_header-tooltip =
                             'This is the Hierarchy Header !'. "#EC NOTEXT
      p_hierarchy_header-width = 30.
      p_hierarchy_header-width_pix = ''.
    endform.                               " build_hierarchy_header
    *&      Form  exit_program
    *       free object and leave program
    form exit_program.
      call method tree1->free.
      leave program.
    endform.                               " exit_program
    *&      Form  build_header
    *       build table for html_header
    *  -->  p1        text
    *  <--  p2        text
    form build_comment using
          pt_list_commentary type slis_t_listheader
          p_logo             type sdydo_value.
      data: ls_line type slis_listheader.
    * LIST HEADING LINE: TYPE H
      clear ls_line.
      ls_line-typ  = 'H'.
    * LS_LINE-KEY:  NOT USED FOR THIS TYPE
      ls_line-info = 'ALV-tree-demo: flight-overview'.       "#EC NOTEXT
      append ls_line to pt_list_commentary.
    * STATUS LINE: TYPE S
      clear ls_line.
      ls_line-typ  = 'S'.
      ls_line-key  = 'valid until'.                          "#EC NOTEXT
      ls_line-info = 'January 29 1999'.                      "#EC NOTEXT
      append ls_line to pt_list_commentary.
      ls_line-key  = 'time'.
      ls_line-info = '2.00 pm'.                              "#EC NOTEXT
      append ls_line to pt_list_commentary.
    * ACTION LINE: TYPE A
      clear ls_line.
      ls_line-typ  = 'A'.
    * LS_LINE-KEY:  NOT USED FOR THIS TYPE
      ls_line-info = 'actual data'.                          "#EC NOTEXT
      append ls_line to pt_list_commentary.
      p_logo = 'ENJOYSAP_LOGO'.
    endform.
    *&      Form  create_hierarchy
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form create_hierarchy.
      data: ls_sflight type sflight,
            lt_sflight type sflight occurs 0.
    * get data
      select * from sflight into table lt_sflight
                            UP TO 200 ROWS .
      sort lt_sflight by carrid connid fldate.
    * add data to tree
      data: l_carrid_key type lvc_nkey,
            l_connid_key type lvc_nkey,
            l_last_key type lvc_nkey.
      loop at lt_sflight into ls_sflight.
        on change of ls_sflight-carrid.
          perform add_carrid_line using    ls_sflight
                                  changing l_carrid_key.
        endon.
        on change of ls_sflight-connid.
          perform add_connid_line using    ls_sflight
                                           l_carrid_key
                                  changing l_connid_key.
        endon.
        perform add_complete_line using  ls_sflight
                                         l_connid_key
                                changing l_last_key.
      endloop.
    * calculate totals
      call method tree1->update_calculations.
    * this method must be called to send the data to the frontend
      call method tree1->frontend_update.
    endform.                               " create_hierarchy
    *&      Form  add_carrid_line
    *       add hierarchy-level 1 to tree
    *      -->P_LS_SFLIGHT  sflight
    *      -->P_RELEATKEY   relatkey
    *     <-->p_node_key    new node-key
    form add_carrid_line using     ps_sflight type sflight
                                   p_relat_key type lvc_nkey
                         changing  p_node_key type lvc_nkey.
      data: l_node_text type lvc_value,
            ls_sflight type sflight.
    * set item-layout
      data: lt_item_layout type lvc_t_layi,
            ls_item_layout type lvc_s_layi.
      ls_item_layout-t_image = '@3P@'.
      ls_item_layout-fieldname = tree1->c_hierarchy_column_name.
      ls_item_layout-style   =
                            cl_gui_column_tree=>style_intensifd_critical.
      append ls_item_layout to lt_item_layout.
    * add node
      l_node_text =  ps_sflight-carrid.
      call method tree1->add_node
        exporting
              i_relat_node_key = p_relat_key
              i_relationship   = cl_gui_column_tree=>relat_last_child
              i_node_text      = l_node_text
              is_outtab_line   = ls_sflight
              it_item_layout   = lt_item_layout
           importing
              e_new_node_key = p_node_key.
    endform.                               " add_carrid_line
    *&      Form  add_connid_line
    *       add hierarchy-level 2 to tree
    *      -->P_LS_SFLIGHT  sflight
    *      -->P_RELEATKEY   relatkey
    *     <-->p_node_key    new node-key
    form add_connid_line using     ps_sflight type sflight
                                   p_relat_key type lvc_nkey
                         changing  p_node_key type lvc_nkey.
      data: l_node_text type lvc_value,
            ls_sflight type sflight.
    * set item-layout
      data: lt_item_layout type lvc_t_layi,
            ls_item_layout type lvc_s_layi.
      ls_item_layout-t_image = '@3Y@'.
      ls_item_layout-style   =
                            cl_gui_column_tree=>style_intensified.
      ls_item_layout-fieldname = tree1->c_hierarchy_column_name.
      append ls_item_layout to lt_item_layout.
    * add node
      l_node_text =  ps_sflight-connid.
      call method tree1->add_node
        exporting
              i_relat_node_key = p_relat_key
              i_relationship   = cl_gui_column_tree=>relat_last_child
              i_node_text      = l_node_text
              is_outtab_line   = ls_sflight
              it_item_layout   = lt_item_layout
           importing
              e_new_node_key = p_node_key.
    endform.                               " add_connid_line
    *&      Form  add_cmplete_line
    *       add hierarchy-level 3 to tree
    *      -->P_LS_SFLIGHT  sflight
    *      -->P_RELEATKEY   relatkey
    *     <-->p_node_key    new node-key
    form add_complete_line using   ps_sflight type sflight
                                   p_relat_key type lvc_nkey
                         changing  p_node_key type lvc_nkey.
      data: l_node_text type lvc_value.
    * set item-layout
      data: lt_item_layout type lvc_t_layi,
            ls_item_layout type lvc_s_layi.
      ls_item_layout-fieldname = tree1->c_hierarchy_column_name.
      ls_item_layout-class   = cl_gui_column_tree=>item_class_checkbox.
      ls_item_layout-editable = 'X'.
      append ls_item_layout to lt_item_layout.
      l_node_text =  ps_sflight-fldate.
      call method tree1->add_node
        exporting
              i_relat_node_key = p_relat_key
              i_relationship   = cl_gui_column_tree=>relat_last_child
              is_outtab_line   = ps_sflight
              i_node_text      = l_node_text
              it_item_layout   = lt_item_layout
           importing
              e_new_node_key = p_node_key.
    endform.                               " add_complete_line
    *&      Form  register_events
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form register_events.
    * define the events which will be passed to the backend
      data: lt_events type cntl_simple_events,
            l_event type cntl_simple_event.
    * define the events which will be passed to the backend
      l_event-eventid = cl_gui_column_tree=>eventid_expand_no_children.
      append l_event to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_checkbox_change.
      append l_event to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_header_context_men_req.
      append l_event to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_node_context_menu_req.
      append l_event to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_item_context_menu_req.
      append l_event to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_header_click.
      append L_EVENT to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_item_keypress.
      append L_EVENT to lt_events.
      call method tree1->set_registered_events
        exporting
          events = lt_events
        exceptions
          cntl_error                = 1
          cntl_system_error         = 2
          illegal_event_combination = 3.
      if sy-subrc <> 0.
        message x208(00) with 'ERROR'.                       "#EC NOTEXT
      endif.
    * set Handler
      data: l_event_receiver type ref to lcl_tree_event_receiver.
      create object l_event_receiver.
      set handler l_event_receiver->handle_node_ctmenu_request
                                                            for tree1.
      set handler l_event_receiver->handle_node_ctmenu_selected
                                                            for tree1.
      set handler l_event_receiver->handle_item_ctmenu_request
                                                            for tree1.
      set handler l_event_receiver->handle_item_ctmenu_selected
                                                            for tree1.
    endform.                               " register_events
    *&      Form  change_toolbar
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form change_toolbar.
    * get toolbar control
      call method tree1->get_toolbar_object
              importing
                  er_toolbar = mr_toolbar.
      check not mr_toolbar is initial.
    * add seperator to toolbar
      call method mr_toolbar->add_button
              exporting
                  fcode     = ''
                  icon      = ''
                  butn_type = cntb_btype_sep
                  text      = ''
                  quickinfo = 'This is a Seperator'.         "#EC NOTEXT
    * add Standard Button to toolbar (for Delete Subtree)
      call method mr_toolbar->add_button
              exporting
                  fcode     = 'DELETE'
                  icon      = '@18@'
                  butn_type = cntb_btype_button
                  text      = ''
                  quickinfo = 'Delete subtree'.              "#EC NOTEXT
    * add Dropdown Button to toolbar (for Insert Line)
      call method mr_toolbar->add_button
              exporting
                  fcode     = 'INSERT_LC'
                  icon      = '@17@'
                  butn_type = cntb_btype_dropdown
                  text      = ''
                  quickinfo = 'Insert Line'.           "#EC NOTEXT
    * set event-handler for toolbar-control
      create object toolbar_event_receiver.
      set handler toolbar_event_receiver->on_function_selected
                                                          for mr_toolbar.
      set handler toolbar_event_receiver->on_toolbar_dropdown
                                                          for mr_toolbar.
    endform.                               " change_toolbar
    *&      Form  init_tree
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM init_tree.
    * create fieldcatalog for structure sflight
      perform build_fieldcatalog.
    * create container for alv-tree
      data: l_tree_container_name(30) type c,
            l_custom_container type ref to cl_gui_custom_container.
      l_tree_container_name = 'TREE1'.
      if sy-batch is initial.
        create object l_custom_container
          exporting
                container_name = l_tree_container_name
          exceptions
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
        if sy-subrc <> 0.
          message x208(00) with 'ERROR'.                       "#EC NOTEXT
        endif.
      endif.
    * create tree control
      create object tree1
        exporting
            parent              = l_custom_container
            node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
            item_selection      = 'X'
            no_html_header      = ''
            no_toolbar          = ''
        exceptions
            cntl_error                   = 1
            cntl_system_error            = 2
            create_error                 = 3
            lifetime_error               = 4
            illegal_node_selection_mode  = 5
            failed                       = 6
            illegal_column_name          = 7.
      if sy-subrc <> 0.
        message x208(00) with 'ERROR'.                       "#EC NOTEXT
      endif.
    * create Hierarchy-header
      data l_hierarchy_header type treev_hhdr.
      perform build_hierarchy_header changing l_hierarchy_header.
    * create info-table for html-header
      data: lt_list_commentary type slis_t_listheader,
            l_logo             type sdydo_value.
      perform build_comment using
                     lt_list_commentary
                     l_logo.
    * repid for saving variants
      data: ls_variant type disvariant.
      ls_variant-report = sy-repid.
    * create emty tree-control
      call method tree1->set_table_for_first_display
         exporting
                   is_hierarchy_header  = l_hierarchy_header
                   it_list_commentary   = lt_list_commentary
                   i_logo               = l_logo
                   i_background_id      = 'ALV_BACKGROUND'
                   i_save               = 'A'
                   is_variant            = ls_variant
         changing
                   it_outtab            = gt_sflight "table must be emty !!
                   it_fieldcatalog      = gt_fieldcatalog.
    * create hierarchy
      perform create_hierarchy.
    * add own functioncodes to the toolbar
      perform change_toolbar.
    * register events
      perform register_events.
    * adjust column_width
      call method tree1->COLUMN_OPTIMIZE.
    ENDFORM.                    " init_tree
    regards,
    venu.

  • Having particles change to a bezier path

    Can someone give me an outline of how to take a particle template... (small flowers flying out of a hat), change from flying in the air to all following a bezier path that ends up being a child's cursive name. I have a great particle template spewing little tulips in to the air and they fly around for a few seconds. Now I need a particle to follow a bezier path and have the other particles follow. Once in a line.. like bees following each other, the flowers then draw a path that in turn ends up being a script name. If someone is willing to walk me through this, wonderful. If you need a bribe, I'd be willing to send or wire $20 to you for your time.
    Would love to hear from someone soon.
    Thank you!
    VW

    Dunno how you could change to follow a path, but you might add a second particle emitter that drops zero velocity flowers and send it on a motion path that writes out the name similar to:
    http://discussions.apple.com/thread.jspa?messageID=2683158&#2683158
    In that, I was using the particles as a mask, you'd just use the particles...
    post back,
    Patrick

  • [svn] 3256: More changes to get remote browser functionality working for MXUnit.

    Revision: 3256
    Author: [email protected]
    Date: 2008-09-18 09:14:24 -0700 (Thu, 18 Sep 2008)
    Log Message:
    More changes to get remote browser functionality working for MXUnit.
    Need to copy http client jars from trunk/lib to trunk/qa/lib as part of the build. The http client jars are used by MXUnit when the remote browser, browser factory is being used.
    Also need to copy xalan.jar from trunk/lib to trunk/qa/lib now as William recently made changes to MXUnit that added a dependency on xalan.jar.
    In mxunit/build.xml made the browserFactory class for the MXUnit task use a property called mxunitBrowserFactory so different browser factories can now be passed in.
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/build.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/build.xml
    blazeds/trunk/qa/build.properties
    blazeds/trunk/qa/resources/frameworks/qa-frameworks.zip

    Ah, interesting. Here's what I get when I boot with the old GeForce 7300 plugged in.
    System Profiler shows no extensions with "ATI" in the name. I'm not sure if this is to be expected though. Does System Profiler -> Software -> Extensions display the kexts installed on the system, or only those that the kernel decided to load at boot time? If the latter, I guess I wouldn't expect to see them. If the former, then might there be some registration step I need to do to tell the system that the ATI kexts are present and able to be loaded?
    As for the presence of the extensions, if I look in /System/Library/Extensions, I find the following files when I do an 'ls -lF | grep ATI'...
    ATI1300Controller.kext
    ATI1600Controller.kext
    ATI1900Controller.kext
    ATI2400Controller.kext
    ATI2600Controller.kext
    ATI3800Controller.kext
    ATI4500Controller.kext
    ATI4600Controller.kext
    ATI4800Controller.kext
    ATI5000Controller.kext
    ATIFramebuffer.kext
    ATIRadeonX1000.kext
    ATIRadeonX1000GA.plugin
    ATIRadeonX1000GLDriver.bundle
    ATIRadeonX1000VADriver.bundle
    ATIRadeonX2000.kext
    ATIRadeonX2000GA.plugin
    ATIRadeonX2000GLDriver.bundle
    ATIRadeonX2000VADriver.bundle
    ATIRadeonX3000.kext
    ATIRadeonX3000GA.plugin
    ATIRadeonX3000GLDriver.bundle
    ATIRadeonX3000VADriver.bundle
    ATISupport.kext
    So lots of ATI-related goodies. The dates are all either Aug 2 or Aug 6, so I'm guessing they came with the Snow Leopard Graphics Update, which I think was released just after those dates.
    I'm getting ready to return the card and try another, but will hold off another day or two, since it still seems plausible that there might be a software issue lurking...
    Thanks again for your help,
    Jerry

  • Is it possible to change the colour of Path segments/lijnes in PS CC?

    Hi all,
    Is it possible to change the colour of path segments/strokes in PS CC in order to make them more
    visible when used in eg B&W pictures??
    Thanks in advance!
    [Moving to Photoshop forum... JTS]

    No..
    It is not possible in scripts..
    In scripts u cannot use colors..
    In smartforms u can do that..
    reward if it helps u..
    sai ramesh

  • Proper way to make bulk changes the Owner ID, Path and file share credentials for my existing subscriptions, ExtensionSettings

    We are going through with an upgrade/migration to SSRS 2012 and moving everything to a different domain. We have about 200 active subscriptions running, the reports are being delivered to a file share.  What is the correct way, in bulk, to change
    the OwnerId, the Path and the FileShare Username password credentials for these subscriptions?  I see these values are being stored in Subscriptions > ExtensionSettings.  I see that the file share path and Owner wouldn't be a problem to change,
    but since I see the file share credentials are encrypted I would not be able change them directly in ExtensionSettings.  Anyone know the proper way to change the Owner ID, Path and file share credentials for my existing subscriptions without having to
    change each one of them manually in the report manager?
    Note: Reporting Services Native upgrade from SSRS 2005 to SSRS 2012.
    Thanks in advance.

    Hi Cygnus46,
    Based on my understanding, you want to change the Owner ID, Path and file share credentials for all existing subscriptions.
    In Reporting Services, the subscription information are stored in the Report Server database. In your scenario, you can go to report server database and run the query to list all the subscriptions, then modify the owner and fileshare paths in the subscriptions
    table. For more information, please refer to this article: Tip: Change the Owner of SQL Reporting Services Subscription. If you want to change
    the file share credentials for subscriptions, you can run the query provided by
    wiperzeus from this similar thread:
    Windows File Share Delivery/ SSRS 2008 R2.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Having to render every single little change I make!

    I know this has been asked before and discussed before and I've gone over every instruction that people have posted but I still have the problem of having to re render every single little change I make. If I shorten a clip I have to re render it if I move it a little to the left I have to re render it. Even making changes to one clip can then mean I have to re render all the other clips that I haven't even modified. I've done everything people suggest to do. I convert my footage to a format that FCE likes and will work with yet I still have to keep re rendering every little thing I do which makes the simple task of editing a music video together take forever.
    Can anyone please suggest anything that I may be missing as this is getting really frustrating!!??

    Cool, as soon as I can get back in front of my Mac I'll get that posted up for you. In the mean time I just thought I would post up the process I've been following and maybe you'll spot something that I'm doing wrong.
    Firstly the Camcorder I'm using films in 720p HD in mpeg4 H.264 format in widescreen/16:9. Now I read on another forum that the H.264 is no good for editing in FCE so I would need to convert to something compatible. I was pointed to a program called "Mpeg Streamclip" which is what I now use to convert to an acceptable format. If you are familair with the program the process I follow is to Open up the clip I want to convert and select the option "Export To QuickTime" It then gives me the options available for this. Firstly I choose DV-PAL from the dropdown list and then slide the quality slider up to MAX. The DV-PAL option defaults at 4:3 so in another dropdown menu I change that to 16:9 to preserve my widescreen. I then select "Make Movie" and it creates a copy in .mov format and DV-PAL. I have FCE setup to work with DV-PAL (all formats) as previously mentioned and from the instructions I've followed I should now be able to work with clips un hindered by having to re render.
    Now I am doing green screen footage and using the Chroma Key filter which I understand does need to be rendered but from what I have read I should only have to render once and from then on I should be ok without having to re render.
    I am very new to video editing and am a music engineer mainly but in the interest of being an independant artist I'm trying to do as much by myself as I can.
    Thanks for any help you can give, it will be much appreciated.

  • Msg server implementation with change in directory tree strcucture

    Hello all,
    Our organization is using directory server 5.1 and messaging server5.2.Our company is going for a change of directory tree structure.Can anybody please tell me whether for this change of directory tree structure we will have to again go for a reinstall of our messaging servers.Is there a way by which present messaging servers can be made to operate with new directory server with revamped directory tree structure.We are not going to upgrade to a new version of either directory or messaging server.

    The "schema 1" that 6.0 supports is the two tree system.
    Schema 2 is single tree. You may be able to go that direction, BUT this road is not well documented. There's really no "schema guide" the way there is for 5.2 and "schema 1".
    You can certainly download and install 6.1, and provisioin some test users, and see what it does.
    The mailstore has had only minor changes gooing from 5.1 to 5.2 to 6.0 to 6.1, and the server should automatically and invisibly upgrade as you go.
    the queue is incompatible, so you will need to clear the queue before you upgrade.

  • How to create software request form using Info path functionality?

    Hi All,
    i am trying to create a Software Request Form using Info path functionality. Following are the steps:
    1. Users will fill out the form with all necessary fields.
    2. once they click on Submit button, it will send an email to two specific groups with a link so that they can see the form and Approve/Deny or can put comments on that.
    Thanks in advanced!

    Hi Rakib,
    There are many ways you can achieve this.
    Either by Creating a SharePoint list and then modify it using InfoPath to get all your required fields added
     or
    Use InfoPath application and select any template or blank form template to get all your required fields added and then publish it to SharePoint site
    For the second step you can create an OOTB workflow which can send email to view an approve items using Approval workflow feature
    For the advance notification you can use SPD workflows as well.
    Refer this article for more on InfoPath and SPD integration - http://gallery.technet.microsoft.com/office/Step-By-Step-build-30f84363
    Let us know if this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Changing the direction of path

    1.  Create patch or object
    2.  Add art brush
    3.  Changing the direction of path ON or OFF

    Absolutely... this is something I have tried to work out. There are some complicated work around, such as break the path. That works but if the object needs to retain a fill, weird things can happen. I usually copy and paste in front, break the path, then reverse path direction.

Maybe you are looking for

  • Executing Operating system commands in ABAP

    Hi I want to execute a unix operating system command in an ABAP program. I remember seeing code which executes an operating system command. Could any please let me know about that code? Thank You. Eswar

  • Can we install BD - ROM in MacBook Pro 2007

    Just wondering if we can swap internal super drive with any (if any) available Internal BD-ROM drive for MacBookPro !

  • How to export data using application adapter for EBS?

    my scenario is : there're some external apps need to communicate with EBS, and the intermedia layer supposed to be implemented by SOA suite/Fusion adapters. my confusion is: in oracle integration repository, most of APIs are CUD (create, update, dele

  • Calendar Sync Problem: Database cannot be accessed

    Hi all, I'm so frustrated with this sync for blackberry! I have been trying to sync iCal with my bb curve 8330. Everytime I try, it says "The database for synchronization cannot be accessed. Refer to article KB19454 in the blackberry for mac desktop

  • Difference between Durable and Transient Processes

    According to the BPEL Administrator Guide it mentions on p.3.2 that "The synchronous process you design in JDeveloper BPEL Designer is an example of a transient process" - hence no dehydration activity. However below it mentions that a Durable proces