Adding Edit Properties To First Document Callout Menu In SharePoint 2013 - javascript

I have a SharePoint 2013 page with a document library. When the user clicks on a document "..." callout, I want to add Edit Properties to that menu instead of forcing the user to click on the second "..." to get to that option. Can anyone help me do this with putting some Javascript into the Script Editor web part for the page?
TIA!
Andy

Instead of going through all of that, SharePoint offers a quick edit option for your document library. Go to your library settings -> choose the view -> and add the edit (link to edit item) column.
Simplest way to denote to your users a quicker edit feature.

Related

How do I make specific inputs go into another .html file in the project?

I wanted to make specific inputs go into another part of a site (e.g. https://myexamplesite.com/anotherpartofit.html)
And also make those specific inputs be the ones that someone saved it in.
An example of what I think would work is: Get value from input 1 from /apartofit.html and put it in input 2 at /anotherpartofit.html and make it non-editable
If it needs to use a database, I would prefer if you could help me with firebase (Google's Database). But in my knowlege, it probably needs to use javascript, so I'll be tagging it, if it doesn't, let me know!
in visual studio or notepad or every offline web creating spaces you can't but if you buy a domain or simple , online site , you have to crate a page and get the link of that page then open another page create a button set the button's href to link of pervious page finally hit the button !

CKEditor: Possible to invoke action by double-clicking on text inside editor?

I've googled and found nothing, so here I am. If this is in the CKEditor documentation, I haven't found it there either.
The powers that be want a user to be able to double-click on a piece of text (say, a word) in CKEditor, and have that be able to open up a new HTML element outside of CKEditor (such as a Bootstrap Modal). Is this even possible, and if so, how do I go about it?
For example, I've written a separate "Agenda Builder" which is really just where you pick some stuff from drop downs like the name of a meeting room, how many seats you'll need, etc, and enter some dates and times. That all gets saved to the database. But in the text in CKEditor, they want to be able to double-click on [[agenda]] and have it then open up that feature for the user to create their agenda and save it (an entirely separate thing from CKEditor), and then later I will "insert" the agenda into the document in place of the [[agenda]] tag. Make sense?
Thanks!
I think I manage to find the answers to these after posting the question... here's what I came up with:
editor.on('doubleclick', function(e) {
var element = e.data.element.$.innerText;
if (element =='[[agenda]]' ) {
alert("clicked on agenda");
}
});
We solved this exact scenario by creating a CKEditor Plugin(for our own use). When you highlight a word and select a drop down from the plugin, it edits the element highlighted.
In our scenario we used an Angular directive for the navigation.

Hiding pop-up window of Contract Template Explorer in MS CRM 2011

I faced with next problem in MS crm 2011: how can I block the pop-up window of Contract Template Explorer via JavaScript when user clicked on the contract item in the pane left menu via right mouse button and select the new item.
I cannot change user rights, so this variant is out. Same problem with the ribbon "New" button of the Contract entity was solved by creating custom "New" button and selecting by script default contract template. Please help me! I will be very grateful for your help.
First of all what you are looking to do is pretty far outside what is a supported customization. The supported method would be to leave the menu item as it is, and disable the users ability to create new contacts through security or by modifying the form.
That being said, if you are still interested in how it could be done, you can accomplish it with a ribbon modification.
You first need to create a custom button.
Create an enable rule that will run javascript in a custom web resource.
Deactivate the button
Have your custom javascript web resource select an element with a title of "Create a new record" and then disable or remove it in the DOM.
There is a good article on the basic principles at this link
http://mscrmtools.blogspot.com/2012/01/how-to-colorize-grid-rows.html
It uses the method to colorize the results of a list view, but once you've been able to execute a custom library on the page you can do whatever you want.
Stressing one more time that this isn't supported.

Javascript to hide buttons in a Sharepoint Document List

I've followed/modified the directions in this question to hide the "UPLOAD" button on a Sharepoint 2007 list. The issue I'm encountering is that the dropdown arrow for the Upload menu still appears. How can I get rid of the whole menu item?
Thanks
Edit: Take a look at http://features.codeplex.com/. It has Toolbar Manager
This Feature allows you to selectively show and hide menu items on the standard list/library toolbar.
Hide the zz17_UploadMenu_t table.
If you understood the answer in the question you linked, you wouldn't be asking this question. :-)
Use tools like firebug/Developer Tools (IE) to find solutions for these kind of issues.

JqGrid add button to advanced search dialog

I'd like to add the ability to save a complex query built up in the advanced search dialog.
Saving the generated SQL is no problem, but I'm not sure how to add buttons to the advanced search query dialog to give users the options of saving / loading a query.
Any advice would be appreciated.
There is no way to do this directly using the jqGrid API. However, you could use one of the optional events such as afterShowSearch to define a function that will dynamically add such buttons.
I suggest using FireBug to help reverse-engineer exactly where to place the buttons.

Categories