Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

If i'm not wrong a document is unique to each doc library. What i want to do is use some fields the users select to make up a document name.e.g docname_Created I'm sure i can do this via Object Model but can i use a SPD workflow for this? Any ideas would be appreciated

share|improve this question
add comment

3 Answers

up vote 0 down vote accepted

You'd either need to write an event receiver in visual studio or use a third party product as described in this example in combination with SharePoint Designer.

share|improve this answer
    
Muhmbi i tried using the SPD workflow to replace the file name but no luck.I reacko the event reciever would be the way to go but haven't got that to work yet –  Patrick Nov 11 '10 at 23:27
add comment

You're much better off populating some metadata fields than cobbling together some sort of compound filename. You'll just be replicating the poor practice of overloading the filename with significant data that can't ever really be teased out reliably.

share|improve this answer
add comment

There is a Title column that you could use to write your name to. I would opt for a Calculated Column myself and expose that in the view. Is there a reason you need the Name column to be updated?

share|improve this answer
    
iOnline247 thnks for the response.The reason why i need it is users would need to upload one document twice whereas you can't do that because it overrides the original.They are doing this because when they upload the docs they select a different category to move it to.So it has to me unique to each category. Hope you understand my pain –  Patrick Nov 11 '10 at 23:26
    
The document just needs to be categorized differently? What's the reasoning behind the same document being uploaded to the same document library multiple times? Why not modify the document in/on SP and update accordingly? I think I'm missing some of the process and that would help to have some of this to help you better. –  iOnline247 Nov 12 '10 at 5:40
    
iOnline247 good question re why doc need to be uploaded twice.Well the reason is when users upload and try to move a doc to multiple categories and the categories are too many the get a prompt stating it can't be more than 250 characters:( Hope you understand my pain now:) No idea how to increase the no: of characters to be over 250 when using a multi value field? –  Patrick Nov 14 '10 at 12:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.