Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

SPS document keyword property problem

  Asked By: Salvatore Boone         Date: Dec 12, 2009      Category: Sharepoint      Views: 191
 

I would appreciate some assistance with a vbscript problem that I am having
performing an upload to SPS. I have a basic VBscript that allows me to save
documents to the SPS portal. I can include meta-data for 'Title', 'Author',
'Description' but 'Keywords' is giving me a problem. I am using the
BaseDocuments Profile.

MsgBox("Adding meta-data to document")
oDocument.Title = strTitle
oDocument.Author = strAuthor
oDocument.Keywords = strKeywords

I know that the Author and Title variables are working because I verified their
values with a message box and in SPS. If I literally declare a string value in
quotes for strKeywords then it works but not if I use a variable. What am I
missing?

For example, if I type the following code, oDocument.Keywords =
Array("variable1", "variable2") it will include the string in quotes and save
them to SPS. But I want to use variables to make the script dynamic. How do I
get it to include the value of the variables?

Tagged:          

 

4 Answers Found

 
Answer #1       Answered By: Sarita Patel          Answered On: Dec 12, 2009       

It is posible in the dashboard to delete o hide Categories, Subscriptions, or
Document Library from top menu?

 
Answer #2       Answered By: Elias Cannon          Answered On: Dec 12, 2009       

I do not recommend deleting any of these tabs because it will affect the
way the portal  was meant to function. You can hide them by not giving
the user access to these tabs. Go into the web folder for your workspace
and expand the Portal folder. You will see a folder for Categories,
Document Library and Subscription. Right click on each one of these
folders and select Properties. Click on the Security tab and remove the
users from the list.

 
Answer #3       Answered By: Kartik Athani          Answered On: Dec 12, 2009       

I tried this and the user can still see the link. SPS asks for a password or a
new error page appears. Am I missing something?

 
Answer #4       Answered By: Ira Knox          Answered On: Dec 12, 2009       

Please provide more information. What link do you see? When I removed
myself from the security tab for the 3 folders, I no longer see the tabs
or have access to all 3 capabilities (Document Library, Subscription and
Categories)

 
Didn't find what you were looking for? Find more on SPS document keyword property problem Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].