2,054 reputation
2614
bio website
location Norway
age 26
visits member for 3 years, 1 month
seen 7 hours ago
stats profile views 353

Nov
13
comment Lookup between lists with additional data
I'm not sure if I did this right, but tried creating a chat, as I'm afraid this question is escalating: chat.stackexchange.com/rooms/6408/…
Nov
13
comment Lookup between lists with additional data
Hehe yes I have heard of them. But to solve my problem I would end up with three lists, and a "joining" list (ToolboxTools) with SPFieldLookups. Quite the mess. So that would even make ´NewForm´ hard to use, as one must add references in ToolboxTools before the item in Toolbox is created. (Three lists is how I would do it, and I have a feeling that solution is not very good).
Nov
13
comment Lookup between lists with additional data
Sorry to confuse you. I don't have a SQL, I don't have any lists. I'm trying to ask for the "perfect" setup to solve the simple scenario with plain SPLists in SharePoint
Nov
12
comment how to show HTML code in column?
Nice work @StuartPegg , it does the work perfectly. First I tried the JavaScript-way, it's only 2 lines with jQuery after all. But the asynchronous loading and ExpGroupRenderData (and ExpGrou...) didn't want to play along.
Nov
11
comment Programmatically Get Page Layout being used by a SharePoint Page
That foreach looks very suspicious, have you tried foreach (var item in myPagesColl){...}? And what does PublishingPage.IsPublishingPage(item)) give you?
Nov
11
comment Access ListItem.Properties from Javascript COM
Me neither actually. What I did was to inspect the payload sent from server to see if my properties were actually sent at all. Then I noticed that they were contained in MetaInfo.
Nov
9
comment I cant hide the Title field programatically
That would be my only suggestion, as I ran and verified that it worked before I posted it here :) But I only tested on a normal SPList, which is probably not what you are looking for at all.
Nov
7
comment Does jQuery ship with SharePoint?
(function($){...})(jQuery);
Nov
6
comment CSS Declaration in SharePoint Designer 2010
Although not very applicable for SharePoint because of doctype it is interesting to know that link element is actually a void element (empty content model), so that will be interesting for SharePoint 2016 =)
Nov
6
comment Working around https
If your farms have different hosts or ports then using OpenPopUpPage will still break Same Origin Policy, because of the iframe it uses.
Nov
6
comment Call Javascript on Sharepoint Calendar add button Click
Note that will only trigger for the large button (hence "NewListItem-Large"). You can run that in console when you see the button. document ready will not work, as the Ribbon is loaded asynchronously.
Nov
6
comment Call Javascript on Sharepoint Calendar add button Click
What are you trying to do? You can hook into the button, for example with jQuery: $('[id="Ribbon.Calendar.Events.New.NewListItem-Large"]').click(function(){...})‌​ or even override the methods directly in SP.UI.ApplicationPages.CalendarMouseHandler. But this will only tell you if the modal window were opened. You could however override the whole modal
Nov
4
comment Sandboxed solutions get all sharepoint lists in sitecollection
@PerJakobsen, I have updated the answer with code I hope is safer. Although I love writing code like this: gist.github.com/a7c6efb2360382933896 I believe this is more straight forward (and faster, for those that might care :) ).
Nov
4
comment Sandboxed solutions get all sharepoint lists in sitecollection
Yes I see, it's a property ParentWeb on SPWeb which will be reopened (m_parentWeb in my dissasembler). Although it seems to do this when it is null only. @PerJakobsen you got a text-book solution for this? I see how one could wrap in using for each web, and then do work inside it, and even use Event as a callback. Feel free to edit the post :)
Nov
4
comment Sandboxed solutions get all sharepoint lists in sitecollection
I didn't know that. So SPList got a reference to the original SPWeb object, which will revitalize when it is called upon
Nov
2
comment Add Custom Javascript to Quick Launch? +Skype Button
For the first example you would not need the item ahead of time. For the latter you would. Choose which one to use :)
Nov
2
comment Possibility of creating a normal public facing website with Sharepoint Online?
A WSP would be a sandboxed solution in your case. I have played around some with this, see my testpage . This is a WSP I upload and enable on the site, if interested you can see the [source](github.com/eirikb/www.eirikb.no). Again a bit self-promoting, so just leaving this as a comment :)
Nov
2
comment Moving list template to different farm with different site template
Was the list template created with the same language/locale?
Nov
2
comment Possibility of creating a normal public facing website with Sharepoint Online?
Does the public facing site have to be editable through the web interface, or is designer/WSP enough?
Nov
2
comment CAML Query for Values Not “In” (with sufficiently different title to let me post the question)
The column not being ID changes the matter. You could also build a huge CAML by nesting And and Neq, which again can be made easier through U2U CAML Builder or CodeCaml. But still manual, and quite messy.