How to limit the number of items that a list control can hold?

Hi,
I am using a Flex3 List control for one of my projects.
I add drag & drop functionality to it, so that i can drag & drop elements from one control to another.
How to limit the number of items that a list control can hold / can be dropped in a list control ?
- Sen.

1. Listen for the dragdrop event on the control you are dragging onto.
2. check the length of the items in the dataprovider - if it exceeds your maximum override the default drop action with e.preventDefault(); (assuming you used e for the event on the handler).
Regards,
Mark.

Similar Messages

  • How to limit the number of items in a KPI Status list web part?

    How to limit the number of items in a KPI Status list web part? There is no paging option for Business Category Status list or any limit can be made by changing the Item limit in default view unlike other SharePoint List web parts. So How to achieve it?
    Kindly help.
    Regards,
    ZA
    zzzSharePoint

    Hi,
    According your post, I know you would like to set the item display limit in Status List web part.
    In the web part, the number of items to display is based on the view which you selected when configuring the web part. The default view for status list is status list view.
    However, I am not able to limit the items’ display number of the status list view. After changing the items limit, the list item displayed would not match the number specified by Item Limit. Thus, it is not possible to limit the number
    of items in the Status list web part.
    It could be a potential issue in SharePoint 2010.
    We will log this issue to our suggestion box. As after the submission, we may not have any time guarantee when the fix may be released, but it may come out on next cumulative update.
    Appreciate your time and efforts.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to limit the number of items from RSS using XSLT

    Hello,
    I am using plsql to read contents from RSS, basically a simple RSS reader.
    I would like to somehow want the feature to restrict the number of items in the RSS feed, say I would like to display only the first 5 items.
    How could I achieve this?
    Any help is highly appreciable.
    Thanks in advance.
    Regards

    Hi,
    According your post, I know you would like to set the item display limit in Status List web part.
    In the web part, the number of items to display is based on the view which you selected when configuring the web part. The default view for status list is status list view.
    However, I am not able to limit the items’ display number of the status list view. After changing the items limit, the list item displayed would not match the number specified by Item Limit. Thus, it is not possible to limit the number
    of items in the Status list web part.
    It could be a potential issue in SharePoint 2010.
    We will log this issue to our suggestion box. As after the submission, we may not have any time guarantee when the fix may be released, but it may come out on next cumulative update.
    Appreciate your time and efforts.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to limit the number of emails that are shown for each account

    Hi, I'm going from iOS 6.1 to my new 5s iOS 7 and I wanted to know if there was a way to limit the number of emails shown for each of my accounts? In iOS 6 there is a setting "show" where you can choose how many you would like to be loaded at a time from 50-1,000 , is there a setting similar to this and I am just not seeing it? Please help me asap. I have only logged in 3 of my 12 email accounts and already have over 13k emails loaded...

    You can't limit it to the last 50 messages, but you can limit it to the last 1000 messages in each "folder" (label).
    Go to the Gmail website and click on the gear icon to the top-right side.
    Click on Settings.
    Click on the "Forwarding and IMAP/POP" tab across the top of the Settings area.
    Towards the bottom of the IMAP section, change the "Folder Size Limit" setting to "Limit IMAP folders to contain no more than this many messages". By default 1000 is selected, though you can also choose 2000, 5000, or 10000.
    Click Save Changes at the bottom.

  • How to set the number of rows that an awt.Choice can display

    Dear Sir,
    I want to ask how an awt.Choice  can set the number of rows that it can display, like the method setMaximumRowCount in JCombobox. Since I want to set more row can be displayed, but choice no any method can set. And I have tried to add Jcombobox into awt.frame, then, the handling event function cannot receive event for the right-top cornet button(minimize, maximum, close).
    Best Regards,

    please post a Short, Self Contained, Correct Example showing your problem.
    bye
    TPD

  • How much is the maximum number of byte that a string control can hold?

    And also if the the number of byte sent to a string control is beyond that limit, will the string control discard that data?

    From App Note 154:
    "LabVIEW stores strings as a pointer to a structure containing a 4-byte length value followed by a 1D arrays of byte integers (8-bit characters)."
    The 4-byte value is the same size as a U32, which has a range of 0 to 4,294,967,295. So, your string can have up to 4,294,967,295 characters. If you have the memory
    What does a control do if you exceed that? I don't know. I don't have enough RAM to try it and see.

  • How do I limit the number of emails that show in my active mailbox?  There was a way in Settings on ios 6, but i can't find it in ios 7.

    How do I limit the number of emails that show in my active mailbox?  There was a way in Settings on ios 6, but i can't find it in ios 7.

    You need to delete your current hotmail account set up on your iphone.
    Once this has done click 'Add Account' and select the new 'outlook.com' tab.
    Set up your hotmail account again from scratch and this will then allow you to select how many weeks/months of emails you sync to your phone.
    Im not sure if anyone else had a similar problem to me prior to iOS 7, but if i deleted an email from my hotmail account on my iphone - it wouldnt sync with my actual hotmail account. So when i logged in online all the emails I had deleted on my phone would still be showing as unread.
    But by setting the account up as above, they now sync perfectly.
    Well for me anyway

  • HT201774 How do I delete excess email messages from my iPhone.  There are 300 messages listed, and every time I delete some, more are added from old messages.  How do I limit the number of messages that can appear on my phone?  How can I delete messages i

    How do I delete excess email messages from my iPhone.  There are 300 messages listed, and every time I delete some, more are added from old messages.  How do I limit the number of messages that can appear on my phone?  How can I delete messages in bulk,

    You can't.
    All photos transferred from your computer are stored in the Photo Library. The photos in the album or albums below are not duplicates - they include a pointer to the original photos stored in the Photo Library. This way you can view the photos in a particular album only by selecting the album, or you can view all photos available in all albums by selecting Photo Library.
    Just as with an iTunes playlist. A song cannot be in an iTunes playlist unless the song is in the main iTunes library. Placing a song in a playlist does not duplicate the song. Remove the main iTunes library or the songs from the main iTunes library that are in a playlist and the songs will no longer be in the playlist either. This way you can listen to the songs in the playlist only by selecting the playlist, or all songs in your entire iTunes library by selecting Music under Library in the iTunes source list.
    The same with iPhoto on a Mac. A photo cannot be in an in iPhoto Event or Album unless the photo is in the main iPhoto library. Placing a photo in an Event or Album does not duplicate the photo. This way you can view the photos in an iPhoto Event or Album only by selecting the Event or Album, or all photos in all Events or Albums.

  • How can i limit the number of taps that open in safari

    How can i limit the number of tabs that open in safari

    preferences-->tabs
    change new pages to never open in new tabs.
    Now you only get the number of tabs that you open yourself with command-T or the new tab button.

  • How do you limit the number of emails that download in ios7?

    How do you limit the number of emails that download in iOS7? In previous versions, I was able to limit (i.e. 50/100/ etc), the number that would download to my phone at any given time - other than new emails. Past/old emails would only be reloaded if I deleted newer ones or I requested more be loaded.

    Now solved:
    https://discussions.apple.com/thread/5325394?tstart=0
    Guy in my thread fixed it for me. Very simple to do.

  • How to limit the number of rows in a smart form , sap script.

    Can anyone tell me how to limit the number of rows in the output of a sap script/smart form. I have tried "protect/endprotect" in sap script but have no idea of how to do in smart form. In sap script the only way it has happened is by reducing the size of the main window.

    Hi,
    In Smartform also, why dont you try reducing the size of the window if you want to limit the rows in it. Also if you are printing Line Items in a LOOP, you can write
    LOOP AT T_ITAB FROM 1 TO N in the LOOP Node if you know how many records exactly you want to display in 1 Page processing.
    regards,
    Mahesh

  • Is there any limit on Number of items that can be created in SBO2005B

    Is there any limit on Number of items that can be created in SAP Business One 2005B.
    We are working for button manufacturer.
    Each button will have type,color, size, thickness.
    There are about 100 types, 40 colors, 30 sizes, 10 thickness, 500 models.
    It looks to be approximately above 30lacs item codes has to be created.
    Is there any performance issues or any other known issues towards the large item lists.

    Hi,
    There is no real limit on the number of items you can create (well, the item code is a 20 character key so theoretically the limit is the total number of possible combinations of letters and characters in that key).
    Performance can be an issue with a large inventory, as well as database size (particularly if you have a large inventory and a large number of warehouses). Some issues such as the speed of lookups can be avoided by changing system settings but other issues such as the speed of inventory reports are inevitable going to take longer for larger inventories.
    Have you done any research on looking for SBO addons for the clothing industry? It might be worth searching the CPSN for such addons (ie ones that can deal with sizes, colours etc) as these may help greatly in keeping the number of stock items down to a minimum.
    Kind Regards,
    Owen

  • How to limit the number of boxes to tick in LC

    I would like to know the "javascript" in Lice Cycle to limit the number of boxes ticked
    for example i have 20 boxes and i would like that the client can only tick 5 boxes
    thank you

    Thank you Steeve
    But my problem is that i don't know which boxes the client will want to tick so all boxes have to be available at the beginning.
    When the client will have ticked 5 boxes in this case and only in this case, all others boxes must become unavailable so it is very difficult to set up
    if you have any idea
    thanks anyway
    Date: Fri, 15 May 2009 09:44:33 -0600
    From: [email protected]
    To: [email protected]
    Subject: How to limit the number of boxes to tick in LC
    This is a form validation issue. For example, you may have a text field and the value entered into that field determines which checkboxes must be completed to satisfy a validation or business rule. The attached sample requests the value "foobar" to be entered into a text field. If you enter "foobar" and exit the field, 2 of 3 checkboxes have the access property changed to "protected", meaning a user cannot no longer select those checkboxes.
    // form1.page1.subform1.input::exit - (JavaScript, client)
    if (this.rawValue == "foobar") {
        form1.page1.subform1.cb2.access = "protected";
        form1.page1.subform1.cb3.access = "protected";
    Steve
    >

  • How to limit the number of search results returned by oracle text

    Hello All,
    I am running an oracle text search which returned the following error to my java program.
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    #### ORA-29902: Fehler bei der Ausführung von Routine ODCIIndexStart()
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    java.sql.SQLException: ORA-29902: Fehler bei der Ausführung von Routine ODCIIndexStart()
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    When i looked up the net, one suggestion that was given is to narrow the wildcard query, which i cannot in my search page. Hence I am left with the only alternative of limiting the number of results returned by oracle text search query.
    Please let me know how to limit the number of search results returned by oracle text so that this error can be avoided.
    Thanks in advance
    krk

    Hi,
    If not set explicitly, the default value for WILDCARD_MAXTERMS is 5000. This is set as a wordlist preference. This means that if your wildcard query matches more than 5000 terms the message is returned. Exceeding that would give the user a lot to sift through.
    My suggestion: trap the error and return a meaningful message to the user indicating that the search needs to be refined. Although it is possible to increase the number of terms before hitting maxterms (increase wildcard_maxterms preference value for your wordlist), 5000 records is generally too much for a user to deal with anyway. The search is not a good one since it is not restricting rows adequately. If it happens frequently, get the query log and see the terms that are being searched that generate this message. It may be necessary to add one or more words to a stoplist if they are too generic.
    Example: The word mortgage might be a great search term for a local business directory. It might be a terrible search term for a national directory of mortgage lenders though (since 99% of them have the term in their name). In the case of the national directory, that term would be a candidate for inclusion in the stoplist.
    Also remember that full terms do not need a wildcard. Search for "car %" is not necessary and will give you the error you mentioned. A search for "car" will yield the results you need even if it is only part of a bigger sentence because everything is based on the token. You may already know all of this, but without an example query I figured I'd mention it to be sure.
    As for limiting the results - the best way to do that is to allow the user to limit the results through their query. This will ensure accurate and more meaningful results for them.
    -Ron

  • How to limit the number of TCP connections beeing used concurrently while a page is beeing loaded?

    We manufacture industrial small-footprint control modules with embedded web server. The resources of these modules are very limited, especially in RAM. We have problem, that FF opens 15 parallel TCP connections while loading a web page (main html page first, then all icons simultaneously). We can not handle such behavior because of lack of RAM memory needed for TCP buffers.
    Question is how to limit the number of concurrent TCP connections the browser will use? We need to do it somehow directly from the page, we can not push our customers to change the general settings of their browsers (they would not understand such things anyway).
    Do anyone have any suggestion?

    Sorry, one other thought. Many web designers now combine all icons into a single image and use CSS to clip the image so that only the desired portion is displayed. This minimizes the number of required connections and increases the probability that the image can be retrieved from cache.
    More info:
    * [http://www.w3schools.com/css/css_image_sprites.asp CSS Image Sprites - W3Schools]
    * [http://www.alistapart.com/articles/sprites/ A List Apart: Articles: CSS Sprites: Image Slicing’s Kiss of Death]
    * [http://coding.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/ The Mystery Of CSS Sprites: Techniques, Tools And Tutorials | Smashing Coding]
    No idea whether this is practical for your application.

Maybe you are looking for

  • How can i create multiple page report using excel report generation toolkit from excel template?

    i am having code which create report in excel.but it prints only single page. if content is more than size of template than insted of tacking new page it prints only single page.Please help me out. Anyone has material for learning activeX in labview?

  • Getting access to ActiveX Enums

    I posted an earlier question about being able to access the Excel VBA Help in LabVIEW to view the help for an Excel ActiveX Property or Methods node.  One of my PCs (running Win XP) could access the help, another (running Windows 7) could not. This i

  • Itunes : Ipad does not appear as device

    I have this annoying problem since udating to ios6 When i connect my ipad to my Mac itunes cannot find it. There is no devices tab. Yet, for some reason itunes did detect an app installed on the ipad and synced it over..

  • Processing length specific file in XI

    Hi All, Is it possible to process lenghth specific file in XI. Can any one gives some idea how to do that. If I have a very big file like this and want to test mapping by taking that file as input. Is it possible or do we need to convert that file in

  • TRANSFER_DATA_FROM_SUBSCREEN

    Hi, I added a new tab using BADI  LE_SHP_TAB_CUST_HEAD, from where I have a field where the user selects a value. I store its value on a local variable within my TRANSFER_DATA_FROM_SUBSCREEN method, using GET PARAMETER ID... FIELD... . The question i