Adding Branch to tree runtime

Hi..All!
I am using tree controll. I want to allow user to add item to
seleceted node runtime.
I m using a button to add or remove child. On clicking of add
button child should be added to selected node.
Thanks In advance
Vishal

Thank you for you answer. I have a custom repository with no Taxanomy table.
May be that's why the "Add Branch" option was disabled.
Now the question is, Why do you need to have a Taxonomy to enable the "Add branch" feature?
Here is my scenario:
I want to run series of Assignments.
I defined 5 assignments. Thought that I can use MDM Workflow to call them in series. However MDM Workflow does not let me connect one Assignmen Task to next Assignment Task. So though Branched Assignment would be helpful.
However looks like can not use "Add Branch" to assignment to run them in series.
May be I will put a new post.
Abhay

Similar Messages

  • Problem in getting IControlView of IconSuiteWidget which is added in the tree resource

    Hi friends,
    I am facing following problem while working with Tree Widget.
    Please guide me regarding this issue.
    I have added IconSuiteWidget to the tree resource in .fr file.
    Now I wish to hide it after user clicks on the node. I have written
    code for this in the file which is implementation of
    (classTreeObserverImpl) ClassTreeObserver, aggregated on the boss
    class kXXTreeViewWidgetBoss which inherits from the
    kTreeViewWidgetBoss. But I am not getting IControlView of the
    IconSuiteWidget . The work which I have done to get IControlView
    pointer is through using IWidgetParent interface.
    Could anybody tell me which step i am missing, because I am getting
    IControlView of the RollOverIcon which is placed aside of
    IconSuiteWidget(in the resource of tree).
    Please help me regarding this issue,
    Thanks in advance.
    Vijay Choudhari.

    Use IControlView* QueryWidgetFromNode ( const NodeID & node )
    .So the task before you is gettting the NodeID..
    You can get it from ..
    NodeID_rv id = TrvNodeID::Create();
    NodeID nodeID(id);
    Once you get the controlview of the node widget you can get the controlview of any of its child widget by gettting its IPanelControldata..
    Hope this helps..
    regds,
    yopangjo

  • Adding new tests at runtime?

    I am considering using TestStand but need to do the following ; Develope a test sequence or suite that will test a base UUT configuration and deploy this as a test application. The UUT configuration can vary hardware wise. It will sometimes consist of just the base configuration and other times it will take on different forms, but alway contain the base configuration.  I would like to then develope other deployable TestStand tests, that depending on the UUT configuration could at run time be added to suppliment the base configuration tests or could at least be executed as well under programatic control of the original TestStand application. 
    In LabWindows I can do this pretty easily with a Plug In type architecture. The base application would support the base UUT tests. If it is discovered at runtime that the UUT is base config plus optional components, the base application will load one of several possible supplemental test DLL's that will programatically add new tests to the base application, inserting them into the test sequence. It can also programatically modify the base apllication UI.
    So I guess the question is : Can a deployed TestStand application modify it's test sequence with additional new tests at run time. The new tests would be unknown at the time the TestStand application is built and deployed.
    Thanks alot
    JeffM

    Jeff, I like the idea of using a sub-sequence that uses an expression to load a sequence file.  You would have a main sequence that gets deployed to test the base unit.  In this main sequence you have an expression that creates an array of sequence file names based on the options on the UUT.  Then create a loop around a Call Sequence File step.  This call sequence file is set to dynamically load a file.  I have attached a demo of this method.
    To implement this, you would need to come up with a standard for option sequence file names so your main sequence would be able to find them.  A property file with an array of structures that describe each sequence file might work, but this would need to be updated with every new option.  Even better would be a step that can index the sequences in a specific directory and create this array of structures dynamically.  The structure would contain the filename and the option that it tests.
    This is something that I put together in about 10 minutes this morning.  The report looks a little ugly...  If you implement any of the above ideas or have improvements please let me know.  This is an interesting set up. 
    I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
    Attachments:
    PlugInDemo.zip ‏18 KB

  • DisclosureIcon on empty branches in Tree

    Hello,
    I'm trying to display XML data in a tree. Because of the way
    the XML looks, I needed to write a custom data descriptor (I'll
    explain the XML structure at the end of the post) with custom
    hasChildren and
    isBranch methods.
    Now I've got the problem that everything works fine, but
    empty branches will still have the disclosure icon displayed. So
    apparently the data passed to the default itemRenderer is not
    "delivered" by the data descriptor - or the data descriptor
    delivers something to the renderer in a way that's incorrect.
    Either way, the TreeItemRenderer will show
    _listData.hasChildren to be true, while the data
    descriptor's
    hasChildren will show it to be false.
    Assuming the data descriptor is okay, is there any way to
    access the original XML from within a custom treeItemRenderer so
    that I can "check for children myself"?
    (on a second issue, I would also need to display a specific
    image with each tree leaf, depending on how an XML attribute of the
    leaf is set - similar to the Windows Explorer showing different
    icons for different file types - again, this would only work if I
    had access to the XML structure from within the renderer)
    Any help is much appreciated,
    cheers,
    Fabian
    XML Structure:
    Branches and Leaves are both received as <folder> tags.
    Both leaves and branches can have <property> tags, which are
    not to be displayed. The only difference between a branch and a
    leaf is that the leaves have a <property
    name='url'>url</property> tag, while the branches do not
    have property tags with a "name" attribute set to "url".
    Example:
    <folder id="thisIsTheRootFolder>
    <property name="someProp">someValue</property>
    /not to be displayed at all
    <folder id="firstSubfolder">
    /this should be an empty subfolder
    <property
    name="someOtherProp">someOtherValue</property>
    </folder>
    <folder id="secondSubfolder">
    <folder id="thisIsALeaf">
    <property name="url">
    http://www.adobe.com</property>
    </folder>
    </folder>
    </folder>

    Nodes of the tree are represented by the TreeDataProvider
    control. For each node in the tree, the TreeDataProvider control
    can define the following properties:
    data - The data to associate with a node, if any.
    label - The text to be displayed in the Tree for a node.
    isBranch - If true, the node is a branch: if false, it is not
    a branch. If not specified, the Tree control determines if the node
    is a branch based on whether it contains any child nodes.

  • Several branches in tree control binding. How?

    I have set up a tree control binding which represents a master-detail relationship between two database-tables in my ADF-application.
    In my JSP i show all rows from the "customer" table and all related "order" rows for that customer. It looks like this:
    Customer1
    - Order 1
    - Order 2
    - Order 3
    Customer2
    - Order 1
    Customer3
    - Order 1
    - Order 2
    This works very well, but now I need to add a new detail-table to this relationship; For every customer I want to show all orders and all documents related to that customer. The result should be something like this:
    Customer1
    - Order 1
    - Order 2
    - Order 3
    - Document 1
    Customer2
    - Order 1
    - Document 1
    - Document 2
    Customer3
    - Order 1
    - Order 2
    - Document 1
    - Document 2
    - Document 3
    Is there a way to set up a tree binding with one root and several branches? I need to have them in the same binding because I only want to loop the root-nodes once. I tried to add another rule to my existing tree binding, but how can I refer to which children I want to display in my jsp code (i.e orders or customers)? I loop through my rootnodes with the following code:
    <c:forEach var="Row" items="${bindings.DCTree.rootNodeBinding.children}">
    How can I refer to my "orders"-children og "documents" children in order to choose which branch to loop?
    A bit difficult to explain my problem, but I hope anyone can help me out!
    Thanx
    Tom

    Repost

  • Adding tabs dynamically at runtime for a tab navigator control

    Hi,
    Is it possible in flex builder 2 to dynamically add the tabs
    at runtime to the tab navigator control, if we can add plz tell the
    procedure to do that
    thanks in advance

    Given that you had a tab navigator declared in mxml like
    this:
    <mx:TabNavigator id="myTabber" selectedIndex="0">
    </mx:TabNavigator>
    you should just be able to call the addChild method, passing
    the child tab containers. So for example, in some ActionScript
    event handler:
    var newTab:Canvas = new Canvas();
    myTabber.addChild(newTab);
    bear in mind I haven't done this by adding tabs, but have
    done tons with adding controls to an application at runtime using
    this method (DataGrids, Grid, GridItems, etc...)
    Jason

  • Adding environment variables to Runtime.exec()

    Hello,
    I'm trying to use Runtime.getRuntime().exec(command, envp);
    When envp is null the program launches properly. (the doc says that the subprocess inherits the environment settings of the current process).
    I want to add an environment variable, so when I use an array containing only my variable (envp), the process fails. I guess it needs the variables of the current process (as used when using null).
    In that case, How adding a variable instead of replacing the default ??????
    (I did not see any way to retrieve these default variables so I can concatenate with the custom one)
    Thanks !

    Use a wrapper script that is launched with a default environment and first sets the custom variable and goes on with your program.

  • Adding supplier text during runtime in SC

    Hi Experts,
    I am doing an enhancement to add supplier text in describe requirement screen. When the item is added to the shopping cart I am doing enhancement at the end of the method in class /SAPSRM/CL_CH_WD_DODM_SC_I_DSC
    method /SAPSRM/IF_CLL_DODM_SC_I_DESCR~ADD_DESCRIBED_ITEM_TO_TABLE to add the supplier text to shopping cart item.
    There is a standard code in method /SAPSRM/IF_CLL_DODM_SC_I_DESCR~ADD_DESCRIBED_ITEM_TO_TABLE which adds the internal note to the item is like
    * set Data to pdo-object
        "prepare call
        lo_pdo_sc ?= mo_pdo.
        "call
        TRY.
            lo_pdo_sc->add_item( EXPORTING is_item   = ls_pdo_item
                                           iv_uname  = sy-uname
                                           iv_account_for_ess = iv_ess
                                 IMPORTING es_return = ls_pdo_item_control
                                 CHANGING  co_message_handler = mo_pdo_message_consumer ).
    * Add internal note as longtext
            wd_main_node = mon_cll_set_facade->get_main_node( ).
            wd_child_node = wd_main_node->get_child_node( name = 'INTERNAL_NOTE' ).
            wd_child_node->get_attribute( EXPORTING name = 'INTERNAL_NOTE' IMPORTING value = lv_internal_note ).
            TRY.
                CALL METHOD lo_pdo_sc->/sapsrm/if_pdo_do_longtext~update_longtext
                  EXPORTING
                    iv_p_guid          = ls_pdo_item_control-guid
                    iv_tdid            = 'NOTE'
                    iv_tdspras         = sy-langu
                    iv_tdformat        = 'X'
                    iv_text_preview    = lv_internal_note
    *              CHANGING
    *                EV_CHANGED         = LV_CHANGED
    *    CO_MESSAGE_HANDLER =
              CATCH /sapsrm/cx_pdo_abort INTO lx_pdo_abort.
                mo_cll_message_handler->set_abort( io_pdo_abort_exception = lx_pdo_abort ).
            ENDTRY.
    * update
            mo_pdo->submit_update( CHANGING co_message_handler = mo_pdo_message_consumer ).
    * because view will be invalidated: clear the mapper reference from the bo_mapper
            mo_parent_bo_mapper->deregister_mapper( io_mapper = me ).
    * refresh whole application because e.g. Total value of sc has maybe changed.
    * updates were performed a step before
            mo_parent_bo_mapper->fire_event_refresh( iv_perform_updates = abap_false ).
    * close window
            lo_window_controller = mo_wd_view_controller->get_embedding_window_ctlr( ).
            lo_window = lo_window_controller->get_window( ).
            lo_window->close( ).
            ev_close_window = abap_true.
    I have done the similar code for updating the long text changing the tdid to HTXT but since I am not adding the item to the SC I have just implemented the update_longtext method. The text is being added to the buffer but not saved and reflected in SC.
    I have implemented the following in the enhancement.
    CALL METHOD lo_pdo_sc->/sapsrm/if_pdo_do_longtext~update_longtext
                  EXPORTING
                    iv_p_guid          = ls_pdo_item_control-guid
                    iv_tdid            = 'HTXT'
                    iv_tdspras         = sy-langu
                    iv_tdformat        = 'X'
                    iv_text_preview    = lv_internal_note
    * update
            mo_pdo->submit_update( CHANGING co_message_handler = mo_pdo_message_consumer ).
    What should I do to save the changed text?

    hello srinivas,
    I am not sure about long text but i have updated PO item in run time.
    Please find the code below may be it will be helpful for you.
    Try the same for SC.
    DATA:    lo_bom_po                  TYPE REF TO /sapsrm/if_cll_bom_po,
                  lo_bo_po_adv             TYPE REF TO /sapsrm/cl_pdo_bo_po_adv,
                  lo_pdo                         TYPE REF TO /sapsrm/if_pdo_base,
                  lo_task_factory           TYPE REF TO /sapsrm/if_cll_taskcon_factory,
                  lo_task_container        TYPE REF TO /sapsrm/if_cll_task_container.
    DATA :  lx_pdo_no_authorization TYPE REF TO /sapsrm/cx_pdo_no_authorizatio,
                 lx_pdo_wrong_mode TYPE REF TO /sapsrm/cx_pdo_wrong_mode,
                 lrcl_current_controller  TYPE REF TO if_wd_controller,
                 lrcl_message_manager     TYPE REF TO if_wd_message_manager.
    lo_task_factory = /sapsrm/cl_ch_wd_taskcont_fact=>get_instance( ).
      IF lo_task_factory IS NOT INITIAL.
        lo_task_container = lo_task_factory->get_task_container( ).
        IF lo_task_container IS NOT INITIAL.
          lo_bom_po = lo_task_container->get_bom_po( ).
          lo_pdo = lo_bom_po->/sapsrm/if_cll_bo_mapper~get_pdo( ).
          lo_bo_po_adv ?= lo_pdo.
        ENDIF.
      ENDIF.
    TRY.
            CALL METHOD lo_bo_po_adv->/sapsrm/if_pdo_bo_po~update_item
              EXPORTING
                it_item = lt_pd_item.
          CATCH /sapsrm/cx_pdo_no_authorizatio INTO lx_pdo_no_authorization .
            RAISE EXCEPTION TYPE /sapsrm/cx_pdo_abort EXPORTING previous = lx_pdo_no_authorization.
          CATCH  /sapsrm/cx_pdo_wrong_mode INTO lx_pdo_wrong_mode .
            RAISE EXCEPTION TYPE /sapsrm/cx_pdo_abort EXPORTING previous = lx_pdo_wrong_mode.
        ENDTRY.
        " don't forget to submit the changes
        lo_pdo->submit_update( ).
    Regards,
    Neelima

  • Adding commands to tree renderer

    Hello
    Quick question:
    I have a layout set similar to the adminexplorer.
    Is there any way I can add a command group to each resource within the folder tree, e.g using a hover menu?  This would allow users to delete or rename folders from within the tree area.
    Thanks for the help!
    Chris

    Hi Chris,
    The "AdminCollectionTreeRenderer" you are talking about is a CollectionRenderer, but I am talking about changing ResourceRenderer.
    Please refer to this to know about the settings you can make on ResourceRenderer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/50/041142e862654ca98ced1607386c9c/frameset.htm
    About CollectionRenderer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/87/3d48475ee8bd448c4031aa98d90524/frameset.htm
    I expect that you duplicated your "AdminExplorer" Layoutset, and if so you will see "AdminResourceRenderer" which is responsible to render the ListView on the right side of your Layout.
    To extend the functioanlity you need to duplicate "AdminTreeResourceRenderer" and assign this to your LayoutSet and make all the settings as I told in my previous post.
    So now you should see two ResourceRenderer set to your LayoutSet, and this should now solve your problem.
    Hope this helps
    Greetings,
    Praveen Gudapati

  • Adding Transient attributes at runtime.

    ViewObjects allows to add a dynamic attribute at runtime.
    Is there any way to add dynamically a transient attribute to an Entity at runtime ?
    TIA
    Tullio

    Tullio:
    We run into some serious design issues if were to support dynamic attributes at the EO level. Let me explain:
    First of all, a dynamic EO attr will be of limited value unless it can be exposed through VO. This means that we have to support runtime mapping of EO attr to VO. This is non-trivial work.
    Secondly, view rows have an inherent assumption that its attributes are grouped as non-dyn attrs (those mapped to EO attrs and transient/calculated attrs) first, followed by dynamic attributes. If we were to support dyn EO attrs, this assumption has to break. This assumption is plays an important role in VO inheritance as well. When one VO extends another VO, dyn attrs are not inherited, and this attr grouping assumption makes inherited attr mgmt much more manageable for us.
    Because these reasons, I think support of dyn attrs at the EO level will not be easy.
    Thanks.
    Sung

  • Adding an ADF Tree to an ADF Shuttle

    Does anyone know if there is a way to attach and ADF tree to a shuttle? So in the shuttle, instead of a list, I have a heirarchy of data I want to choose from.
    Thanks in advance.

    Referring to a few posts just to give you an idea people have not really managed to get it to work (You can try replying to these posts to see if they got a solution!) -
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=916324
    Embedding tree in select many shuttle
    ADF Tree and Shuttle

  • Dynamically adding a table at runtime

    I would like to create a table in a form in Adobe LiveCycle Designer and give the end user the ability create multiple instances of that table at runtime. I have figured out how to dynamically add rows using buttons. I would like to be able to do the same with the entire table. I tried wrapping the table in a subform and then allowing repeat table for each data item. But this was greyed out in the object properties box. Any suggestions would be helpful

    Try the LiveCycle Designer forum.

  • Adding Branch to Validation and Assignment

    According to MDM Data Manager Reference guide page  (192/208), can not add "Branch" Validation and Assignment.
    According to guide when right-clikcked on expression the "Add Branch" menu option is Disabled.
    How to make it Enabled. Or is it a Bug that it is not enabled?
    Branch Value field is grayed out/disabled.
    Anybody had similar experience? How did you resolve it?
    Thanks,
    Abhay

    Thank you for you answer. I have a custom repository with no Taxanomy table.
    May be that's why the "Add Branch" option was disabled.
    Now the question is, Why do you need to have a Taxonomy to enable the "Add branch" feature?
    Here is my scenario:
    I want to run series of Assignments.
    I defined 5 assignments. Thought that I can use MDM Workflow to call them in series. However MDM Workflow does not let me connect one Assignmen Task to next Assignment Task. So though Branched Assignment would be helpful.
    However looks like can not use "Add Branch" to assignment to run them in series.
    May be I will put a new post.
    Abhay

  • View Link - Adding criteria dynamically in runtime

    Hi all,
         I'm working on a development in which Hgrid is used to show results based on the user's search criteria. The query to populate the Hgrid region, as expected, is built from a Master VO linked with a Details VO through a View Link.
    As per design model and requirement, I will need to use specific filters on the Details VO besides the already existing link attribute defined to link both Master and Details VO. My question is.. How can I implement this??
    I've tried to use setWhereClause(...) and executeQuery() in the Details VO but it seems that no matter what I include in the WhereClause for the Details VO, it just simple ignores.
    Scenario Example:
    MasterVO attributes (ship_hdr_code, ship_hdr_id)
    View Link (Master.ship_hdr_id = Details.ship_hdr_id)
    DetailsVO attributes (ship_line_code, ship_hdr_id, ship_line_id, amount, currency)
    After querying on MasterVO for ship_hdr_id = 1, View Link will query all lines on DetailsVO in which ship_hdr_id = 1 as well.
    In addition to this, users may want to see only records from DetailsVO that the currency is equal to 'INR'.
    I'd appreciate any help on this.
    Thanks and Regards,
    Eduardo

    Hi,
    I have the same requirement. Have you resolved this?
    Thanks,
    Yasdnil

  • Adding new objects at runtime

    hi, i'm wondering if i could have everything all set up(canvas3d,simpleuniverse,etc.) and i wanted to add to add a transformgroup to the BranchGroup, would everything update to show the new transformgroup?
    adn is a simepleuniverse like a virtualuniverse?

    i see on Canvas3d there's an update() meathod, do i use that?No, please don`t.
    The scengraph will update if you set the capability
    BranchGroup.ALLOW_CHILDREN_EXTEND
    before you add a new object
    You should update a scengraph from a Behavior. Please see
    You should read the javadoc for Behavior
    When the Java 3D behavior scheduler invokes a Behavior object's processStimulus method, that method may perform any computation it wishes. Usually, it will change its internal state and specify its new wakeup conditions. Most probably, it will manipulate scene graph elements. However, the behavior code can only change those aspects of a scene graph element permitted by the capabilities associated with that scene graph element. A scene graph's capabilities restrict behavioral manipulation to those manipulations explicitly allowed.
    The application must provide the Behavior object with references to those scene graph elements that the Behavior object will manipulate. The application provides those references as arguments to the behavior's constructor when it creates the Behavior object. Alternatively, the Behavior object itself can obtain access to the relevant scene graph elements either when Java 3D invokes its initialize method or each time Java 3D invokes its processStimulus method.
    Behavior methods have a very rigid structure. Java 3D assumes that they always run to completion (if needed, they can spawn threads). Each method's basic structure consists of the following:
    * Code to decode and extract references from the WakeupCondition enumeration that caused the object's awakening.
    * Code to perform the manipulations associated with the WakeupCondition
    * Code to establish this behavior's new WakeupCondition
    * A path to Exit (so that execution returns to the Java 3D behavior scheduler)
    regards

Maybe you are looking for

  • Nokia N97, Phone from hell (CHINA), built for the ...

    Well the subject spells it out, No need to address all the issues. My biggest dissappointment besides a $600 phone not functioning after only 5 weeks of use is; I paid premium price for a premium mobile phone. For the price of a N97 I could have boug

  • Develop oracle form in hindi

    any idea of how to develop an application by using orale multilingual features.I need your guidance on - To develop an application using Oracle forms 9i in hindi - To store data into database also in hindi Please guide me that what files i need to ch

  • How do you connect to a remote Livecycle server using Workbench?

    I'm trying to use Workbench ES to connect to an instance of Livecycle Server that is on another machine. If I try to connect to it, it succeeds but upon opening a pdf or xdp (basically anything that opens Designer) it gives me an error, "No path to X

  • Where is Safari 4.0.4 located in my system?

    I just did a software update and installed the new safari 4.0.4 for tiger. I restarted the mac as instructed after installation completed. Now i can't find any newly installed safari 4.0.4 Could someone provide any info ? Thanks twzz

  • Chart configurar coluna com valor de ponto flutuante

    Pessoal tenho um grafico que carrego com o codigo abaixo:                             chart.Titles.Clear();                             chart.Titles.Add(Valores);                             chart.DataSource = dsXML.Tables[0];