0

Hey i want to create a list instance with a definition that defines the following columns.

-Notice StartDate (DateTime)
-Notice EndDate   (DateTime)
-Notice Message   (Text)
-Notice Colleges  (???)

I created the dates and message inside my list def i just have no idea what type should the Colleges column be. I just know it should be a list that represents multiple users.

Also i would like to be able to call a Javascript function to Populate new item inside the list and delete them. Also if i retract the solution how will sharepoint deal with this ? Will items added to the list while the solution is deployed still be there when i redeploy ???

1 Answer 1

1

In response to your questions:

  • You can make Colleagues a 'Person or Group' column which allows for multiple values. Presumably, you want to render a list of all users from which the user can select? If you're doing this server-side, you could bind against SPWeb.AllUsers or SPWeb.Users depending on your needs. Note that neither of those will return all users in your NT domain if that's what you're after (that is a little more complicated).
  • If you want to manipulate SP lists using Javascript, you should look into using the Client Object Model.
  • If you retract your solution, the list items will remain there.
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. I would just add that the Field type to reference multiple users is actually "UserMulti" but it still does not let me input more than 1 user for some reason.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.