Click-edit behavior of List-container items

Hi,
Sorry if it has been asked, but I couldnt find it. I would
like to know if it is possible to start editing an item in a
List-container when a user double-clicks. With default settings it
starts editing on a single click. I couldnt find anything in the
documentation. How can I change this behaviour?
Also, is it possible to set the focus on a List-container
item in edit mode? What I mean is that I could implement a
double-click event-handler that changes the List-conatiner from
not-editable to editable and then put the double-clicked item in
edit-mode. Is this possible? Than I could implement my desired
double-click-edit behaviour easily.
Thank you!
Andrej

kokot-san,
I was trying to find an answer to the same issue. I never
found anything in the documentation either. After walking through
the Tree and List class a bit I came up with this. Here is an
example where the Tree is not editable and double clicking a node
will allow you to rename it.
tree.addEventListener( ListEvent.ITEM_DOUBLE_CLICK,
itemDoubleClick );
tree.addEventListener( ListEvent.ITEM_EDIT_END, itemEditEnd
private function itemDoubleClick( event:ListEvent=null
):void
tree.editable = true;
tree.editedItemPosition = {rowIndex:tree.selectedIndex};
private function itemEditEnd( event:ListEvent=null ):void
tree.editable = false;
- Jankrod

Similar Messages

  • How to check if a list contains items from another list

    Hi all,
    I am trying to check whether a text list contains items form
    another list and then do something. I tried:
    tlist contains text phrases (e.g., test1,test2,test3)
    phrases = ["test1","test2"]
    n = phrases.count()
    tList.getPos(phrases.item[n])
    alert("should not be inluded in the list")
    But it is not working any ideas why?

    myPhrase is the loop index, but instead of a numerical index
    (like n in your sample), myPhrase is set equal to each item in the
    phrases list, first item to last. So, on the first iteration
    myPhrase = “test1”, on the second iteration myPhrase =
    “test2”. The loop automatically exits when the end of
    the list is reached. The Director help docs have more information
    on this syntax under “repeat”
    BTW: if you're more comfortable using a numerical index, the
    syntax for getting at the n-th item in a list is list[n], or in
    your sample phrases[n]

  • Sales order item assignemnt block ,if we click edit extra blank line on items level i want remove that line how to do it?

    Hi Team,
    Sales order item assignemnt block ,if we click edit ,Item assignment block extra blank line on items level is showing , i want remove that line how to do it?
    Thanks&regards
    Kalpana

    Hi Ravi,
    With the help of Dharmakasi Thotakura...
    As suggested to do changes in DO_INITCONTEXT and GET_I_T_TABLE methods ....i have implemented these two methods...Now problem only one column ITEM_NO will be disabled  remaining cloumns not disabled...i want to disable entire column including ACTION column also..Action Column contains INSERT and DELETE buttons.how to do it?
    METHOD
    do_init_context.
    CALL METHOD SUPER->DO_INIT_CONTEXT.
    DATA : lr_ent TYPE REF TO cl_crm_bol_entity,
    lr_btadminh TYPE REF TO cl_crm_bol_entity,
    lv_object_id TYPE string,
    lo_context TYPE REF TO /RCRM/15IT__ITEMS_CN00.
    * gv_flag TYPE crmt_boolean.
    lr_ent ?= me->typed_context->btitems->collection_wrapper->get_current( ).
    lr_btadminh ?= lr_ent->get_parent( ).
    lv_object_id = lr_btadminh->get_property_as_string( iv_attr_name = 'OBJECT_ID' ).
    lo_context ?= me->typed_context->btadmini.
    clear lo_context->gv_flag.
    IF lv_object_id IS NOT initial.
    lo_context->gv_flag = abap_true.
    ELSE.
    CLEAR lo_context->gv_flag.
    ENDIF.
    ENDMETHod
    METHOD
    get_i_t_table.
    CALL METHOD super->get_i_t_table
    EXPORTING
    index = index
    component = component
    RECEIVING
    rv_disabled = rv_disabled.
    DATA: lv_component TYPE name_komp,
    lo_entity TYPE REF TO cl_crm_bol_entity,
    lo_property TYPE REF TO cl_crm_bol_entity,
    lv_string TYPE string.
    IF rv_disabled = 'FALSE'.
    lv_component = component.
    lo_property ?= collection_wrapper->find( iv_index = index ).
    lo_entity ?= lo_property.
    lv_string = lo_entity->get_property_as_string( iv_attr_name = lv_component ).
    IF lv_string IS INITIAL or lv_string = '0000000000'.
    IF gv_flag IS NOT INITIAL.
    rv_disabled = 'TRUE'.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Thanks
    Kalpana

  • Right click menu on webpage lists several items that must be removed

    If I right click on any item on a webpage, along with Open Link in a New Tab, Open Link in a New Window, Bookmark this Link, Save Link As, and several more I get 5 more menu listings from a program I had installed some time ago but since removed it. How do I edit this menu to remove those 5 obsolete menu items when I right click?

    #What is the name of the program you installed and un-installed?
    #How did you un-installed the program?
    #What are the 5 context menu items?
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • Create custom Edit button for list on SharePoint 2013 page

    Hi
    I have a custom list which holds contact information such as name, telephone, address.  I am displaying the custom list webpart with using a custom view on the site home page which only shows name and telephone.  It should only
    have 1 item so 'New Item' is not needed.  However I still need to be able to edit the item.  If I click 'Edit' on the list view on the home page, it will open a quick edit box only showing name and telephone. 
    How can I create a custom button on the home page that will open the custom list item form instead?  Therefore all columns will be editable and I can remove the "New and Edit" toolbar from the webpart.
    Marc Collins www.QGate.co.uk

    Hi,
    According to your post, my understanding is that you want to open the custom list item form.
    Per my knowledge, there is out of box method to achieve it.
    After you insert the web part to a page, you need to edit the web part and change List Views as below, then it will remove the "New and Edit" toolbar from the webpart.
    In the page, if you click the web part , the ribbon will appear. After you select the item and click Edit Item, the edit form with all fields will be displayed.
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Assigned To column (or any column that uses People Picker) cleared after clicking Edit Item in a Task List

    Our SharePoint Foundation 2013 is experiencing a weird issue. It only happens in Task Lists. For example:
    Create a new Task in Task List and fill the Assigned To field with a user from the People Picker list. The People Picker works fine as all users in Active Directory are appearing.
    Save Task.
    Edit Item the task that was just created.
    The Assigned To field is now cleared for that Task.
    It used to keep the user that was in the Assigned To column.
    Are there any suggestions on what may have caused this or what I can try to fix this?
    This was after some Windows updates were installed end of August.

    Hi PauIT,
    According to your post, my understanding is that the “Assigned To” field is cleared when you edit a task item in the Tasks List.
    I recommend that you can enable server rendering on the list view Web Part for the Tasks List to solve this issue.
    To do this, please follow the steps as below:
    Open the Tasks List in your site, add a new task item, type the user name in the “Assign To” field and save it.
    Select the new item, click “Edit item”, then go to the Gear icon, click “Edit page”, click the drop-down arrow in the upper-right corner of the Web Part for the Tasks List, and click “Edit Web Part”.
    On the right side of the page in the Web Part properties controls, click the plus sign (+) on the “Miscellaneous” section, select the “Server Render” in the “CSS Render Mode” section, then click “Apply”, “OK” and save the changes of the page.
    Then, you can see if the “Assign To” field in the new item’s Edit Form has the corresponding values.
    There are some similar threads for your reference:
    http://sharepoint.stackexchange.com/questions/87089/assigned-to-column-text-hidden-but-filterable
    http://support.microsoft.com/kb/2924913/en-us
    Best Regards,
    Yumi Fu

  • This column cannot enforce unique values because this list or document library may contain items that are not viewable by all users.

    The above error occurs when I place unique constraint on a column in a custom list. This error only occurs because the custom list has been configured to only allow creaters to view and edit their own list items.
    I just can't see why that should prevent SP from placing a unique value constraint though.
    One easy workaround would be to place the unique constraint on the SQL Server table that represents this list. However, in a hosted environment, it is not always possible to gain access to the backend server. What is more, I am uncomfortable with this
    approach as it may break other parts of SP 2010.
    Is there any other approach?

    Hi,
    If SharePoint were to enforce uniqueness on a column in a list where users are only allowed to see and edit list items that have created, then you could have a scenario where -
    a. user1 tries to add a new item to the list which violates the uniqueness constraint
    b. SharePoint reports an error
    c. user1 gets to know that there is another item containing the same value in this list
    d. this violates the security settings that you configured (each user should be allowed to only see the items that they have created). Now if you change the permissions settings to allow users to SEE all items, but only
    edit items that they have created, this error disappears (obviously).
    Now getting to the workaround you mentioned (creating a unique constraint on the SQL Server table). This is not going to be possible for numerous reasons -
    a. Modifying (or for that matter, even performing SELECT operations on) the SQL Server tables is an unsupported operation and it will definetely break other things in SharePoint, not
    to mention that you will lose all support options from Microsoft. However if you don't care about this, then it will still not be technically possible because...
    1. SharePoint does not create a new SQL Server table for every list/library. 
    2. If you did get around to enforcing a unique constraint in the one single table that SharePoint uses for all lists, then you will be enforcing this constraint on each and every list in all the sites and in all the site
    collections that are assigned to that content database.
    Please "Mark as Answer" if a post has answered your question or "Vote as Helpful" if it was helpful in some way. Here's
    why

  • If I am browsing on site such as Ebay or any shopping site, and click on an item, when I return to the search page I am once again at the top of the page and have to search down for where I was in the list of items.

    If I am browsing on site such as Ebay or any shopping site and click on an item, when I return to the search page I am once again at the top of the page and have to search down for where I was in the list of items. This is not only on Ebay it is everywhere I search. Firefox goes back to the top of the page . It is annoying to have to figure out exactly where I was if I left the page and then returned. This is a hinderance when using Firefox. I have considered uninstalling it because of the inconvenience of 're-searching' after already doing a search. Firefox used to take me right back to where I was if I left a page, but that feature is not working now. I am not sure how to change this in the settings.

    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • How to edit the list box items in labwindow/​CVI?

     how to edit the list box items in labwindow/CVI?

    Listbox items cannot be edited directly in the control: what you can do is to select a line an, transfer its content to a textbox control, edit text there and move text back to the listbox control. Available interactions with the listbox control are listed in the help.
    An alternative to it is to use a tree customized to appear like a listbox: tree item labels can be edited directly in the control, at least those in the base column of the tree. You can look at the example \samples\userint\treelist.cws that shows how a tree can be customized this way. I haven't opened it, but this old example too should show the ability to edit tree cells.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How do I get a longer list of items in the history window - and not have to click "Show All History"? The default list is too short.

    How do I get a longer list of items in the history window - and not have to click "Show All History"? The default list is too short.

    Well I figured it out… all you do say show commands :-/

  • Getting List of Items in current container

    Hi all,
    I'm having another templating problem. I want to get all the items in my region, in order. I had been trying to use JHS.current.itemRegion.items, but that resloves to getItems(), which returns a Map keyed by item name. Order is important (and especially the ability to retrieve an item based on its index in the item region), so I looked for a method that looks like it returns a list of items.
    The one I found was items(String filter). Unfortunately, I have no idea what "filter" means in this context. I tried passing in "*", but the method threw an exception. The Javadoc for the method is just a stub.
    Can anyone help me figure out how to get all the items in the current itemRegion, in the order in which they appear in the application definition?
    Thanks much,
    Avrom
    Message was edited by:
    Avrom
    Changed subject to be more appropriate

    Avrom,
    Try JHS.current.itemRegion.items.valuesAsList()
    Steven Davelaar,
    JHeadstart team.

  • I can't find list of subscribers on my shared photostream. I did follow the directions. After I clicked edit in my shared stream, there was no add people or subscriber option

    I can't find list of subscribers on my shared photostream. I did follow the directions. After I clicked edit in my shared stream, there was no add people or subscriber option. There was nothing but the photos. I just wanted to invite more people to subscribe.

    Is there a "New" button at the top right of the Playlists section of Music?
    There is no Edit button to delete music, swipe sideways on the song to reveal the delete button. Tap and hold on the artwork in Artists and albums to reveal the (X) button to delete. Or connect the iPad back up to iTunes on the computer and check your sync settings for music to ensure you are syncing the right content.

  • Iterate through a list containing Map items using struts

    Hi friends,
    I have a small problem. I want to iterate through a list of items, using struts.
    The list actually contains map structres for example:
    list(0)
         map(..key..value..)
         map(..key..value..)
         map(..key..value..)
    list(1)
         map(..key..value..)
         map(..key..value..)
         map(..key..value..)
    list(2)
         map(..key..value..)
         map(..key..value..)
         map(..key..value..)can I use <logic:iterate/> for this? if yes how? Because I have used this tag for list containing bean objects not Map.
    Any suggestions are much appreciated.
    Thanks,
    Vishal

    Normally, each object exposed by the iterate tag is an element of the underlying collection you are iterating over. However, if you iterate over a Map, the exposed object is of type Map.Entry that has two properties:
    key - The key under which this item is stored in the underlying Map.
    value - The value that corresponds to this key.
    So, if you wish to iterate over the values of a Hashtable, you would implement code like the following:
    <logic:iterate id="element" name="myhashtable">
    Next element is <bean:write name="element" property="value"/>
    </logic:iterate>
    Best Regards
    Maruthi

  • Right Click- Editing list

    When I Right Click any file a list of options is presented. How can I remove items from this list. I have a few applications that have been uninstalled but are still showing up.
    Thanks,
    Mike

    If the problem is with "Open With" then try this:
    You should be able to fix that by rebuilding the LaunchServices database.
    I use OnyX (Maintenance tab, Reset section).
    http://www.macupdate.com/info.php/id/11582
    <pre>LaunchServices database: This option allows updating
    of the LaunchServices database and corrects a problem
    in the contextual menu's "Open With"
    list so that deleted applications are no longer shown
    and so that duplicates are not displayed.</pre>
    eMac Combo 1GHz/1GB/60GB   Mac OS X (10.4.8)   CanoScan D646U, Canon iP1600, CrossFire 120GB, DSL, D-Link DI-624

  • Nautilus 3.16 Cannot double-click with Icon-View to open items

    I'm updated testing/nautilus-3.16, and it cannot double-click to open ever items.
    But goto Preferences -> Behavior to set ' Single click to open items '
    Single click is working on nautilus, It's can single click to open items.
    And goto Preferences -> Default View to set 'List View'
    Double click is working with 'List View'.
    Not have anything error code in Terminal.
    And I reset gconf and dconf, Icon View with double-click still not work.
    How to solve it?
    Last edited by MayKiller (2015-04-02 10:55:18)

    ewaller wrote:
    Moving to testing.
    Maykiller, you reported the thread to the moderators.  Did you perhaps mean to reply to the thread?
    Sorry for that, I clicked 'report', it's wrong.
    I was mean it is reply for that user...
    Last edited by MayKiller (2015-04-04 12:42:22)

Maybe you are looking for