The object-model tag has no wiki summary.
2
votes
3answers
34 views
Deny user access from SharePoint Native but allow it from custom application
How can i restrict a user from entering SharePoint - unless he is using my custom application?
For example, a user tries to open http://Mysite , he gets an access denied error.
But as the same time, ...
0
votes
1answer
23 views
Changing PublishingPage.Layout doesn't change the content type?
I'm trying to update the Layout of the default.aspx page in my SharePoint publishing site and although the Layout does get updated, the ContentType of the page does not. Anyone have any ideas?
Based ...
3
votes
3answers
102 views
What options are available to me to find lists that were created using a specific list definition?
I have many lists, some of which were created using a custom and now-obsolete list definition. I need a programmatic way of finding out which lists were created using that old definition.
Currently ...
3
votes
2answers
50 views
Efficiently determine if a List is using item level security
How can you efficiently determine if any of the items in a List don't inherit their security from the List?
You could use SPListItem.HasUniqueRoleAssignments but this would require iterating through ...
0
votes
0answers
13 views
Possible to prevent FullTextSqlQuery from logging to Search Administration Web analytics?
I would prefer to only log searches that are not executed using the Object Model.
Is there something that I can do either when I am declaring my FullTextSqlQuery object or in the Search ...
0
votes
1answer
36 views
SharePoint Object Model: how to query ONLY last major version of data from Publishing Page?
I came into a situation where I wanted to use SharePoint Object Model SPSiteDataQuery to query data from Publishing Page.
However, I dont want the data query based on the permission on current login ...
2
votes
3answers
60 views
Programatically searching the current site collection only
I'm trying to programatically search a sharepoint site. The problem is, the results returned are from all site collections. How can I limit my search to only one site collection.
Here is how my code ...
0
votes
2answers
65 views
Performance of Client Object Model vs. Server Object Model
We are looking to deploy an Intranet using SharePoint Foundation. I am targeting the Client Object Model for this project to avoid Master Page customization and building custom Webparts and leverage ...
2
votes
1answer
81 views
Sending an email using sharepoint object model sharepoint 2010
i have been working on generating email in an event receiver using share point object model..i used the sputility.sendemail method..2 things are necessary in the email(email from and HTML body)..so i ...
1
vote
1answer
60 views
How to programmatically read the contents of InfoPath form?
I have form with data in repeating table. I need to use the object model to read the contents and display it on a webpart. Is it possible? Can any of you help me?
0
votes
2answers
67 views
Event reciever (itemadded) sharepoint 2010
is there a way where we can get the link(editform.aspx) of item just added to the list-- in the itemadded method of the event receiver (Share Point object model)
4
votes
1answer
93 views
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
this code thow an exception at "Item.Update();"
private void AddEmail()
{
site = SPContext.Current.Site;
web = site.RootWeb;
...
1
vote
1answer
53 views
Retrieving the values from the list view SharePoint 2010 using object model
I have a list (tick_gen) which has a view called "tick_dView" this view just has one row. How can I fetch the value of "Tick_id" column using SharePoint object model?
2
votes
1answer
52 views
SharePoint object model
I'm looking for articles on custom model mapping for Sharepoint (2007 / 2010). Google's not returning a lot of hits on this, are the any articles out there? Best practices, mapping and such?
I'm ...
2
votes
1answer
41 views
How to create InfoPath forms dynamically?
I have an InfoPath form published to a library... I need to create forms dynamically with siteuser as form name... I need to achieve it in Object Model... Can any of you help me on this...?