3,007 reputation
2720
bio website
location Norway
age 27
visits member for 4 years
seen 7 hours ago

Oct
3
comment Add various Fields in a Sharepoint List Programmatically
Your method? In that case just loop through them. You could add SPField directly, but it's a bit odd I think because of the SPField constructors
Oct
3
comment Create SP People Picker on the client-side
It would be awesome if you put your code (or a solution) on codeplex/github/gitorious or similar. ❤
Oct
3
comment Create SP People Picker on the client-side
Ok I see the functions, pretty stuff. I believe you have to extract and include these yourself. They are written directly out into the page (for example in NewForm.aspx). You also need to search/replace the names in all of them. I believe it should be possible to make these a bit more general though, so if you happen to do it maybe others would be interested
Oct
3
comment Create SP People Picker on the client-side
Sorry you are right, I need to look into it
Oct
3
comment Create SP People Picker on the client-side
You mean the JS function arguments, not the functions themselves right? In any case yes I believe you could just trim those down, but make sure you update the ones with $ instead of _ as well
Oct
3
comment How to get PublishingRollupImage for page in Page library with REST and jQuery?
If you only need one item, use var item = ctx.get_web().get_lists().getByTitle('Pages').getItemById(42); instead of var items
Oct
2
comment How to get PublishingRollupImage for page in Page library with REST and jQuery?
You can't return a value, it's asynchronous, you need to write a callback. Like: function Get(cb){var ctx=...; ctx.executeQueryAsync(function(){ var rollupImage = ...; cb(rollupImage);})}
Oct
2
comment How to get PublishingRollupImage for page in Page library with REST and jQuery?
When I run that code I get the URL. But perhaps you got a lot of data, maybe you must do a items.getItemAtIndex(0).get_item('PublishingRollupImage');ctx.load();ctx.execut‌​eQueryAsync(function(){console.log(items.getItemAtIndex(0).get_item('PublishingRo‌​llupImage'))}) after the comment (// Get the first...)
Oct
1
comment “Linked Item” Lookup available in browser by not SPD2010?
Does "Linked Item" really make a difference anyway? It's just LinkTitle, the computed field of Title, which will not render as a link in your lookup anyway
Sep
29
comment How to use dll file and resource files in Sandbox Solution of SharePoint Online (Office 365)?
Oh my, I completely missed that. But I think you can actually do this with a pure DLL as well
Sep
28
comment How to modify xml list item property via powershell
Try using Date as I did in my example, does it work?
Sep
28
comment How to modify xml list item property via powershell
Why must you use XML, why not $dd.GetItemById(1)["Created"] = Date
Sep
28
comment How to retrieve all items from a list (with custom fields) by javascript object model
Did you try Internal Name? :)
Sep
28
comment Error on Feature Deactivation with Power Shell Script
If you set it to "No activation" your feature will simply not be activated automatically on deploy. Without this debugging will never hit your breakpoints or fire on exceptions. And as far as I know this also applies to deactivating
Sep
28
comment Error on Feature Deactivation with Power Shell Script
It's a property in Visual Studio when you select your SharePoint project
Sep
28
comment Error on Feature Deactivation with Power Shell Script
Have you checked ULS? And have you tried debugging? (I think you have to disable "Active Deployment Configuration" - yes even for deactivating)
Sep
28
comment Advanced filtering XsltListViewWebPart with custom webpart
Maybe you could use any of the Filter Web Parts perhaps?
Sep
28
comment Advanced filtering XsltListViewWebPart with custom webpart
Would this help: sharepoint.stackexchange.com/a/45963/627 ?
Sep
27
comment Get web part Id with javascript client OM
The one I used with .closest should work, it reads as > "recursive parent of your element (.my-hack) with attribute 'webpartid' defined"
Sep
27
comment Overriding function in imglib.js
If you want a recursive endless function call, yes. But I don't think that is what you want