3,102 reputation
2720
bio website
location Norway
age 27
visits member for 4 years
seen 20 mins ago

Oct
22
comment making an SP.UI print dialog
As far as I know you can only show the print dialog that the browser support. But if you want to force a print dialog you could always add a JavaScript to AdditionalPageHead and have this check for something in the URL onload (querystring like ?output=print or a hash #print, and if this is given trigger window.print. Example with jQuery: $(function(){window.location.hash.match(/print/) && window.print()})
Oct
22
comment making an SP.UI print dialog
I'm not sure if I understand the question. Are you looking for CommandAction="javascript: window.print()" or is that what you already have?
Oct
20
comment How to register .Dll to GAC ?
It's called DDayICal.dll.dll? Not just DDayICal.dll
Oct
18
comment SharePoint 2010 .NET Client Object Model - add item to Web property bag
I have the equivalent working code in JavaScript, I use get_fieldValues()[someProp] to read properties, but to add/set properties I must call set_item(someProp, someValue). Although I can not see set_item in the C# version
Oct
18
comment SharePoint 2010 .NET Client Object Model - add item to Web property bag
I think iulianchira is asking specifically for Client Object Model. And the statement that "AllowUnsafeUpdates are required" is plainly wrong. And I don't think one needs to call ...Properties.Update(). This worked fine for me: web.AllProperties.Add("testing", "Hello");web.Update();
Oct
17
comment RSS feeds, article URL and anonymous users
Thanks for the info. After all this time I would imagine this to be the correct answer.
Oct
16
comment Pro grammatically adding choice field with another field relation
So it has to be C# and can not be in JavaScript at all? If you could use JavaScript then this could perhaps help: sharepoint.stackexchange.com/questions/45912/…
Oct
16
comment Caml for “multi lookup has no values” condition
When you ran <IsNull><FieldRef Name='mlookup' /></IsNull> did you remove the <Eq> ? This should work: <Query><Where><IsNull><FieldRef Name="Customer" /></IsNull></Where></Query>
Oct
16
comment Get Checkbox status
You seem to have answered your own question, but in any case, by using the first line of code I gave you it should work fine. It does not weakly compare the boolean value true to the string 'true', as true == 'true' is false.
Oct
15
comment “Add new item”-button appears as visited link
Steve, I haven't checked if the property is correct, but in any case this I think is the correct answer. You should put it as an answer :)
Oct
15
comment Pass data from client side(javascript) to server side in Sandboxed solutions
Did you see this? sharepoint.stackexchange.com/a/45548/627
Oct
15
comment Test Transform on Standard SP Form Field
Using a good dev tool (such as WebKit dev tools in Chrome) and inspecting can get you far (in seeing why your style properties are not applied). Using !important although this is a bit hackish
Oct
12
comment Get Checkbox status
Good call, updating answer. Also, in theory it might actually be faster for those that care, there are some tests as well. I do find .is to be readable though, and it's even 1 char shorter :D
Oct
12
comment Default page when clicked gives error
Have you checked ULS?
Oct
11
comment Permissions for List or Library Columns
There exist third party solutions though, such as SharePointBoost PermissionBoost. I'm not sure about promoting commercial products on this page so I'm adding this as a comment this time :)
Oct
5
comment How to get a list of all Choice field options using Client Object Model
I didn't even know about context.castTo, this is brilliant. Thanks!
Oct
5
comment How to copy files from a network share to SharePoint each day?
If you run a script directly on the \\sharepoint server shuld you not be able to read files from \\networkdrive and upload them to a document library using either a PS script (not sure how in 2007) or a simple C# program and have this run in scheduled task?
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