Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Is it posible to add logic / code to document profiles?

  Asked By: Taylor    Date: Dec 21    Category: Sharepoint    Views: 896

I have a question regarding the document profiles:

Does anyone no if it is possible to add logic / code to document profiles?

What I want is that when one adds a new document to the document library the
document library, the document properties (profile) window shows inputs for
client name and case name, the code looks this up in a database, retrieves
the client and case numbers and a counter, and generates a unique document
title or better filename from these.

I looked at the pubform.asp file, but it does not seem right to modify this.



2 Answers Found

Answer #1    Answered By: Lazaro Rutledge     Answered On: Dec 21

Well, all things are possible, but modifying the pubform is a
chancy thing. Especially with a revamped version due out soon. What
I would do (if you can't get the users to help themselves) is to
modify (or change to a new sheet) the stylesheet for the doclibrary
to go to your own asp  page. The use the PKMCDO objects to stream the
doc into the library. Check out the OM sample from the SDK. The VB
version should be fairly easy to port to asp. When to user submits
his info, you use it to gen what you want and change the doc
properties. Beware though, Trying to be smarter than people
frequently invokes the "law of unintended consequnces" so plan this
out thoroughly or you'll kick yourself later.

Answer #2    Answered By: Karin Kerr     Answered On: Dec 21

I already thought that it was not such a good idea to modify  the
pubform.asp, I will have a look at the OM sample from the SDK, but I think I
will stick with the idea to let the users help themselves.

Didn't find what you were looking for? Find more on Is it posible to add logic / code to document profiles? Or get search suggestion and latest updates.