Customize List
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Customize List

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
John Lee
Guest





Posted: Fri Dec 31, 2004 1:00 am    Post subject: Customize List Reply with quote

Hi,

I am kinda new to SPS development - I am trying to customize the List and
encounter the following issues:

1. How to make a multiple-choice list box so use can select more than one
item from the list item? (I only see the you can create a dropdown with
specified value)
2. Can I create some kind of control that can be used in List customization?
3. The really challenge task is that I want user to specify a list of email
addresses that needs to be notified when the list is created or modified
without having them to go to the site to configure the alert me. How can I
do this programmatically?

Thanks very much!
John
Back to top
Wei-Dong XU [MSFT]
Guest





Posted: Fri Dec 31, 2004 8:37 am    Post subject: RE: Customize List Reply with quote

Hi John,

For the first question, you can add one multiple choices from the link
"Modify settings and columns" of each list, which sits at the left-bottom
of the list page. Click into the Customize page and click the link "Add a
new column" under the section Column. All the column types will be listed
for you at the "Add Column" page. Please choose the "Choice (menu to choose
from)" and assign this column one name. At the "Display choices using:"
choices, you can decide to use the Drop-Down Menu, Radio or Check Box. For
your scenario, the third one is preferred. Then click Ok to add this
column.

2nd question,"Can I create some kind of control that can be used in List
customization?"
So far as I know, you will need to use the types at the "Add Column" page.
If you are going to add your own customized control. You will need to
develop one new list then.

3rd question, for this requirement, I'd suggest you will need to develop
one new web part or aspx page to create/manage the list. When you are
operating on the list, you can use the SPS Object model api
SPUtility.SendEmail to develier the corresponding mail to your users.
SendEmail Method
http://msdn.microsoft.com/library/en-us/spptsdk/html/tsumSPUtilitySendEmail.
asp

Please feel free to let me know if you have any further question.

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Back to top
John Lee
Guest





Posted: Mon Jan 03, 2005 12:13 am    Post subject: Re: Customize List Reply with quote

Thank you for the answer very much, Mr. Xu!

For the last question, to my understanding, you are saying you can develop a
webpart or aspx page to create/manage the list - Do you have a sample code
for that kind of task? How to create/manage the list creation/modification
in an aspx page or webpart?

Secondly, Is it also possible to develop a service/program as sink to
monitor the creation/modification of certain list category, once a new list
is created, then I can write code to look at the newly created list and then
act upon it according to the value in some fields of that list?

Thanks a lot!
John

"Wei-Dong XU [MSFT]" <v-wdxu@online.microsoft.com> wrote in message
news:r9wYqGu7EHA.3984@cpmsftngxa10.phx.gbl...
Quote:
Hi John,

For the first question, you can add one multiple choices from the link
"Modify settings and columns" of each list, which sits at the left-bottom
of the list page. Click into the Customize page and click the link "Add a
new column" under the section Column. All the column types will be listed
for you at the "Add Column" page. Please choose the "Choice (menu to
choose
from)" and assign this column one name. At the "Display choices using:"
choices, you can decide to use the Drop-Down Menu, Radio or Check Box. For
your scenario, the third one is preferred. Then click Ok to add this
column.

2nd question,"Can I create some kind of control that can be used in List
customization?"
So far as I know, you will need to use the types at the "Add Column" page.
If you are going to add your own customized control. You will need to
develop one new list then.

3rd question, for this requirement, I'd suggest you will need to develop
one new web part or aspx page to create/manage the list. When you are
operating on the list, you can use the SPS Object model api
SPUtility.SendEmail to develier the corresponding mail to your users.
SendEmail Method
http://msdn.microsoft.com/library/en-us/spptsdk/html/tsumSPUtilitySendEmail.
asp

Please feel free to let me know if you have any further question.

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.
Back to top
Wei-Dong XU [MSFT]
Guest





Posted: Tue Jan 04, 2005 1:35 pm    Post subject: Re: Customize List Reply with quote

Hi John,

You can use the Add method of SPListCollection to add the new list with the
template or not. There are three overloaded method of this class.
Name Description
Add(String, String, Microsoft.SharePoint.SPListTemplate)
Creates a list with the specified title, description, and list template
object.

Add(String, String, Microsoft.SharePoint.SPListTemplateType)
Creates a list with the specified title, description, and list definition
type.

Add(String, String, Microsoft.SharePoint.SPListTemplate, SPDocTemplate)
Creates a document library with the specified title, description, list
template object, and document template object.

In the sdk article for the add method, you will find the sample code
regarding how to add the list programmatically.

There is another article introducing how to add/delete the list:
Adding or Deleting a List in Multiple Web Sites
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/htm
l/tsptAddListMultiWebs.asp

When you add or delete the list, you can send email to the users.

"...Is it also possible to develop a service/program as sink to monitor the
creation/modification of certain list category,..."
I don't think this is impossible. Because using the debugger technology, we
can put our hands into each process and monitor the execution. However,
since there is no any public documentation introducing this for SPS/WSS
2003, I think this will be very tough and need lots of time to implement.

One simple method I can find is: you can create one windows service and
check the list number of one/all sites in one pre-defined time span. You
can record the list number with each name; then at the next checking,
comparing each list item to see whether any new one is created and whether
any removed. If finds any, send the email.

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB