Allow a max number of selections

Hi,
I'm quite new to Sharepoint but I've been trying to create a list and i want to allow people only to select a date for max 20 times, when that limit has been reached to give them back a message like "All slots are full, please select another date".
Is there a way i can do this?
Thanks

Hi,
You can achieve this using ItemAdding event receiver, where you can check the selected date from the user and get the count from the list for the selected and then throw the required message.  Please refer to the following article.
https://msdn.microsoft.com/en-us/library/ff648923.aspx
https://social.technet.microsoft.com/Forums/sharepoint/en-US/e3d665b0-56da-4fe7-8dd6-1d1e29f70130/new-item-insertion-validation-through-event-handler
Please don't forget to mark it as answered, if your problem resolved or helpful.

Similar Messages

  • MI31 Inventory: Max. number of selected materials

    Hello,
    we are actually working on the selection of physical inventory documents (transaction MI31).
    When we select all materials of a plant (by only selecting the plant and leaving the material fields empty) the transaction works fine.
    But when we select one or a few range of materials, the programm creates a short dump:
    016060
    016070
    016080 * Read all materials (MARD, MARA) for this plant
    016090 select (l_t_mchb_fields)
    016100 into corresponding fields of table l_1200_t_mchb_lean
    016110 from MCHB as a
    016120 join mara as b
    016130 on amatnr = bmatnr
    016140 where a~matnr in l_t_matnr_ra and
    016150 a~werks = l_s_aux_param-werks and "only 1
    016160 a~lgort in l_t_lgort_ra and
    016170 b~MTART in l_t_mtart_ra and
    016180 b~matkl in l_t_matkl_ra and
    016190 ( b~attyp in l_t_attyp_ra or "EXLUDE!!
    016200 b~attyp is NULL ) and
       > (l_t_mchb_dyn_cond).
    016220
    016230 if sy-subrc is initial.
    016240 * fill keys for further database selection MARC, MCHA, and MCH1
    016250 loop at l_1200_t_mchb_lean assigning <S_MCHB_LEAN>.
    This interruption must be caused by the number of material in the selection (in line 016210).
    Does anyone have an idea how many materials can be selected at the most at the same time in order to avoid the interruption of the program?
    Thanks and Regards
    Peter

    Hi,
    Please check the dump by going in trans :st22.
    You will to come to know exact problem.
    Regards,
    Joginder

  • Need help on photoshop elements 13 download. Install disk will not allow entering of serial number or select product on the learn more screen.

    trying to install ps element 13 from disk. will not allow entering serial number or selecting  product on learn more screen..

    Plagiarism, paraphrasing and downloading largeamounts of >information from external sources, will
    not be tolerated and will be >dealt with severely.
    You will receive no marks for work that is not yourown. Your work may >be subject to checks for
    originality which can include use of an >electronic
    plagiarism detection service.Hey, the OP didn't read the rest of the assignment so why should they read that part?

  • Max number of part appraiser allowed for a 360d appraisal

    Hi, experts,
    i am trying to implement a 360 degree appraisal using OSA framework(part appraisal).
    according to F1 help:
    If you have selected only the Part Appraiser (PAPP) and/or Importance
    Part Appraisal (PWGT) columns in an appraisal template, this is a 360°
    appraisal, and the SAP system does not restrict the number of part
    appraisers allowed.
    in my template, only have PAPP column , but the maximun number of part appraisers allowed is still set to 18. what's wrong? it should be no limit.
    i tried to create a document(using phap_create_pa) , the 18 limitation stop me to add more part appraiser.
    i am so confused, does that mean we can not have a REAL 360 appraisal without limitation for part appraiser?
    thanks and best regards.
    Jun

    hi,
    i traced into the program,  in funciton module
    HRHAP_0DOC_MAX_NO_PART_APPER
    it's quite clear, there is no special logic for 360 appraisal , the formula is always set to :
        no_of_part_appraisers = ( c_column_max_number - l_total_columns )
                                DIV l_part_columns.
    so i think it's not possible to use OSA to depict an REAL 360 appraisal without maximum appraiser limitation.
    the maxi number is (18 -1) / 1 = 17
    which is really a pitty...
    br.
    zj

  • Max number of Thread allowed

    I am writing a multi threading program.
    is there any limit on max number of thread allowed?
    if yes, how to check the limit?

    For the language: no. It depends on your memory (every Thread has its own stack, etc.).
    Kind regards,
      Levi

  • Is there a max number of Apple pro prints allowed per order? I tried 300, then 65 and neither worked. At $2.99 per for shipping, it is expensive to order 20 sets when I used to do just one for all.

    Is there a max. number of Apple pro prints allowed per order with the updated iPhoto/Mountain Lion?
    I have been using the system for years and have had no issues, but this first try under Mountain Lion I was told the max was 300 prints per order.
    It order did not go through, nor did one with 65 photos.  When I tried 2, it was fine, but at $2.99 shipping, plus tax,
    paying $60 to get all 300 of my photos shipped is unreasonable.
    Is this a glitch in the new OS?  Hopefully it will be fixed.

    Hi blabla12345,
    (untested and without warranty)
    replace this line:
    const sSaveCUBE = "CUBE";
    with this:
    const sSaveCUBE = "cube";
    Have fun

  • Max Number of apps allowed on the phone

    I heard some where that the max number of pages is 9. So, if you download a bunch of free apps and some paid apps, where does the apps go after 9 pages? I wish the next update from apple includes a filing tool. It would be nice to put apps in a folder in a similar catagory in the app store. For examples, all games in the game folder.

    It will slow down the backups when you sync. Having lots of apps will not slow down the iPhone, since only one app can run at a time, and the size of the apps are tiny - most are less than 1 MB (i.e. you would be hard-pressed to come anywhere close to filling your iPhone with apps).

  • Max number of chars in process message MSEL?

    Hi, what is the max number of characteristics can be used in process message category's MSEL table? Right now, I am using more than 99 characteristics and I get a short dump DYNPRO_FIELD_CONVERSION. Is it really limited to 99 characteristics and if it is true, is there an OSS note to change it to allow more than 99?
    Thanks and points available

    Please make sure that you build a
    multithreaded program first (check with ldd).
    If anyone can tell me the maximum number of threads per process I would
    really appreicate it.
    Also the maximum number of open files per process. It depends on the architecture (x86/SPARC), OS version,
    64 or 32-bit, /etc/system, shell limitations (/usr/bin/ulimit) ...
    Search for "rlim_fd_max / rlim_fd_cur" on docs.sun.com too.
    HTH,
    -vladimir

  • Max number of Hits Account Identification

    Hi all,
    we are currently having the problem in IC that when somebody try to identify an account of an BP with more that 100 related sold to parties, that no account is displayed because of the standard max number of hits 100.
    I have found the path to customize this in the SPRO but this sentence in the SAP help is making me some headache:
    The higher the number you enter here, the more results the system will search for, and in turn, the more performance is affected. The maximum number of hits that the system allows is 100, which is also the default value.
    I understand the point of the performance, but does this mean that the performance is also affected the account identification of the other BP with less than 100 related sold to parties?
    Can anybody help in this issue?
    We are working on CRM 5.0.
    Regards
    Abosi
    Edited by: Abosi_3li2 on Feb 8, 2012 11:08 AM

    Hello
    The bug of nothing displayed if over 100 accounts are found is solved with [SAP note 1467929|https://service.sap.com/sap/support/notes/1467929.]
    The code you are referring to is:
    IF bpident_profile-max_hits IS INITIAL.
    max_hits = 100.
    ELSE.
    max_hits = bpident_profile-max_hits.
    ENDIF.
    It means that, if blank, 100 hits is considered. You can modify the customizing up to 255 results since that is the limit of accounts to be found.
    Regards
    Joaquin

  • Max number of dataproviders in the same workbook

    Hi,
    Do you know please what is the max number of dataproviders (recommanded by SAP) we can use in the same workbook / Bex analyzer?
    For information, we are in BI 7 based on excel 2003.
    Thx.
    Radj.
    Edited by: Radjech Radjech on Dec 3, 2010 12:24 PM

    One suggestion is:
    Each tab (copy of the query) would have distinct filter value(s).   In workbook settings,  Uncheck "Allow Refresh of Individual Queries".   Also in WB settings, Do Not Refresh at Opening.    For the entire 50-tab workbook, the filter is limited to a minimum:  company code and the date range because the other filters are hardcoded in each tab.    When you refresh and change variable values at opening the file, all you enter is the company code value and the date
    You might also want to change the Grid Properties:  Uncheck Apply Formatting (for performance); and Uncheck Allow Navigation.  You can add these back later.   Might as well uncheck Sort.
    I have my own question about the DPs.  Can you rename them from the generic Data Provider 1 or copy of Data Provider 1?
    Susan McLeod

  • Max number of persons in contact groups - Nokia Lu...

    The max number of persons allowed in a contact group is (as far as I know) restricted to 20 persons. This seems very low and I wonder why this restriction is applied. A limitation of 20 persons in a group is not practical. Any explanation or any idea if this can be changed in the future?

    As you've discovered the maximum number of contacts you can have in a contact group is 20.  If you'd like this limit to be changed to a higher number you really should post a request or add your votes to a similar request on Microsoft's user voice fo....  This is the place that Microsoft created to field user requests for enhanced options for windows phone.
    Microsoft MVP Windows Phone

  • Max number of items exceeded?

    I am trying to develop a questionaire like application. Most of the logic is stored inside pl/sql functions (that is retrieving the previous or next question with possible answers and answer-types, like, eg. radiogroup, select-list, textarea, ...) while all of the questions and respective possible answers are kept inside a collection. In processing the answers after submit I store given answers inside the same collection, basically by nullifying all possibly previously given answers for the current question and then looping through eg, g_f01.count to refill. The entire application remains on the same page, showing eg., in one 'frame', one or two questions with say 7 checkboxes and two textareas.
    Everything seems to work fine, I can go forward and backward and will find new questions or ones that already have been answerd, but!!...
    after the 50st item (answer), that is after I reached the 50st radiogroup, checkbox or textarea, new checkboxes or radiogroups even though shown the resulting values will not be stored inside the collection anymore.
    generating the page i use:
    htp.prn(apex_item.radiogroup(p_idx => 1, p_value => c2.a_id, p_selected_value => c2.qa_id, p_attributes => 'id="P2_QUEST_' || i || '"'));
    and in processing correspondingly ...
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    FOR c2 IN
    (SELECT seq_id,
    c001 q_id,
    c002 a_id,
    c012 qa_id
    FROM apex_collections
    WHERE c001 = to_char(p_q_id)
    AND collection_name = 'ANSWERS'
    AND c002 = apex_application.g_f01(i))
    LOOP
    apex_collection.update_member_attribute(p_collection_name =>
    'ANSWERS', p_seq => c2.seq_id, p_attr_number => '12',
    p_attr_value => c2.a_id);
    END LOOP;
    END LOOP;
    to me I only use f01 ... f04 say, ... Is it possible that I still hit the max of 50 page-items?
    Regards
    j.

    max number of items exceeded?

  • Max number of sessions in the database for abt a month

    Hi,
    We are adding around 1000 additional users to our 11g database, how to find the impact of CPU, Memory etc.. And also we would like to know max number of sessions in last one month. Please let us know how to get this info.
    Thanks in advance.
    Edited by: 934825 on Dec 7, 2012 7:55 AM

    vlethakula wrote:
    You can join
    dba_hist_resource_limit and dba_hist_snapshot
    SELECT a.begin_interval_time, a.end_interval_time,
    b.resource_name, b.current_utilization,
    b.max_utilization
    FROM dba_hist_resource_limit b, dba_hist_snapshot a
    WHERE a.snap_id = b.snap_id AND b.resource_name = 'sessions'
    ORDER BY a.begin_interval_timeDon't forget that the use of these DBA_HIST* views or their underlying tables requires a license for the performance pack.

  • In Oracle 10g, what is the max number of values we can pass to  'IN' Clause

    Hi,
    In my SQL query i have a scenario like, i have to pass the values to 'IN' Clause dynamically from other application. I want to know what is the the max number of values i can pass to 'IN' Clause.
    i have searched in many pages i seeing answers like 'may be 1000' , 'not sure'....
    Could any one tell me the exact limit of IN Clause in 10g.
    Thanks in Advance.
    Chandran

    Hi, Chandran,
    Chandran M wrote:
    In my SQL query i have a scenario like, i have to pass the values to 'IN' Clause dynamically from other application. I want to know what is the the max number of values i can pass to 'IN' Clause.
    i have searched in many pages i seeing answers like 'may be 1000' , 'not sure'....Don't overlook [Dont want to know|http://forums.oracle.com/forums/thread.jspa?messageID=2683385&#2683385]. This may explain why people are reluctant to give a straight answer.
    Could any one tell me the exact limit of IN Clause in 10g.1000 items such as IN (1, 2, 3, ..., 1000)
    No limit on the number of sets: IN ((1), (2), (3), ...) *<=== NOT QUITE!* See below
    No limit in sub-queries: IN (SELECT ...)
    Edited by: Frank Kulash on Jun 3, 2009 9:43 AM
    The limit of 1000 applies to sets of single items: (x) IN ((1), (2), (3), ...)
    There is no limit if the sets contain two or more items: (x, 0) IN ((1,0), (2,0), (3,0), ...)
    Thanks to Michaels for pointing this out.
    Edited by: Frank Kulash on Jun 3, 2009 10:22 AM
    Fixed link

  • Is a subquery in a BO report limited to a max number of records???

    Here's my problem:
    I recieved an excel sheet with 700 records of customers from a client who wants me to to create a report with specific data for these customers in my Business Objects universe (BO6.5 on SQL Server).
    So I created a dataprovider with query 1, i.e. the requested data of customers. Then I created a second dataprovider, query 2, based on 'personal files', i.e. the excel sheet. In query 1 I added to the conditions that each customer should be in (sub)query 2 (CustomerId In list of the query result ('query2.CustomerId').
    the syntax I have used for this seems OK.
    However, I recieve the following error: "Too many selected values (LOV0001)". I know this error has to do with parameter MAX_INLIST_VALUES, which is limited by default to 99 and can be extended to 256 max. But I thought it refers to the max number of items in lists of values.
    When I limit the number of records in the excel sheet to 99 the result is perfect (proof that I got the syntax right!). I can upgrade the parameter to 256, and can split the excel sheet into three, but that will not be useful when next time my client sends me 10.000 customer records.
    Can I make reports in BO which use subqueries that result in more than 256 records at all? (hardly imaginable).
    What is the best way to do this?
    Thanks in advance!

    Hi Lucas,
    Following is the information regarding the issue you are getting and might help you to resolve the issue.
    ADAPT00519195- Too many selected values (LOV0001) - Select Query Result operand
    For XIR2 Fixed Details-Rejected as this is by design
    I have found that this is a limitation by design and when the values exceed 18000 we get this error in BO.
    There is no fix for this issue, as itu2019s by design. The product always behaved in this manner.
    Also an ER (ADAPT00754295) for this issue has already been raised.
    Unfortunately, we cannot confirm if and when this Enhancement Request will be taken on by the developers.
    A dedicated team reviews all ERs on a regular basis for technical and commercial feasibility and whether or not the functionality is consistent with our product direction. Unfortunately we cannot presently advise on a timeframe for the inclusion of any ER to our product suite.
    The product group will then review the request and determine whether or not the functionality/feature will be included in a future release.
    Currently I can only suggest that you check the release notes in the ReadMe documents of future service packs, as it will be listed there once the ER has been included
    The only workaround which I can suggest for now is:
    Workaround 1:
    Test the issue by keep the value of MAX_Inlist_values parameter to 256 on designer level.
    Workaround 2:
    The best solution is to combine 'n' queries via a UNION. You should first highlight the first 99 or so entries from the LOV list box and then combine this query with a second one that selects the remaining LOV choices.
    Using UNION between queries; which is the only possible workaround
    Please do let me know if you have any queries related to the same.
    Regards,
    Sarbhjeet Kaur

Maybe you are looking for

  • MeetingPlace Error scheduling meeting

    Hi, My MeetingPlace 8.5.4.12  was using a long time already. Suddenly, today the MeetingPlace prompted a error during all users created a scheduling meeting. I could find those error meetings through MP Web, but those meetings cannot call in. The ser

  • Lightroom 5 won't install on my Mac...

    All is well until I put in the serial number. Then when I click "Finish", everything just disappears and Lightroom shuts down. No error messages. No freezing. It just vanishes. The serial number is correct, btw. I see the green check icon after typin

  • Workbooks lost in nomansland

    Hello Community, after a problem concerning rights and afterwards unproper save we lost more than 10 workbooks. Concerning this I already have asked some experts. Everyone says the workbooks are gone. They seem to have lost the connection to the user

  • How to change original system SID to objects by batch?

    Hi, experts I did system copy and so I want to chage orignal system SID to new system SID. I checked it is possible to modify in SE03 or using function module 'TRINT_TADIR_MODIFY'. But problem is objects are alot. How can I update them easily? Thanks

  • Lenovo U410 Startet, aber Bildschirm bleibt schwarz und nichts geschieht...

    Hallo, das ist mein erster Beitrag im Forum hier, deswegen versuch ich mal mein Problem möglichst genau zu erläutern: Zunächst zum Gerät: Lenovo Ultrabook U410 Windows 7 64x   Modellname: 4376   Baudatum: 08.08.2012 Problem: Hab mein Lenovo jetzt sei