Answer Questions
John Cronan Exception encountered using SPSecurity.RunWithElevatedPrivileges
I am encountering an exception when attempting to run elevated code within a web part, and not obtaining an exception when the same code is run from within a list item event handler. In both cases, I am performing the following steps: 1) Elevating to the SHAREPOINT\system account using SPSecurity.RunWithElevatedPrivileges 2) Opening a new SPSite using the site GUID of the list item I am going to modify, new SPSite(item.Web.Site.ID) 3) Opening a new SPWeb using the web GUID of the list item I am going to modify, Site.OpenWeb(item.Web.ID) 4) Opening a new instance of the list item, web.Lists[item.ParentList.ID].GetItemById(item.ID) 5) Breaking the security role inheritance of the new list item, newItem.BreakRoleInheritance ...Show All
Naveeeen Person Column in Lists
posted this over in general QA and thought it might go here better: Using MOSS and the BDC, we have the capability to add Business Data as columns in a list. How would I go about creating a "People" type in my BDC that pulls the data from the user profiles in MOSS What I would like to do is have a drop down or search screen for selecting a person from the profile store instead of keying the information into a contact list and then having the information be out of date , etc... It would be much easier to just allow them to select a person and pull the data from there. They would also get the "Presense" pawn next the persons name etc.. which would be very useful. Does this sound possible Has anyone done this ...Show All
Howey Huo abstract vs interface
hi everybody, In my current application,ther is a common fucntionality(method) which can change frequently. Should i use the abstract class or the interface to put the signature of the method (no body )inside. The answer which comes in my mind is interface but then why can't we use abstract instead by just giving the signature of method in the abstract class. Do interfaces or abstract differ in how much memory they consume and also in the performance of the application. Please elaborate on what is to be used prefably in which scenarios as i read many articles but none of them gives indepth knowledge. Regards Valuable words, Udi. Thanks so much for the reminder In effect, reusability by ...Show All
Gaucci Typed Dataset or Custom Classes
Hey friends, I am a VB developer, soon I am going to start a new project. It will be a client application, I will use a SQL server database. I am used to use custom classes, I create my onw variables properties, events and methods. I am aware of the Typed Data Set and thinking about using it on my new project. The problem is that I have never used it, I do not know the minuses and plusses of the Typed dataset. Now, my boss and me on the desicion phase, we want to implement the most efficient and easy maintainable one. If you ask me , I'm quite happy with custom classes :)) My opinion is that the custom class is better for performance purposses, because I create properties and meth ...Show All
Zia Khan Cannot delete infopath forms from Form library
Hi, Our requirement is as follows. We have 2 form libraries "Saved Forms" and "Submitted Forms". Both the form libraries have a common infopath template. when the user saves the form, the form gets saved in "Saved Forms" library. when he clicks on discard button, the form should get deleted from "Saved Forms" library and then it should get saved to "Submitted Forms". I am getting an error: "Cannot complete this action. Please try again." while deleting the form from "Saved Forms" library. There is an event handler on the "Saved Forms" library on item added. The event handler provides item level permission i.e user can see only those forms which he has ...Show All
QWERTYtech Can't make wider Tree view in Quick Launch Bar
The latest version of SharePoint supports a tree view of the site structure in the Quick Launch bar. I have used SharePoint Designer to make the Quick Launch bar wider but the tree view remains at a fixed width when the vertical scroll bar appears and its properties do not show anything about width or scroll bar. Does anyone know how to wider it ...Show All
William Biesty WSS V3 - SPListItem["Assigned To"] returns special character (#)
Hi, I am trying to retrieve a value from a listitem and it is returning the desired value (name) preceded with three additional characters.. Any idea why it is happening. ex: SPListItem objItem; string strName = objItem[ "Assigned To" ].ToString() //strName has the desired value in it, but is preceded with 1@#.. Thanks You need to use the SPFieldUserValue object. example: private SPUser GetUser(SPListItem item, SPField userField) { string currentValue = item[userField.Title].ToString(); SPFieldUser field = (SPFieldUser) userField; SPFieldUserValue fieldValue = (SPFieldUserValue)field.GetFieldValue(currentValue); return fieldValue.User; } usage: string strName = GetUser(objItem,obj ...Show All
rternier KPI Detail Web Part
I installed the trial version of Office SharePoint Server 2007 and enabled Enterprise features. I then followed the instructions here to create a KPI list: http://office.microsoft.com/en-us/sharepointserver/HA100800271033.aspx Now I want to display the KPI's using the KPI Detail Web Part, but I don't see that particular web part when I bring up the Add Web Part screen. In fact, I do not see the Dashboard section as mentioned in the article: "In the Add Web Parts dialog box, in the All Web Parts section, under Dashboard, do one of the following. To insert the entire KPI list, select Key Performance Indicators. To choose one KPI from the KPI list, select KPI Details. " Any idea how I install the Dashboard web parts ...Show All
hazz Eventing in CSF
Hello, I would like to get more details about how to use eventing when writing a WES for CSF. First of all I would like whether there is any difference between the Provisioning Events, Health Events and Usage Events The provided samples with the WES toolkit don't implement any of them (except usage) so I would like to know if they are all implemented in the same way. To the more importaint question: how do I configure the sample from the WES toolkit for Usage eventing to work What is the role of Usage Event Poller included with the WES toolkit Generally what I would like to know is how to send events Is there any more documentation written on this matter And one more dummy question. What is the difference between sending a message in CSF ...Show All
pat27 Can you use Active Directory Manager data in workflow?
I can’t seem to find a way to automatically rout a workflow task to a user’s manager using the person’s "manager" value from Active Directory. This seems like such a basic task, but I don’t see any option for it in the workflow roles available in SharePoint or SharePoint Designer. Has anyone had luck with this I found this site that has an Active Directory Role sample. I installed the WFSamples but haven't had time to look at them yet. I know that you can't access AD roles in InfoPath, and it might be the same for SharePoint Designer. I think Visual Studio will be the way to go. http://msdn2.microsoft.com/en-us/library/ms741720.aspx I say start with one workflow that gra ...Show All
dalila Efficient Image comparision and sending Image Difference
Scenario: Client Program needs to send Screen shot after every 100 milli seconds. Now i want to compare 1st sent screen shot with the next captured screen shot. I want to calculate the image difference and send only the difference betwwen the two screenshots to the server. and then the 2nd Screenshot will be genrated on the server. Conversion to byte array and then comparision is possible but that is very slow. I need an efficient method. Because speed is the concern overhere. regards Its Done! Using XOR operator. Process Image1 XOR Image2 = Result Passing Result to Server that has only the difference in Image And at server end Image1 XOR Result = Image2 regards Sarika ...Show All
Nodnarb501 override the built-in function
The post " Understanding Excel Services UDFs " say : Developers create custom calculation packages to provide: Custom implementations to built-in functions. Does it mean i can override the built-in function I implement a udf named Rand() which is a built-in function in excel. [UdfMethod] public string Rand() { return "test"; } However it return a random number . That is not my not expect result :( Any suggestion That is a good question - the documentation is somewhat confusing. All that line means is, that you can create your own version of a function - but you cannot overload or override it. To do what you want, you will have to create a UDF called something like MyRand() (or whatever makes sense) and use ...Show All
kushpaw architecture guidance.
hi everyone, iam planning to do a project and iam in analysis phase of the project. desc: it is a very simple project. lang: asp.net ,C#,oracle9i. i completed all the ui related parts.the project is very simple get the datas from the database,update those data or insert new data.uploading and downloading of files.excel uploads and downloads.user administration. now iam going to design the business logic and data access logic. i need to implement form based authentication. can any one provide me guidance for desiging the data access logic ,security logic thanks for your valuable information hi Frank carr, iam not aware of the microsoft enterprise library. could you give more details on microsoft ...Show All
tenchyz Samples for Profile Manager
Are there any samples available for Profile Manager Would be great if somebody can share. Thanks in advance Ruchi Ruchi - We are going to ship a sample for the Profile Manager in September. Thanks hi Senthil, Thanks for the update. I have one more query. I am not clear on who would be consume Profile Manager's output. As I understand we can store User Service mapping through Profile Manager. Some example scenarios for usage of Profile Manager would be helpful. Is it also possible to store User - Action mapping through Profile Manager Can we have something like User1 is able to access only Action1 of Service1. However USer2 can access Action1 and Action2 of the same service. ...Show All
ZHiquan Subdomain and local ip address
Hi, I've created a webapplication and link a subdomain to it. Also, I fill in the subdomain in the field Load balance url. Now all links are accesible throught the subdomain. There is just one problem: when i want to add something to the site accessed by the subdomain, all links work except the actual adding of for example a list. So the links to add a list work, the I want to actually add it (create) then the url in the addressbar changes to the local ip instead of the subdomain. Anyone any idea T.i.a., ratjetoes. your absolutly right. when i click site settings i see under Site Information -> Site Url an url containing the local ip address instead of the intended url. b ...Show All
