Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

CDO.Knowledgefolder Coordinators

  Asked By: Margarita    Date: Feb 08    Category: Sharepoint    Views: 1030

Can anyone help me with this problem:

I want to get all Coordinators of the Workspace in a Webpart via the
CDO.Knowledgefolder Object and the Coordinators Method.
I wrote this Webpart but it doesn't work. Any suggestions? Where can I
find a document to show me the proper use of the
CDO objects?

Share: 

 

8 Answers Found

 
Answer #1    Answered By: Emerson Franks     Answered On: Feb 08

are you using asp?
if so, call the cdo  object. make sure that when ypou assign a new variable
to the container otherwise it won't work. e.g. oFolder.coordinators(n) is
invalid and will not work  in asp. assign a variable to the container and
then reference the array.
I haven't tried this in a webpart  but it should work. ours work in a web
site that calls cdo objects.

 
Answer #2    Answered By: Ned Storm     Answered On: Feb 08

Obviously, this works only if your web server is on a computer running
Win2000. On NT4, the returned array is empty.

 
Answer #3    Answered By: Myron Calhoun     Answered On: Feb 08

Yes, the sps server machine must be running win 2000 (didn't think it would
install on anything else though) , but nt clients can access the cdo  objects
in either com or asp. that is, we can view the array on an nt machine which
runs code off the win2000 server (i.e. asp pages). I do not know if the code
runs in a web part inside sps. anyone ?

 
Answer #4    Answered By: Rena William     Answered On: Feb 08

No, clients running NT4 do not have access to the Approvers, Authors,
Coordinators and Readers properties.

Hence, if your web server is on a machine running NT4, you won't be able to
access the properties. That's the setup we have here. I tried it, and it
doesn't work.

See the note at the bottom of the following page for details:

msdn.microsoft.com/.../html
/_iknowledgefolder_interface.asp

 
Answer #5    Answered By: Shanda Nolan     Answered On: Feb 08

Sorry, but we were able to grab these objects  on NT CLIENT machines in asp
code. Our code checks current user roles on the server (accessed via a
client machine) and allows access to certain programmatic functions only
when the user has the coordinator role. It worked fine.
We used the check to allow coordinators  to add users to sps from a web site.
they can do this when the os is NT or 2000 but only certain sps
functionality is supported in 2000 (e.g. web folder security). Do you mean
your server is NT? The SERVER should be 2000 to run sps (it only works with
2000) - CLIENT machines can be NT or 2000 , but 2000 machines have better
support but they will let you see the container for roles cos the code is
coming off a 2000 box.

 
Answer #6    Answered By: Bailey Lewis     Answered On: Feb 08

That's the Function i wrote, it still doesn't work:


Function GetContent(node)
Set oFolder = Server.CreateObject("CDO.KnowledgeFolder")

myVal = oFolder.Coordinators

Set oFolder = Nothing
GetContent = myVal
End Function

Sorry for teasing you, but I am compleatly new to programming with
CDO...

 
Answer #7    Answered By: Quentin Cummings     Answered On: Feb 08

I think the problems is you are not opening the object, and perhaps not
referencing the array directly. The following asp code works:

Set objFolder = CreateObject("CDO.KnowledgeFolder")

objfolder.PromptToAuthenticate = false 'set this to prevent sharepoint
from popping up the login box & also stops hanging

objFolder.DataSource.Open sServerFolder ', , adModeReadWrite 'open the
object

collection = objFolder.Coordinators 'assign variable to the container
obj.

For i=0 to uBound(collection) 'loop round collection [now an array[

response.write collection(i)

Next

set objfolder= nothing

 
Answer #8    Answered By: Bhoomi Chabaria     Answered On: Feb 08

Still doesn' t work... I think there's a problem  with the Server or the
workspace, the scripts are not executed properly and everything acts
very slow.

I try again tomorrow and let you know you when it works.

 
Didn't find what you were looking for? Find more on CDO.Knowledgefolder Coordinators Or get search suggestion and latest updates.