How to enable programmatic tree path selection in JTreeTable?

Post about usage of JTreeTable provided by Philip Milne.
A problem I met is that one can not set a tree path selected programmatically. It seems that the installing of ListToTreeSelectionModelWrapper disables this action or the selection is done at first but later it is unselected again. It is very hard for me to understand the source code of JTreeTable and it is impossible for me to alter the ListToTreeSelectionModelWrapper to meet my need. Perhaps someone else there has also confronted such problem before. You would be very nice to inform me some tips.
Thanks!

Hi,
You can enable the self-site creation using PowerShell by using the following command.
$webApplication = Get-SPWebApplication <<http://WebApplication>>
$webApplication.SelfServiceSiteCreationEnabled =$True
$webApplication.Update()
Please mark it answered, if your problem resolved.

Similar Messages

  • How can I programmatically remove a selection of plots from a waveform graph?

    I have a waveform graph to display a number of plots, which I need to programmatically add and delete to as selections of data are chosen by the user for display.
    I've looked under the VI Server Property node and cannot see anything suitable for adding extra plots, or removing existing plots. I expected to see a Plot Data array variable, with each element containing the data for each of the plots on the graph. There is such an array for the annotations, which I can easily edit by Removing Subset for Array, or Insert into Array, but nothing for the plot data. The Value property is a Variant, which I'm unsure how to handle. Should I be working with this perhaps? Can this be done by creating a Local Variable read node? Or am I missing something simple here??
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

    Hi Mike,
    I was trying to use the Property Node (Value) to read the waveform graph, but I was getting a Variant type back, not a 2D array of DBLs as I expected. Turns out I was passing the graph control reference to a subvi whose control refnum had the Include Type flag unchecked. As a result of this explicit definition, Value was of an uncertain (undefined) type and couldn't be natively provided. It would have had to have been cast into a more specific type to work. Have solved the problem by ensuring all my references are of a strict type, and now (as you recommend) the Property Node (Value) is useful
    Many thanks for the response!
    And many thanks for the demo too! You put that together remarkably quickly!
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • How to enable extension button of select-options but make it read only

    Hi all,
    I have select-options with extension on my selection screen. It has to be read only. But when I give screen-input = 0, even the extension button is disabled. So the user cannot see multiple default values of that field. How should I enable the extension button and still make it read-only.
    Thanks in advance.
    Vasu

    Hi, try below sample code:
    data: gv_bukrs type bukrs.
    SELECT-OPTIONS s_one for gv_bukrs.
    at SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        if screen-name = 'S_ONE-LOW' or screen-name = 'S_ONE-HIGH' .
           screen-input = 0.
           MODIFY SCREEN.
        endif.
      ENDLOOP.

  • Enable fiscal year/quarter selection in a query

    Hello all,
    I want to have an characteristic fiscal year/quarter similar to fiscal year/period (0FISCPER) in my query. Unfortunately I can not find such a characteristic in the time infoObjects in my cube and in the administrator workbench.
    Our Fiscal year starts in July. So the first quarter is July - September. The BW release is 3.5.
    How canI enable a fiscal yearquarter selection in my query?
    Any ideas would be great.
    Thanks upfront and Best regards,
    Stefanos from Munich/Bavaria/Germany

    Stefanos ...
    A couple of options for the same :
    1. Have 0FISCPER in your cube and map the same to the custom characteristic in the update rules.
    2. Have the custom characteristic in the cube in a separate dimension
    3. If you have the same in the cube - have a variable against that and execute your query...
    By doing the above you can get the same in the query.
    Arun
    Assign points if useful

  • JTree path selection

    I have a JTree on the left scrollpane and on clicking the value of a node, I display the value in a text field on the right scrollpane. I change the value and set the value in the JTree . I am unable to make the edited tree path selected. The methods provided in the API do not seem to work.

    Don't the JTree.makeVisible( ... ) or JTree.scrollPathToVisible( ... ) methods help?
    kind regards,
    Jos
    Edited by: JosAH on Aug 23, 2009 6:19 PM: typo

  • How do we programmatically "enable" the Page to have

    Some body known how do we programmatically "enable" the Page to have
    Item level security. - analogous to checking the box in the Page edit mode for "Enable item level security"
    J.

    Try this. It might work for you.
    declare
         l_page portal.wwsbr_api.page_record;
    begin
         select * into l_page
         from portal.wwv_user_owned_corners
         where siteid = <page group id>
         and id =<page id>;
         -- 0 is disabled . 1 is enabled.
         l_page.haveitemsecurity := 1;
         portal.wwsbr_api.modify_folder(
                   p_page => l_page
         wwpro_api_invalidation.execute_cache_invalidation;
         commit;
    end;
    regards
    Suresh.

  • Commandtoolbarbutton enabling/disabling based on tree node selection

    i am using the tree tag to generate a set of nodes and every node is a command link.... i have a set of commandtoolbarbuttons on top of the tree... the functionality i am trying to obtain is on press of the tree node( i.e, command link ) the commantoolbarbuttons are enabled or disabled.. on press of link i am able to get the tree node selected in the backing bean, and also i am setting some variables for the "disabled" attribute of commandtoolbarbutton. The problem i am facing here is i have a partialtrigger attribute in the commandtoolbarbutton pointing to the commandlink id. But the partial trigger is unable to identify the command link id outside the tree. And i cannot put the commandtoolbar buttons inside the tree...
    Can anyone please let me know how can i resolve this?? or is there anyother approach??
    The source code is as mentioned below...
    <af:panelGroupLayout layout="horizontal" halign="right">
    <f:facet name="separator">
    <af:spacer width="5px"/>
    </f:facet>
    <af:toolbox id="mainTab_box" >
    <af:toolbar id="mainTab_bar">
    <af:spacer width="80"/>
    <af:commandToolbarButton icon="/resources/images/new_ena.png" partialSubmit="true"
    shortDesc="New" id="ctb1_mainTab" disabled="#{nodeSelectionHandler.createToolbar}" partialTriggers="cl1"/>
    <af:commandToolbarButton icon="/resources/images/update_ena.png" partialSubmit="true"
    shortDesc="Update" id="ctb2_mainTab" disabled="#{nodeSelectionHandler.editToolbar}" partialTriggers="cl1"/>
    <af:commandToolbarButton icon="/resources/images/delete_ena.png" partialSubmit="true"
    shortDesc="Delete" id="ctb3_mainTab" disabled="#{nodeSelectionHandler.cancelToolbar}" partialTriggers="cl1"/>
    <af:commandToolbarButton icon="/resources/images/importIcon.png" partialSubmit="true"
    shortDesc="Import" id="ctb4_mainTab" disabled="#{nodeSelectionHandler.exportToolbar}" partialTriggers="cl1"/>
    <af:commandToolbarButton icon="/resources/images/exportIcon.png" partialSubmit="true"
    shortDesc="Export" id="ctb5_mainTab" disabled="#{nodeSelectionHandler.importToolbar}" partialTriggers="cl1"/>
    </af:toolbar>
    </af:toolbox>
    </af:panelGroupLayout>
    <af:panelGroupLayout layout="scroll">
    <af:tree var="node"
    value="#{browserTreeModel}"
    id="browsertree" inlineStyle="min-width:200px;min-height:400px;width:100%;height:100%"
    rowSelection="single" clientComponent="true" contentDelivery="immediate"
    >
    <f:facet name="nodeStamp">
    <af:panelGroupLayout id="pgl10">
    <af:image id="nodeIcon"
    inlineStyle="margin-right:3px; vertical-align:middle; height:16px; width:16px;"
    shortDesc="directory icon" rendered="#{node.destination != null}"
    source="#{node.destination}"/>
    <af:commandLink text="#{node.text}"
    id="cl1"
    disabled="false" partialSubmit="true"
    actionListener="#{nodeSelectionHandler.selectionPerformed}" >
    <f:attribute name="nodeId" value="#{node.id}"/>
    <f:attribute name="operation" value="#{node.associatedOperation}"/>
    </af:commandLink>
    </af:panelGroupLayout>
    </f:facet>
    </af:tree>
    </af:panelGroupLayout>

    With apologies, you're not aware of ELUtils class devised by Steve Muench:
    package view;
    import javax.faces.context.FacesContext;
    import javax.faces.el.MethodBinding;
    import javax.faces.el.ValueBinding;
    public class ELUtils {
      public static boolean test(String booleanExpr) {
        return Boolean.TRUE.equals(get(booleanExpr));
      public static String getAsStringWithDefault(String expr, String defaultExpr) {
        return (String)getWithDefault(expr, defaultExpr);
      public static String getAsString(String expr) {
        return (String)get(expr);
      public static Integer getAsInteger(String expr) {
        return (Integer)get(expr);
      public static Object get(String expr) {
        FacesContext fc = FacesContext.getCurrentInstance();
        ValueBinding vb = fc.getApplication().createValueBinding(expr);
        return vb.getValue(fc);
      public static Object getWithDefault(String expr, String defaultExpr) {
        Object exprVal = get(expr);
        return exprVal != null ? exprVal : get(defaultExpr);
      public static void set(String expr, String value) {
        Object valToSet = value;
        if (isELExpr(value)) {
          valToSet = get(value);
        set(expr, valToSet);
      public static void set(String expr, Object value) {
        FacesContext fc = FacesContext.getCurrentInstance();
        ValueBinding vb = fc.getApplication().createValueBinding(expr);
        vb.setValue(fc, value);
      private static boolean isELExpr(Object o) {
        if (o instanceof String) {
          String str = (String)o;
          str.trim();
          return str.startsWith("#{") && str.endsWith("}");
        return false;
      public static Object invokeMethod(String expr, Class[] paramTypes, Object[] params) {
        FacesContext fc = FacesContext.getCurrentInstance();
        MethodBinding mb = fc.getApplication().createMethodBinding(expr, paramTypes);
        return mb.invoke(fc, params);
      public static Object invokeMethod(String expr, Class paramType, Object param) {
        return invokeMethod(expr, new Class[] { paramType }, new Object[] { param });
    }Try that.
    CM.

  • How to give dynamic file path in the selection  screen

    Hi All,
    How to give dynamic file path f4 functionality to user on the selection so that he can browse for the path in the presentation serve? I believe there is one fun module is there for this purpose I am not getting that
    Please help me in this regard.
    Thanks&Regards
    Mahesh

    HI,
    check this program.
    <b>report ZWA_TEST2.
    PARAMETERS: a(100) default 'PRESS F4'.
    data: filet type table of FILE_TABLE.
    data: wa type file_table.
    data: count type i.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR a.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      CHANGING
        FILE_TABLE              = filet
        RC                      = count .
    loop at filet into wa.
      a = wa-FILENAME.
    endloop.</b>
    Regards,
    HRA

  • How to run a form using tree node selection??

    hi...
    i have populated a tree with all the form name.There is a particular id for every form.i want to show a form using tree node selection.What i did...i write a trigger in button's click event when the tree node is selected then i get a id.if id=1 then open_form('test.fmx').when i want to execute this code then it is showing the same form 2 times.Can anyone help me to solve my problem?If so plz tell me what code i have to write to show a form using node selection?.

    I've done the same thing, and i think it works fine.
    Check this code (Sorry for the long post, but i cannot find how to attach files.
    PACKAGE menu_pk IS
    --Initialization of the menu.
    procedure Init;
    --Called from WHEN-TREE-NODE-EXPANDED
    procedure Expanded;
    --Called from WHEN-TREE-NODE-ACTIVATED
    procedure ExecuteCommand;
    END;
    PACKAGE BODY menu_pk IS
    MENU_NAME constant varchar2(30) := 'menu.menu';
    cursor c_menu(pRoot in varchar2) is
    select apm_code, apm_parcode, apm_descr, decode(apm_type, 0, Ftree.EXPANDED_NODE, Ftree.LEAF_NODE) apm_type,
    decode(apm_type, 0, 'menu', 1, 'form', 2, 'report') || '.ico' apm_icon
    from app_menu
    where apm_parcode = pRoot
    order by apm_code asc;
    procedure Init is
         new_node ftree.node;
    begin
         for i in c_menu('root')
         loop
    new_node := Ftree.add_tree_node(MENU_NAME, FTree.ROOT_NODE,
    Ftree.PARENT_OFFSET, Ftree.LAST_CHILD,
    i.apm_type, i.apm_descr, i.apm_icon, i.apm_code);
         end loop;
    end;
    procedure FillNode(pNode in FTree.Node) is
         new_node ftree.node;
    begin
         for i in c_menu(FTree.get_tree_node_property(MENU_NAME, pNode, FTree.NODE_VALUE))
         loop
    new_node := Ftree.add_tree_node(MENU_NAME, pNode,
    Ftree.PARENT_OFFSET, Ftree.LAST_CHILD,
    i.apm_type, i.apm_descr, i.apm_icon, i.apm_code);
         end loop;
    end;
    procedure DeleteNodeChilds is
    node FTree.NODE;
    begin
         loop
    node := FTree.Find_Tree_Node(MENU_NAME, '',
         FTree.FIND_NEXT_CHILD, FTree.NODE_VALUE,
         name_in('system.trigger_node'), name_in('system.trigger_node'));
              exit when Ftree.ID_NULL(node);
              FTree.delete_tree_node(MENU_NAME, node);
         end loop;
    end;
    procedure Expanded is
    begin
         if (FTree.GET_TREE_NODE_PROPERTY(MENU_NAME, :system.trigger_node, FTree.Node_State) = FTree.EXPANDED_NODE) then
         menu_pk.FillNode(name_in('system.trigger_node'));
         else
              menu_pk.DeleteNodeChilds;
         end if;
    end;
    procedure ExecuteCommand is
    cursor c_command(pCode in varchar2) is
    select apm_form, apm_type
    from app_menu
    where apm_code = pCode;
    fCommand c_command%rowtype;
    fMenuCode varchar2(20);
    begin
         -- if it is as menu node then exit.
    if (not FTree.Get_Tree_Node_Property(MENU_NAME, :system.trigger_node, FTree.NODE_STATE) = FTree.LEAF_NODE) then
         return;
    end if;
    fMenuCode := FTree.Get_Tree_Node_Property(MENU_NAME, :system.trigger_node, FTree.NODE_VALUE);
         open c_command(fMenuCode);
         fetch c_command into fCommand;
         close c_command;
         if (fCommand.apm_type = 1) and (fCommand.apm_form is not null) then
              globals.Set_MenuChoice(fMenuCode);
              OPEN_FORM(fCommand.apm_form);--, ACTIVATE, SESSION);
         end if;
    end;
    END;
    The menu table definition follows.
    create table APP_MENU
    APM_CODE VARCHAR2(10) not null,
    APM_PARCODE VARCHAR2(10) not null,
    APM_DESCR VARCHAR2(40) not null,
    APM_TYPE NUMBER(1) not null,
    APM_FORM VARCHAR2(50)
    alter table APP_MENU
    add constraint APP_MENU_PRI primary key (APM_CODE);
    Hope this helps

  • How to enable Multi-record select in Oracle Forms

    Hi
    we recently upgraded to R12 -- 12.1.3.
    we have a requirement in which I should let the users select multiple records in a tabular Form (custom form).
    Currently we have a custom form that displays Open sales orders with credit holds. After selecting the record, the user can release the hold on the order by clicking on a button. The requirement is for enabling selection of multiple records and release.
    We have a similary functionality in 'Quick Sales Orders' form. In this form, multiple lines can be selected by pressing 'CTL' and clicking on the records.
    I read about using APP_MULTI for this. But I couldnt figure out how to enable the multiple selection.
    If someone could throw some light on this, it would be greatly helpful

    See http://stackoverflow.com/questions/3291758/how-do-i-use-the-app-multi-package-to-support-multi-selection-in-my-oracle-form for steps/sample code.
    Sandeep Gandhi

  • How do I disable auto select for the path selection tool?

    For the move tool you can choose to disable auto selection, auto select a group, or auto select a layer. By default though the path selection tool autoselects a layer. How can I disable autoselection?

    I can’t seem to reproduce what you describe.
    Please elaborate, possibly with the help of some screenshots.

  • Syncing iPod to Selected Playlists: How to collapse the tree

    My iTunes library is much larger than my 60GB iPod, so I have two ways to pare things down when I download to the pod.
    1) I can uncheck things in playlists that I don't wish to load on my iPod. This is what I do.
    2) I can check the "Selected Playlists" button and then check the playlists I wish to download. I'd like to do this, but it's a little hard to get around a problem:
    Whenever I connect my iPod and go to the "Music" tab that controls how I download, my "tree" of playlists is always fully expanded (I have folders within folder). Of course I can manually collapse the tree, but this operation doesn't appear to be "sticky". As soon as I apply changes, or simply reconnect the iPod, there's the tree fully expanded again. It's a large tree and this is rather a large pain.
    So does anyone know how I can collapse the tree (or pieces of the tree) and have it stick? Many thanks.

    You might provide feedback to Apple regarding this issue, so they know you care.
    I too, would assume that the state of the "tree" should be remembered, or at least, it should be in the same state than in the sidebar when you connect you iPod.
    http://www.apple.com/feedback/itunesapp.html
    Frédéric

  • How to enable printer range selection in printer Dialog?

    I try to do the printer setup, when I do
    Code:
    job.setPageable (book);
    if (job.printDialog ()) {
    try {
    job.print ();
    catch (PrinterException ex) {
    ex.printStackTrace ();
    note: job is PrinterJob.
    The printer setup that shown, it disable the selection mode in printer range. Anyone know how to enable it or do print by text selection (highlight).
    Thank you in advance.

    If you set up a JFileChooser dialog you can set the setMultiSelectionEnabled to true then the JFileChooser returns an array of files.
    eg.
    File files[];
    JFilechooser chooser new JFileChooser();
    chooser.setMultiSelectionEnabled(true);
    if (result == JFileChooser.APPROVE_OPTION) {
    files = chooser.getSelectedFiles();

  • How to enable group label selectable on combo box?

    When we use the combo box, we can group the items as following
    group 1
    item 1 1
    item 1 2
    group 2
    item 2 1
    item 2 2
    How to enable user select the group 1 instead of select both item 1 1 & item 1 2 ?
    In the jsf rendered result, group 1 & group 2 just a label and not selectable option, we want change it to selectable option.
    Thanks

    When we use the combo box, we can group the items as following
    group 1
    item 1 1
    item 1 2
    group 2
    item 2 1
    item 2 2
    How to enable user select the group 1 instead of select both item 1 1 & item 1 2 ?
    In the jsf rendered result, group 1 & group 2 just a label and not selectable option, we want change it to selectable option.
    Thanks

  • How to Enable Authentication to Selected Users

    1. How to enable SAP and AD authentication only for selected users in infoview login page ?
    2. How to disable(remove) enterprise options in down arrow selection in infoview login page for some users?
    We have to make some changes in web.xml?
    Can anyone help me out.
    Thanks!
    Milton

    You have to enable authentication for your application.
    However, for the public pages, you disable this by setting the page's security attribute Authentication to "Page is public".

Maybe you are looking for

  • An error occured while created webi rpt on BEx and displaying data?

    Hi Experts, I have a problem which many couldnt able to provide a better solution and solve it. Need your expert solutions. Installed SAP BI with BO(R/3) integration kit SP3. Created WEBI report on BEx report via Universe. While trying to load/ refre

  • PS Elements 12 very slow, very very slow!

    Hi, I started using Ps elements 12 to try it out. My past experience with elements is flawless speed but with 12 for example using the smudge tool can sometimes take up to 30+ seconds to complete. I can actually watch the progress are the picture as

  • Reports are not matching

    Hi, There is a reporting problem with one of our projects. We use reports S_ALR_87013542 (Display Actual Cost Line Items for Project) and CN41(Structure Overview). The balance being displayed by these two reports are not matching. Why the different a

  • "ghost display" -- 2 monitors under Displays, even though only 1 connected

    My computer persistently thinks that there are 2 displays connected: color LCD and VGA display. I only have, and ever had, one display: a 20" cinema display. I've dumped com.apple.windowserv.* pref lists, restarted the computer and a couple of times,

  • Performance Tuning Best Practices/Recommendations

    We recently went like on a ECC6.0 system.  We have 3 application servers that are showing a lot of swaps in ST02.  Our buffers were initially set based off of SAP Go-Live Analysis checks.  But it is becoming apparent that we will need to enlarge some