Disable new item button
Hi ,
Is there any way that i can disable new item creation of item if count equal to 100 .
Abhishek Tiwari
Hello,
You can disable button from ribbon and page using jquery but if user is smart enough then he/s can add item directly open the newform.aspx page. Refer below links for jquery, and you also need add code to access list using lists.asmx to get item count from
list.
https://social.msdn.microsoft.com/Forums/en-US/1e2ef4bc-428f-4a9b-a0c3-82a0535a36cb/hide-new-item-button-in-ribbon-jquery?forum=sharepointdevelopmentprevious
http://sharepoint.stackexchange.com/questions/15740/remove-add-new-item-functionality-from-lists
If you really don't want add item after 100 then event handler will be good solution. Where you can check item count and if it reach to limit then remove user permission OR cancel the event.
http://www.c-sharpcorner.com/UploadFile/54db21/remove-group-permission-to-list-in-sharepoint-2010-programma/
http://rmanimaran.wordpress.com/2010/10/11/programatically-adding-and-removing-permission-to-a-group-in-sharepoint-list/
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help
Similar Messages
-
Disabled new entries button in Table Maintenance
Hi Guru,
I want to disabled new entries button in table maintenance (sm30) due to authorization. could u tell me how can we do it.
I want give authorize to user only see table maintenace entries
not able to give new entries.
<REMOVED BY MODERATOR>
Thanks
Ramakrishna
Edited by: Alvaro Tejada Galindo on Apr 8, 2008 4:24 PMhi krishna,
It is used for updating tables.i.e deleting,updating and inserting data into tables.
check these threads and links
Re: Regarding Table Mainantance Generator
Re: table maintenance
For further help look into these links
http://help.sap.com/saphelp_46c/helpdata/EN/cf/21eb6e446011d189700000e8322d00/frameset.htm
http://help.sap.com/saphelp_bw30b/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm
Table
Table maintanence generator is nothing but making a table available for adding records and deleting records.
The transaction code used is SM30.
follow below steps
1) go to se11 check table maintanance check box under
attributes tab
2) utilities-table maintanance Generator->
create function group and assign it under
function group input box.
also assign authorization group default &NC& .
3)
select standard recording routine radio in table
table mainitainence generator to move table
contents to quality and production by assigning
it to request.
4) select maintaience type as single step.
5) maintainence screen as system generated numbers
this dialog box appears when you click on create
button
6) save and activate table
using sm30 you can create entries manually.
check these links
Table Maintainance generator
Table Maintainance Generator!!
Re: STANDARD RECORDING ROUTINE IN TABLE MAINTENANCE SCREEN
<REMOVED BY MODERATOR>
karthik
Edited by: Alvaro Tejada Galindo on Apr 8, 2008 5:11 PM -
Hide new item button in ribbon jquery
hello,
I need to hide new item button from list page through jquery.
thanks.
regards
krishnakumarAnother option is to hide them using CSS.
SharePoint 2010 Hide Ribbon button using CSS
Amit -
Disable HTML Item Button Onclick
Apex 3.2
We are only using HTML buttons in one of our applications.
I use the following code, for example, on my page buttons (region buttons) to disable them after they have been clicked by the user
URL Target
javascript:this.disabled=true;this.value='Refreshing Page...';doSubmit('REFRESH');
Is there anyway to do this with a HTML item button, which we use for search and reset buttons.
Thanks in advance for your help
GusGus,
Give this a try. It is very similar to yours. It is used on an html button to guard against double clicking.
Put this in the URL Target. PROCESS is the name value of the button
javascript:this.disabled=true;doSubmit('PROCESS'); -
How to disable Add New Item in SharePoint 2013
Hi,
I want to disable the Add New Item button after the user created one item in SharePoint 2013.
Is it possible to disable?
Please reply
Thank youI'd do it creating a custom web part that would mimic the list web part, and have logic in there that makes sure to hide the button once an entry by the current user has been made in the list. You could also create a workflow that would remove the user's
permission to add a new item on the list upon creating an item.
Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com -
I tried to disable page item button with dynamic action option (Disable) and with javascripts
document.getElementById("IDOFBUTTON").disabled = true;
calls: $x_disableItem
but dont work, any idea?
ThanksHi,
>
Im added a new dynamic action
onPageLoad > Execute Javascript > $("#TEST").unbind("click");
Event scope : Bind
but cant make it work...
I know that it depends of themes/templates. (my is theme 23 in Apex 4.1)
>
I presume you have specified TEST as the Static ID of the Button.
To disable button you will need to remove the href attribute
$("#TEST").removeAttr("href");To enable it you will need to add the href back
$("#TEST").attr("href","javascript:apex.submit('<REQUEST /BUTTON NAME>')");Cheers,
PS: Inspect your button HTML Element. You will see something like this
<td align="left"><a role="button" id="TEST" class="uButton" h ref="javascript:apex.submit('CLICK_ME');"><span>Click Me</span></a></td>
NOTE: There should be no space in h ref, added it just to be able to post.
In the above code
id = "TEST" , where TEST is the Static ID of the Button. Required Button Template with #BUTTON_ATTRIBUTES#
CLICK_ME is the Button Name, therefore the REQUEST submitted by the Button
Click Me is the Test Label /Alt.
Edited by: Prabodh on Aug 13, 2012 5:14 PM -
Changing the default "New Item" link url in SharePoint
Is it possible to change the default url of the New Item button on a list.
When i hover over or click on new item link it show the ......../15/listform.aspx?Page type=blah.....blah......
I want it to be something like :/newform?source=xxxx
Please help me !
Thank you !Hi,
The following code for your reference, please add the code into a Content Editor Web Part in the list view page.
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script type="text/javascript">
$(function () {
$("#idHomePageNewItem").attr("href", "http://site/list/newform.aspx?source=http://...........");
$("#idHomePageNewItem").attr("onclick", "");
</script>
Best Regards
Dennis Guo
TechNet Community Support -
I have a list which has a underlying infopath form for insert and edit a record.
The list has various views spread across different pages .
Now depending on different pages "New Item", a value for the form will have a corresponding value.
If there is a single line of text control in the list, and depending ona page name, the value for the single line text should be autofilled when Add new item is clicked.
How do i achieve that?
Thanks...Hi,
According to your description, there are several list views in your list, there is a textbox control which holds the “Single Line of Text” type of data in your custom
form. When users click the “Add new item” button in one of the existing list views, you want the textbox control in the custom form to be populated automatically.
By default, when user clicks the “Add new item” button in a list view, the URL of the custom form page will contain the name of that list view page, thus, a workaround
which requires custom code can be like this:
After the form page loaded, we can extract the name of the list view page from the URL, then populate it into the textbox control immediately. This can be achieved
using jQuery.
About how to
get URL parameters of current page using jQuery:
http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.html
About
adding jQuery into InfoPath form:
http://riteshudupak.blogspot.com/2010/09/add-jquery-to-browser-enabled-infopath.html
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
Edit Add New Item link in certain view of list in SharePoint Programmtically
this is my requirements
i have one list called List 1 and two content types on it
CT 1 and
CT 2 and create two views on the list
View 1 to display items of CT 1
View 2 to display items of CT 2
the creation of list and views is done via XML
now i need to change the URL of add new item link in every view to open its content type, i.e. when i was on view 1 i click on add new item, it will open new item form of CT 1 and hen i was on view 2 and click on add new item, it will open new item form
of CT 2
i do a lot of search on the internet but get the following code but it doesn't work for me, i already wrote it in event receiver
SPSecurity.RunWithElevatedPrivileges(delegate()
SPWeb web = properties.Feature.Parent as SPWeb;
web.AllowUnsafeUpdates = true;
SPList contractList = web.Lists.TryGetList("Contract");
SPLimitedWebPartManager webpartManager = web.GetLimitedWebPartManager("Lists/ContractList/SICET%202A%20Contract.aspx", PersonalizationScope.Shared);
foreach (System.Web.UI.WebControls.WebParts.WebPart item in webpartManager.WebParts)
if (item.GetType().Name == "XsltListViewWebPart")
XsltListViewWebPart listViewWebPart = (XsltListViewWebPart)item;
Guid guid = new Guid(listViewWebPart.ViewGuid); // get the view details which is applied to web part
SPView sicet2AView = contractList.Views[guid];
sicet2AView.GetType().InvokeMember("EnsureFullBlownXmlDocument",
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.InvokeMethod,
null,sicet2AView,null);
PropertyInfo nodeProp = sicet2AView.GetType().GetProperty("Node", BindingFlags.NonPublic | BindingFlags.Instance);
XmlNode node = nodeProp.GetValue(sicet2AView, null) as XmlNode;
XmlNode toolbarNode = node.SelectSingleNode("Toolbar");
//sicet2AView.ViewFields.DeleteAll();
if (toolbarNode != null)
string toolbarType = toolbarNode.Attributes["Type"].Value;
string linkText = "abdeen";
toolbarNode.Attributes["Type"].Value = "Freeform";
XmlAttribute positionNode = toolbarNode.OwnerDocument.CreateAttribute("Position");
positionNode.Value = "After";
toolbarNode.Attributes.Append(positionNode);
//toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><![CDATA[ <table width=100% cellpadding=0 cellspacing=0 border=0 > <tr> <td colspan=""2"" class=""ms-partline""><IMG src=""/_layouts/images/blank.gif"" width=1 height=1 alt=""""></td> </tr> <tr> <td class=""ms-addnew"" style=""padding-bottom: 3px""> <img src=""/_layouts/images/rect.gif"" alt=""""> <a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com""]]></HTML><URL Cmd=""New"" /><HTML><![CDATA["" ONCLICK=""javascript:NewItem(']]></HTML><URL Cmd=""New"" /><HTML><![CDATA[', true);javascript:return false;"" target=""_self"">]]></HTML><HTML>" + linkText + @"</HTML><HTML><![CDATA[</a> </td> </tr> <tr><td><IMG src=""/_layouts/images/blank.gif"" width=1 height=5 alt=""""></td></tr> </table>]]></HTML></Then></IfHasRights>";
toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com"">Test</a></HTML></Then></IfHasRights>";
sicet2AView.Update();
//listViewWebPart.ViewGuid = sicet2AView.ID.ToString("B").ToUpper();
//listViewWebPart.Visible = true;
webpartManager.SaveChanges(listViewWebPart);
web.Update();
but it doesn't work, my first trail is changing the text of the link then go to change the link any help plz
Mohamed AbdeenHi,
The “Add new item” button will redirect users to add new item with the default Content Type of the current list.
So a workaround can be like this: We can change the default Content Type of this list every time when users open this list view page, then the “Add new item” button will work
as you expected.
Here is a link with code demo about how to programmatically set a content type as default content type in a SharePoint 2013 List:
http://www.ashokraja.me/tips/How-to-programmatically-set-a-content-type-as-default-content-type-in-a-SharePoint-2013-List
We can put the code into a Visual Web Part and add it into your two views, then when users open a list view page, the code will be executed to change the default Content Type
of the current list.
To develop a custom web part, you can take a look at the links below with steps in detail for a start:
Creating Web Parts for SharePoint
http://msdn.microsoft.com/en-us/library/ee231579.aspx
SharePoint 2013 Create a Visual Web Part
http://raquelalineblog.wordpress.com/2013/04/25/sharepoint-2013-create-a-visual-web-part/
Thanks
Patrick Liang
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]
Patrick Liang
TechNet Community Support -
Add New Item in WM Cycle Count - LI11N
Can someone tell me the purpose of the new item button in transaction LI11N. I thought it would be for adding items NOT on the invenory document while entering count results, but that does not appear to be the case. When I select the new item button to add new items, I receive error "XXX storage bin does not belong to inventgory number." However if I add an item that already exists on the inventory docuemnt it allows the addition. That doesn't make sense to me because that's not an addition, its' really just a funciton of adding the counts for an existing item. Perhaps I'm missing something in my configuration or settings for WM or my materials and that's why this does not allow additions of items NOT on the document.
Thanks in advance for your response
Kathleen Phillips
Edited by: Kathleen Phillips on Jul 17, 2009 7:23 PMThank you for your response Sarita,
Just before I received your message I found some documentation that explained further the use of the "add item" button. You are correct, the add item button is only for entering counts for bins already listed on the inventory document, but it allows the addition of different materials for that bin - in the event that the bin is a "mixed" bin.
Thank you!
Kathleen Phillips -
How do I disable one item in a radio buttons control at run time
I need to disable one item in a radio buttons control. At design time
this is possible, but how do I do this at run time? Is this possible? I
cannot find a property per itemUse the property "Controls[ ]" - this gives you an array with references of each single button in the radio buttons control. These you can access with property nodes too.
Hope this helps.
Using LV8.0
Don't be afraid to rate a good answer... -
Item Button Positioning: Too far to the right with "Begin on New Field"
I'm attempting to add an item button inline with other items. If option "Begin on New Field" is set the button is too far to the right, however, if this option is unset the button is too close to the item on to its left.
Any suggestions on how I can get more granular conrol of this button's location?
Thanks in advance,
JeffJeff,
For situations like this I highly recommend the Firefox web developer toolbar. Since ApEx makes heavy use of tables for layout, using the "Outline >> Table Cells" feature shows you how things are broken up (with td tags) and offers clues to resolving problems.
There is also a CSS viewer along with a "Display Element Information" option that shows a full hierarchical view of any element on that page that you want to click on. Check it out. You'll be glad you did.
BTW, in your case, it appears that you simply have multiple elements of differing heights that are being vertically-aligned differently. The date picker icon appears to be bottom-aligned with it's associated text box while all the other elements appear to be centered on the row. Correcting it? Don't know. I'm sure Vikas or Carl could come up with a DOM/CSS hack that could make it look the way you want it.
Earl -
SAPGUI (new session) button disable in Netweaver
Hi all,
I have a few users where their SAPGUI's "New Session" button is disable if they launch it via Netweaver (single-sign on). However, if they sign in to another computer, this issue did not arise.
Likewise, any user that sign in to this particular PC will have it's "Net Session" button disabled.
They are using Internet Explorer 7 version 7.0.5730.13
My Netweaver version is SAP Netweaver 7.0 (2004s) SPS 15 (Release March 2008)
I'm just wondering (confirming) if the reason behind this is because of compatibilty between Netweaver and Internet Explorer (similar to compatibility issue between Netweaver & Internet Explorer 8 earlier this year)?
Or could it be due to a different (older) version of Java Runtime Environment that is installed onto the user's computer?
Thank you.Hello,
I think that SAP Note 1258154 - "EP 7.0: Different behavior for SAP WinGUI in the portal " could help :
https://service.sap.com/sap/support/notes/1258154
The related note "631198 - Behavior of SAP GUI for Windows in SAP Workplace/Portal" would be useful too.
https://service.sap.com/sap/support/notes/0000631198
Regards -
Modal dilog without close button on click of 'New item'
In SharePoint list view when user click in new item my custom application page opens, but I wants that page should not have X or close button on top right. how can i achive this. can use any way. JS/C#/CSS
You can hide this by jquery aslo like
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script type="text/javascript">
$("#id of cancel button ").hide();
</script>
if you are showing your CustomNewform.aspx in a SharePoint model dialogue then you can set "ShowClose" property of dialogue option. -
Disable the Item Availability Button based on Order type and Item category
Hi ,
My requirement is to disable the Item availability check button in VA01 based on the Order Type & Item category. Is there any user Exits/ Badi / FM available for this.
Thanks in advance.
Srinivas.Hi,
Although it is an old post I need to answer for people who search an answer to the same type of question. To hide a field
you can use transaction variant 'tcode:SHD0'. But it is not based on Order type and Item category. May be you can use
USEREXIT_FIELD_MODIFICATION form in user-exit MV45AFZZ. You can loop at screen and set screen-active = 0 in fields
where you want them to be inactive.
Maybe you are looking for
-
since installing the latest update, Firefox first operated with some errors but now will not load at all; it gives me the following error -- XML Parsing Error: not well formed locations chrome://browser/content/browser.xml Line Number 1191, column 20
-
Uploading an XML file from SAP into third party URL
Hi, I need to Upload an XML file from sap into Third party URL. Can any body tell me the possible ways in SAP to achieve this task. Also explain me the proceedure. Thanks in advance. -Namdev
-
Report with chart in 11g fails
Iam building an RTF template in Word with chart and some data. The chart is inside a group. Everything works fine from BIP desktop. When i upload the template into 11g and run the report, I get 'File does not begin with '%PDF-%' error. When i remove
-
Hi Experts, I have an question. Made an query but need 2 extra coloms with the total amount sales and puchase per item. SELECT T2.[CardName], T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[IsCommited] AS 'Bevestigd', T0.[OnOrder] AS 'In Bestelling',
-
Hi all, we are using ECC 6.0 version. I have configured for the app and trying to run the app program. 1) I have entered parameters 2) i have clicked on proposal then i got below mentioned message. Proposal has been released 29.01.08 17:09:02 actuall