Howto get SharePoint version using object model - sharepoint

With WSSv2 (SharePoint 2003) you could get the version of SharePoint you were working with
e.g. SPGloablAdmin.Version gives you "12.0.0.6219" for WSSv3 SP1
However its now obsolete (although still works).
Does anyone know the WSSv3 (SharePoint 2007) equivalent?
You have things like SPWebService.ContentService.Version but that version number is just a timestamp and doesn't seem to relate back to build versions.

SPFarm.Local.BuildVersion would probably give you the same result without having to refer to a SPWebService.
Cheers :)

SPWebService.ContentService.Farm.BuildVersion
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spfarm.buildversion.aspx

As maxim said, but i included it in a Powershell script http://snipt.org/nLS/

Related

Should Word Online support inserting text into a content control via ContentControl.insertText?

I am developing a Word add-in with Office.js that utilizes ContentControl.insertText. According to the documentation, this method is provided by WordApi requirement set 1.1, which is supported in Office Online. Furthermore, the documentation for ContentControls lists Office Online as being supported and does not mention any exceptions when it comes to using that particular method.
That said, when I run the add-in in native Word 2016, everything works fine, but when I run it in the Word Online environment, it fails with the following exception:
code:"NotAllowed"
errorLocation:"ContentControl.insertText"
message:"The action isn’t supported in Word Online. Check the OfficeExtension.Error.debugInfo for more information."
For reference, I am using it like so:
control.insertText(heading.Text, 'Replace');
I also tried running the example provided in the documentation, with the same results: it works in Word 2016, but fails with the above exception in Word Online.
Has anyone been able to successfully insert text into a ContentControl in the Office Online environment? If not, are there plans for this functionality to be supported?
Any input or clarification would be most appreciated! Thanks!
I'm an engineer from MS. There are some cases which contentControl.insertText is not allowed.
I think the cause of your case is that there is more than one paragraphs in the heading.text and you try to insert heading.text into a inline content control.
The inline content control means that the content control just some part of a paragraph.
In order to make sure the root cause of your scenario, could you share me the doc and the script code.

How to get Hyperion Smart View For Office Version add-in?

Can you get the version of Hyperion SmartView installed using visual basic code for excel ?
I need to get a string output with the version number or something that looks like this -> 11.1.2.2.000
regards
The Smart View for Office Developer's Guide explains the use of HypGetVersion() on Page 44. It will, among other things, return the version.

Excel-like filtering in LightSwitch

I'm pretty new to LightSwitch and trying to make a responsive filter feature to my tables.
This is what it looks like in Excel
Telerik extensions has this feature and you can use that in LightSwitch, but I can't afford the license.
Is there any other way to accomplish the same thing without paying $999? Thanks in advance
There is a filter control extension available here, but it seems that both the VS10 and VS12 versions are not fully functional (I did not have time to check by myself).

Comparison sheet for switch to Orion

I can't find a resource that clarifies the programming differences between Polaris and Orion versions. I've been googling for a few days now.
Probably you already read this article written by Jukka Niiranen
The Next Dynamics CRM User Experience: Orion
I think Gemini release will bring (at least) the possibility to use Xrm javascript with the new forms (actually is really a shame to don't be able to pre-fill a field or to do some show/hide logic) and provide the xml definition that will replace the ribbon.
I'm not sure if there is such a document yet. Before we start with Orion, we have to pass Gemini, first. And given the inconsistency between road maps and reality this far, it could as well be that Orion will be known as CRM-2014.

Problem identifying moss features from GUIDS

We are using a site definition and it has 3 feature dependencies that we are struggling to identify:
<ActivationDependency FeatureId="7EDD3C9C-8AC6-4ab5-A209-30B5DC422464" />
<ActivationDependency FeatureId="63FDC6AC-DBB4-4247-B46E-A091AEFC866F" />
<ActivationDependency FeatureId="22A9EF51-737B-4ff2-9346-694633FE4416" />
Can anyone identify what these features or give me an idea as to how to identify them?
I think they are out of the box moss features but they are not installed on the farm currently.
Thanks for any suggestions
22A9EF51-737B-4ff2-9346-694633FE4416 - Publishing Web Feature
The other two GUIDs are not googleable and don't return any results on MSDN. Are they Microsoft features, or could they be 3rd party?
An alternative to Copernic Dekstop search is a tool called Agent Ransack from Mythicsoft. It allows for really good text search in files (in the FEATURES folder of the 12 hive in your case) and it is free. Download it here.
I use Copernic Desktop Search and have indexed a copy of the 12 hive. I frequently use it to search for out of the box and custom features by GUID, just as you are.
As Andrew said, 7EDD3C9C-8AC6-4ab5-A209-30B5DC422464 and
63FDC6AC-DBB4-4247-B46E-A091AEFC866F are not standard features as they were not in the 12 hive. But if you download Copernic (or use a similar search tool) and point it at your solution, you should be able to find the feature definitions pretty quickly.

Resources