Tag Info

New answers tagged

0

Your second query just returns files filtered by File.Name and nothing more. The following examples demonstrates how to retrieve files from a specific folder. How to retrieve Files from a specific Folder using SharePoint REST Assume a Documents library contains Guides folder. Option 1 Using SP.Web.getFolderByServerRelativeUrl Method Endpoint Uri: GET ...


1

Selecting items in folders with the REST API is a bit different than selecting items in the library itself... (like in your first example) The way that I get the items in a specific folder is with the /_api/web/GetFolderByServerRelativeUrl("<serverRelativeFolderUrl>")/files endpoint... So in your example, you want everything in ...


0

So, I came across this as well. Before we updated to November 2014 CU, all was working as expected. The Dropdowns were displaying their usual Complex behaviour before the upgrade, but for some reason, not after. I spent a day tearing what is left of my hair out, before I thought to look at a decompile of the code that renders a lookup field (in ...


1

Try this code $(document).ready(function(){ $().SPServices({ operation: "GetListItems", listName: "Project review", webUrl: "/internal/", async: false, CAMLQuery: "<Query><Where><Gt><FieldRef Name='Id'/><Value Type='Number'>0</Value></Gt></Where></Query>", ...


0

You can find the count using function GroupOverride(Ctx, group, groupId, listItem, listSchema, level, expand) { var html = '<div style="font-weight:bold; display: inline-block;">'; html += listItem[group] + ' :: <div>'; html += '<ul>'+ listItem[group + ".COUNT.group"] + '</ul></div></div>'; ...


0

Try this- slight change in the HideColumn function function HideColumn(Column,IsHide) { if(IsHide=="True") { $('nobr:contains("'+Column+'")').closest('tr').hide(); $('nobr:contains("'+Column+'")').closest('tr').nextAll().hide(); } else { $('nobr:contains("'+Column+'")').closest('tr').show(); } }


-1

Try this way: Remove the inline height and move to external css Now apply your JQuery Script.


1

Try using below code if($("input[Id^='Title']").val().trim() == "") { bvalSubmit = false; }


0

You can add a web part to the edit item form which has your custom jQuery script. Click on the List, then in the ribbon click Form web parts, then Default Edit Form On the Default Edit Form, add your script editor or content editor web part linking to your script.


0

You can examine the built-in filtering functionality of list view web parts - if you use the header dropdowns, they filter the list view by changing the url and adding parameters. Most of the fields, however, are not very filter-friently. For example you cannot have multi-select on one column, and you cannot use regular expression to select all items ...


0

In your JSLink script start with (window.jQuery || document.write('<script src="//ajax.aspnetcdn.com/ajax/jquery/jquery-1.10.0.min.js"><\/script>')); Result will be something like this. (function () { (window.jQuery || document.write('<script src="//ajax.aspnetcdn.com/ajax/jquery/jquery-1.10.0.min.js"><\/script>')); var ...


1

ScriptLink directives will always look in the /_LAYOUTS/1033 directory for your script. If you are not deploying the files to the file system and instead using the Style Library, you need to use the standard <script> tag. <script type="text/javascript" src="http://2008-sp-2013-jc/sites/labeller/Style%20Library/jquery-min.js"></script> ...


1

SharePoint renders dropdowns differently in Internet Explorer depending on whether they have fewer than 20 options or 20+ options. (In Firefox, Chrome, and other browsers, SharePoint doesn’t give us this “benefit”.) You can use SPComplexToSimpleDropdown function as below: How Does It Work? The SPComplexToSimpleDropdown function works like this: When the ...


0

If you've checked all of content approval/check-in/publishing issues and are still having the same problem I would check one more thing to make sure it's a permissions problem (which is really what it seems to be) -- have a non-admin user attempt to access the asset directly at its url (like http://yourSPServerUrl/Style%20Library/assets/jquery-1.8.0.min.js) ...


0

Make sure the js & css files in the Style Library are published and approved.


1

This will work only if the drop-down control has an option with empty value. Try below $("select[title='"+Hide_Column+"']").val(''); Another option is to select the first option as below $("select[title='"+Hide_Column+"']").find('option:eq(0)').prop('selected', true);


0

Thanks Amal your code just made me to go in the right direction. Actually i have passed empty values to my sharepoint dropdown values . So on change of the dropdown event i am getting "Undefined" . I used the below Code to achieve my scenario. I have another issue which i will post it in a new one. DropDownColum.change(function() { var value = ...


0

You can change your logic as below $(document).ready(function(){ $("select[title^='Drop'").change(function(){ var title = $(this).attr("title"); var selected = $(this).find("option:selected").text(); if(title == "Drop1" && selected == "") { $(select[title='Drop2']).hide(); } else{ ...



Top 50 recent answers are included