I've built an app page that contains a form on it, which adds items to a list. One of the columns is a multiline text column that only allows plain text only. The form uses a text area to allow the user to insert text, but there could be cases where they will enter multiple lines of text. When I insert the text into the column, how can I preserve the line breaks?
I'm looking to create a workflow in sharepoint 2010 using Visual Studio. What I want this workflow to do is run automatically at 7am every monday morning and email out the weekly lunch menu for our cafeteria. I already have a list that holds the menus, so I am wanting the workflow to pick up all of the menus within the week and put them into an email.
Every tutorial I see is for creating a workflow that starts when something is created or changed, but that isn't what I want. If anyone could point me to a tutorial, that would be great, because I don't see anything online so far.
That's because Workflows starts on events like changes or creation. You have to execute it from outside. Therefore you need a calling routine. In SharePoint it's a Custom Timer Job.
Create a class that derives from SPJobDefinition. Override the public Execute-Method and call your workflow there.
Yet, I didn't call a workflow from a Custom Timer Job myself. So you have to try how to do this, but that's the way howto I think.
So, could I just have all my functionality in the custom timer job instead of a workflow? I don't think that this issue I'm working on would need an actual workflow, so I would assume that I can access my list objects from there.
So, could I just have all my functionality in the custom timer job instead of a workflow?
Well, you could do that, I think. There is nothing coming in my head that won't work from a timer job (on the other hand I just started with SharePoint and I don't know everything).
Building a workflow is easier to build and of cause you can set it up for multiple WSCs.
I would create the Workflow and start it with the Timer Job but that's only my opinion.
So, I was able to do everything I wanted within the custom timer, which has opened up a whole bunch of other functionality that I can put into my site. I'll leave the workflows to the business processes.
Well, I've got a list with contactpersons depending on a contenttype which extends the Contact-contenttype. I've got another list with customes (firms) which extends the basetype element. Both lists are generated via xml in a VisualStudio-Project, because it will be used in multiple websitecollections.
Now I want to link the "company" field in the contactperson-list with the customer-list and lookup the values already established there.
I'm able to generate a new field for example "My Company" and lookup the values in the customer-list, but when I try to set the already existing company-field as a lookup-field linked with the customer list, I get an error. The same when I leave xml and programm it in C#.
Is it possible to do what I want? Perhaps not, because it's a SharePoint-Field and it's not designed to be a loopup-field.
So do I have to generate a "new" company field, with a name like "My lookedup company-field from the customed-list, as it's not possible or I'm to stupid to link the existing customer-field"? Well that would be a solution but the name is sooooo long.
Uh, I've found the answer. When I use the webbrowser to do changes on the list I can't change the "Company"-field to a lookup-field, too. It's not envisaged to do that. So the answer is that I have to create a new field and (for example) hide the existing one.
With a little contemplation I would have sift it out before writing the question and perhaps I wouldn't have spend four hours on testing. But on the other side, perhaps someone will have the same question so I didn't deleted it and just answered it on myself.
(I give it a five )
I've got a c# project for SharePoint, where two contenttypes, two lists and a documentlibrary are defined and linked up with xml. All works fine. But now I want to use a InfoPath-document I already have designed for the documentlibrary. Of course I can use Infopath to link it and upload it, but it would be interesting to install it together with the feature I designed in VisualStudio, because it can be used in different websitecollections.
Now I'm totally lost. Can I link the InfoPath-document to the newly created documentlibrary and the two lists, where some values are lookedup? Has anybody an idea how to do that or a link for me? I already searched in google, but I just found how to upload a document with visualstudio and not how to link it.
I created created custom content type called "Voucher" which contains two columns.
I created one List Using "Document Library".
Library Settings->Genaral settings-> Allow management of content types->Yes.
But I am unable to Select Custom Content Type by Add from existing site content types..
You can only use those contenttypes that inherits from a base-contenttype avaibable in documentlibraries. For example you can create a "Voucher" using the document-contenttype and best putting it in the same group.
Then you can use it.
The question is: why can't you use another type. That's because other types don't have the file-field declared by SharePoint. That field is important cause a document library has documents and documents are stored in the file-field. A list that doesn't inherit it from such a content-type doesn't have the right field (with the right id). So it can't be used.
Normally it should be visible in "All Groups". So the question is, if the site is in the same WebSite where the content type has been defined. If it's not, you should copy it there or (a way I didn't tried yet) use the content-type-hub.
Your question is not fully clear to me but it appears like you added a new column to a document library but might have missed to include the column in the default view. Anyway, you can include that column in view by modifying the view.
There is no foolish question, there is no final answer...
Last Visit: 16-Feb-20 15:55 Last Update: 16-Feb-20 15:55