|
Ok. I had this problem once, too.
My Solution was, to remove all Features, add one, deploy it, add another, deplay again and so on.
So I identified the Feature with the problem in it. After you did that it should be easier to find the problem.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
I did this task,,
http://www.dotnetcurry.com/ShowArticle.aspx?ID=695
but the problem that when I try to start the workflow from my site ... it don't work and say " Failed on Start " ,,, and after 24 hours , the workflow disappeared from the site !!! Any one have a solution plz?
|
|
|
|
|
Have you checked the workflow for errors in SharePoint Designer?
Have you the permissions set properly?
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
yes I checked there is no errors ,,, and permissions is ok ... and same problem ,, failed to start
|
|
|
|
|
Uh, sorry. Then I don't know. Did you tried a simple Workflow on a standard-library? Does that work?
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
Don't you think it would be a better idea to try and contact the author of the article for assistance?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Actually the problem is not in this workflow ... I posted this article as an example for the steps I did... the problem happen if I did a 2 steps custom workflow .. "Failed on Start" and after the weekend .. I can't find my WF on site so I had to re publish it again ... I think both errors related to each other ..
|
|
|
|
|
|
I'll ask this again. I've got a list that contains a field that is type "User". I was planning on using a people picker or people editor control on my app page to get the name of a user's Manager and place that info into the user field, but I'm not sure how to do that.
|
|
|
|
|
So that ist no question. Where do you stuck?
By the way, before answering the untold question you should answer, where the manager is stored? Do you have this Information in AD (every User has a department, someone is manager of the department), do you have a database with this information, do you have MetaData about it? Or do you habe a simple List?
So, perhaps you see, there are many ways for reaching the aim, of displaying the manager of a user.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
|
Ok, next question is, if you have synchronized the user profile service with the ad.
If it is synchronized all data is there. You just habe to read it:
using (SPSite Site = new SPSite(“Site URL”)) {
using (SPWeb Web = Site.OpenWeb()) {
SPList UserInfoList = Web.Lists[“User Information List”];
SPUser User = Web.Users.GetByID(1); – Put the User ID Here
SPListItem UserItem = UserInfoList.GetItemById(User.ID);
...
}
}
You can read the Department with:
UserItem[“Department”]
Afterwards you read the "Job title" for all the Users in the department (same way) and look up the head of the deparment. Perhaps it's not in the job title but in another field, depending on how the information in the ad is filled.
Well, so that how to do it with informations in the ad.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
I'm not trying read info (yet), I'm just trying to add to the list.
So, here is what I'm using on the form:
<SharePoint:PeopleEditor ID="sppeManager" runat ="server" MultiSelect ="false" />
Here is my field:
<Field ID="{b12b1382-dac6-4e43-9c67-92de741279cc}" Name="Manager" DisplayName="Manager" Type="User" />
And here was the code I was trying to use to insert the value from the form into the field:
Dim managerID As SPFieldUserValueCollection = New SPFieldUserValueCollection()
Dim manager As String = sppeManager.Entities(0).ToString
site.EnsureUser(manager)
Dim mgrAccount As SPUser = site.SiteUsers(manager)
Dim mgrID As New SPFieldUserValue(site, mgrAccount.ID, mgrAccount.LoginName)
managerID.Add(mgrID)
item(AccessRequest.ManagerCol) = managerID
But, this isn't working at all. I just can't get anywhere and I can't find a reliable tutorial online to help me.
|
|
|
|
|
Aptiva Dave wrote: I'm not trying read info (yet), I'm just trying to add to the list.
??? You try to read the Info and add it to the list. Therefore is the code I wrote. Fill the Field with an EventListener.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
Well, that's going to be an issue because some people report to someone who isn't labeled as a manager in AD. This is because a) in some large departments it is just a title and doesn't really mean anything and b) IT doesn't usually get notified of when someone is made a manager or supervisor so that we can make the changes in AD nor do our users usually make use of the tools we have given them to make the changes themselves. So, since all I can rely on AD for is their user account and email address, I would like to have the people picker on the form to allow the user to at least find their manager's name and let the site handle the rest.
I hope that makes sense.
|
|
|
|
|
Ok, you just want to have a field, where the User of the form can put in the one, who is manager, right?
There are different solutions.
1. You go a different way and build a list of managers for each department
2. You let the user enter a name in a normal user-field
3. You fill a dropdownbox with all users of the department, so that the selection is smaler (for this case you can use the code I wrote before, just that you add every member of the department to the dropdownbox).
Hope, there is a solutions suitable for you.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
Well, the big wrinkle is that we have anonymous access on the site and don't allow users to log in, so that is why I was going to used the People editor control so the user could find their manager's name from our AD environment.
|
|
|
|
|
Also, I'm using this information to start a workflow.
|
|
|
|
|
Sorry, didn't realize that I didn't actually ask a question. My bad. 
|
|
|
|
|
Ok, I guessed what do you want, but it would be good to describe the problem and what do you already did.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
|
SharePoint 2010
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
Hello,
I created a form using infoPath, and a workflow using visio, and imported it in Sharepoint Designer 2010, but when I press publish, this message shows up "sharepoint designer encountered an error generating task" even my WF contains no problem. I have a full control permission and there is no network problems.
how can I solve it ??
|
|
|
|
|
Did you tried to publish a small task from SD directly? Is there the same error?
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
Actually I found that it was a permissions issue.. it solved now.. thnx 
|
|
|
|