Tag Info

Hot answers tagged

4

The rest interface is not available to anon users by default. It can be enabled, but MS recommends against it. The preferred solution is to enable the search rest api for anonymous access, and retrieve all data that you need via that. A good article that explains the above in detail. Waldek's post that is a good explanation of how to enable the search api ...


3

It could be you're calling retrieveListItems before SP.js has been fully loaded, in which case try: SP.SOD.executeFunc('sp.js', 'SP.ClientContext', retrieveListItems);


3

With this specification, it is not possible to install SharePoint on it. You can try: Office 365 (SharePoint Online) http://products.office.com/en-us/SharePoint/compare-sharepoint-plans 90 day free trail of windows azure.http://azure.microsoft.com/en-us/offers/ms-azr-0018p/ check this ...


3

SharePoint 2010 Use ClientContext structure that is generated on the client-side and contains List View details: //find active View Id function getCurrentViewId(listId) { var viewId; for(var ctxKey in g_ctxDict){ var curCtx = g_ctxDict[ctxKey]; if(curCtx.listName == listId){ viewId = curCtx.view; break; } } return ...


3

Since Content Approval status is stored in List Item (_ModerationStatus) I would recommend to leverage any client APIs (JSOM, REST or SOAP) for that purpose. How to retrieve content approval status using client APIs JSOM function getListItemModerationInfo(listId,itemId,success,error) { var ctx = SP.ClientContext.get_current(); var web = ...


3

When you use URL _api/web/lists/getbytitle('TestList')/items(1)?$select=FolderUrl You will get two properties d:Description d:Url So you don't need to expand <m:properties><d:FolderUrl m:type="SP.FieldUrlValue"><d:Description>Google ...


2

So I figured out that the html for the "PurchasingSearch" page was not published. Both the .js and the .html need to be published.


2

Term.GetTerms method will return all the terms under a given term. Here is the sample code from your example: $ggterm = $termset.GetTerms("GG",$true) foreach ($term in $ggterm) { $childTerms = $term.GetTerms(); foreach ($cterm in $childTerms) { Write-Host $cterm.Name } }


2

Code wizards, correct me if I'm wrong, but I think the first is a lamda which basically states this anonymous function is bound anonymously, but is not instantiated. The second is a delegate that is also instantiated. It's the same as saying: MyHelloDelegateType2 Hello3 = delegate { MessageBox.Show("Default message!"); }; but you need to instantiate it, ...


2

Try adding following references to the additional page head of the page <script type="text/javascript" src="_layouts/15/sp.runtime.js"></script> <script type="text/javascript" src="_layouts/15/sp.js"></script> Then try using following script jQuery(document).ready(function () { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', ...


2

Add a reference to "/_layouts/MicrosoftAjax.js" and you no longer get the Type is not defined error. I got the answer here.


2

We have exactly the same case as yours, our production and beta environments are not in our hand and we have to do deployments using WSP solution package (even if those are updates to existing solutions) We also use content types, site columns and list definitions and instances, all declarative.. For the updates (I'm not sure if this is the best method but ...


1

Both are different. The SPListItem[field_Name] gives the value stored in the field. For example to get the value present in Title field use SPListItem["Title"]. However, SPListItem.Properties is a hashtable and will be usually empty for a list item. But key value pairs can be stored in this hastable. Example: using (SPSite site = new ...


1

There is no such option available. The best option I can think of is to edit those page and close the webpart. Once completed you can open it. Also its not a good idea to debug while users are on the system. Usually we have log statements which tells us what is wrong. Then we take that information and fix it in the development box. During off business hours ...


1

Please install Office Developer Tools for Visual Studio 2012: http://blogs.msdn.com/b/somasegar/archive/2013/03/04/now-available-office-developer-tools-for-visual-studio-2012.aspx This will add missing project templates to VS 2012.


1

Since you have jQuery loaded, perhaps you can use the $.getScript() function to load SP.js: var scriptbase = siteUrl + '/_layouts/15/'; $.getScript(scriptbase + 'SP.Runtime.js', function() { $.getScript(scriptbase + 'SP.js', retrieveListItems); } ); Info on $.getScript() here.


1

All services Applications are farm level but you can manage them which Web App want to use it or not. When you create a visio graphics Services, it will added into Default Application Proxy Group. By default all Web Apps will consume this service. Now you have to change the Service Application Associations for Default Group and remove this Services ...


1

As per my little experience with SharePoint and A lot of Discussion with MSFT folks. I come to this Point First, you have to make sure you need CU to Fix a problem in your Farm Dont apply those CU /Fixes from Windows Update.Always Turn off Automatic Update on Server Dowload the CU from MSFT site and apply. You need to plan it, test it, schedule a down ...


1

You should keep the data in a single list and create separate views for different teams. List views can be created by opening the List Settings and create view.


1

Isn't possible expand lookup via Rest Api. Only for user(column default) and field with atribute Deferred. But have solution for this: loop items and get all items and selecting only the SpeakersID _api/Web/Lists/GetByTitle('Topics')/items?$select=SpeakersId will return as show image below: but isn't suficient for get user info: Update(2): then you ...


1

Use this article to find about how to use PowerShell with SharePoint online. http://technet.microsoft.com/en-us/library/fp161362(v=office.15).aspx Once this is done, you can use below to change the ModifiedBy etc $web=get-SPWeb "You Web URL" //Get a new object called $web to pick site $list=$web.Lists["Your List"] $replacedUser ...


1

If you're creating Apps for SharePoint you need to define an authorized remote endpoint in your AppManifest and then use the Web Proxy: http://msdn.microsoft.com/en-us/library/office/fp179895%28v=office.15%29.aspx Example using the JS Object Model Define http://services.odata.org/ as a remote endpoint in the AppManifest file of your App for SP project (or ...


1

You can add custom action to the list callout according to this article. In a nutshell: function myCallback() { var link = window.location; // for current item you can probably get this from renderCtx, can't test right now var emailSubject = "email subject" // Here you can add article title, or just static string window.location = ...


1

ADI does not support importing pictures from AD. Period. :)



Only top voted, non community-wiki answers of a minimum length are eligible