RE: [OzMOSS] Setting Library View Programmatically

2008-08-27 Thread Witherdin, Nigel
Brilliant - thankyou.  I had dumped out the SPList.Fields.Schema.Xml to
search through for field names, but obviously missed these ones (not
suprising, there is a lot of data)
 
Cheers,
 
Nigel Witherdin
Senior Support Analyst
Eversheds
 
Direct Dial: +44 (0) 84 549 754 17
Mobile: +44 (0) 7738 553256
 
www.eversheds.com http://www.eversheds.com/ 
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Brian Farnhill
Sent: 26 August 2008 22:59
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically



You can add any of the fields to a view based on their internal name.
For example, the internal name of the field for the documents icon is
DocIcon and the correct field to use for the title field with the edit
menu is LinkFilename. 

If you are unsure what the internal name of a field is that you want to
use a view, you can try this - build the view in SharePoint and then go
to the 'modify this view' page. Then with the IE Dev Toolbar (or firebug
if you are a fix fox user) select the check box for the field you need
the internal name of. You will see that it has an onclick attribute that
will look like this javascript:ShowHideTotals(this, 'LinkFilename').
The internal name for the field the checkbox corresponds to is the
second parameter in the JavaScript function.

I hope that helps

Brian Farnhill 
Consultant
Technical Consulting 

Mobile:   0408 289 303
Fax:  02 8001 7778
Email:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Web: www.uniqueworld.net http://www.uniqueworld.net 
Blog: pointstoshare.spaces.live.com
http://pointstoshare.spaces.live.com/ 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Witherdin, Nigel
Sent: Wednesday, 27 August 2008 2:16 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

OK, I found a cheat of a way to do this, by cloning the All Documents
view and removing/adding fields as I needed to.  But I would still be
interested in knowing how to add these special fields programmatically
if anyone knows?

Cheers,

Nigel Witherdin

Senior Support Analyst

Eversheds

Direct Dial: +44 (0) 84 549 754 17

Mobile: +44 (0) 7738 553256

www.eversheds.com http://www.eversheds.com/ 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Witherdin, Nigel
Sent: 26 August 2008 16:49
To: listserver@ozMOSS.com
Subject: [OzMOSS] Setting Library View Programmatically

Hi All,

In a feature event receiver I am trying to create some views for a
particular list as per this code:



//Ordered by Reference number

SPViewCollection views = spLibrary.Views;

StringCollection libViewFields = new StringCollection();


libViewFields.Add(File_x0020_Type);
libViewFields.Add(Reference_x0020_Number);
libViewFields.Add(Modified);
libViewFields.Add(Item_x0020_Author);
libViewFields.Add(Item_x0020_Title);
libViewFields.Add(FileLeafRef);
libViewFields.Add(Group1);

qry = OrderByFieldRef Name='Reference_x0020_Number' Ascending='True'
//OrderBy;
libViews.Add(Ordered by Reference Number, libViewFields, qry, 100,
true, false);

spLibrary.Update();



This is all working fine, but I would really like to add the File Type
column so that it shows an icon for the file type, and the name
(FileLeafRef) column so that it has the dropdown edit menu.  Anybody
have any idea how to create these view fields programatically

Many thanks

Nigel Witherdin

Senior Support Analyst

Eversheds

Direct Dial: +44 (0) 84 549 754 17

Mobile: +44 (0) 7738 553256

www.eversheds.com

* This email is sent for and on behalf of Eversheds LLP
*

This email is sent for and on behalf of Eversheds LLP which is a limited
liability partnership, registered in England and Wales, registered
number OC304065. Registered office One Wood Street, London, EC2V 7WS.
Registered VAT number GB820704559.  A list of the members' names and
their professional qualifications is available for inspection at the
above office. Regulated by the Solicitors Regulation Authority (see 
www.sra.org.uk http://www.sra.org.uk/ ). 

Confidentiality: This email and its attachments are intended for the
above named only and may be confidential. If they have come to you in
error you must take no action based on them, nor must you copy or show
them to anyone; please reply to this email and highlight the error.

* [ www.eversheds.com http://www.eversheds.com/  ]
* 

---
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 

---
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 

---
OzMOSS.com - to 

Re: [OzMOSS] Moving the Sharepoint_Config Database to a new Server

2008-08-27 Thread Alpesh Nakar
Hi Mark,

Agree with Daniel. Did experience this when moving from SQL 2000 to SQL
2005. Just move content DB and rebuild the farm.

Cheers!

Alpesh

http://alpesh.nakars.com/blog | http://justsharepoint.com


On Wed, Aug 27, 2008 at 15:17, Daniel Brown
[EMAIL PROTECTED]wrote:

  HI Mark,



 Did you move the SharePoint_Config database?



 This is a bad idea and is not recommended to do at al as it contains very
 detailed machine/server details (server names, SID's, etc).



 Only Content databases should be moved between servers and the
 configuration databases should be rebuilt from the SharePoint Wizard from
 scratch.



 Cheers,



 DB



 *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf
 Of *Mark Leonard
 *Sent:* Wednesday, 27 August 2008 2:40 PM
 *To:* listserver@ozmoss.com
 *Subject:* [OzMOSS] Moving the Sharepoint_Config Database to a new Server



 I've just completed the exercise of moving the MOSS 2007 system databases
 from one SQL Server to another.  I've struck the problem of event id 3760 in
 the server application log, on the MOSS server, where it's trying to locate
 the Sharepoint_Config database on the old (original) server.  Web searches
 on this problem seem to suggest the only fix for this is to hack the Objects
 table in the Sharepoint_Config database and replace the details for the old
 database server entry with those of the new database server.



 Has anyone else had this problem and had to go down this path or is there
 another way?

 *_*

 *Mark Leonard***




 __
 This email has been scanned for Wollongong City Council by the MessageLabs
 Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __

 ---
 OzMOSS.com - to unsubscribe from this list, send a message back to the list
 with 'unsubscribe' as the subject.
 Powered by mailenable.com
  ---
 OzMOSS.com - to unsubscribe from this list, send a message back to the list
 with 'unsubscribe' as the subject.
 Powered by mailenable.com




--- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.
Powered by mailenable.com


[OzMOSS] SPS 2003 - MOSS DB migration. Loosing my root site

2008-08-27 Thread Michael Nemtsev
Migrating SPS 2003 DB into MOSS 2007 environment.
Found that after adding SPS2003 content DB I have root site missed, albeit all 
sub-sites exists
What could be the reason of such behaviour?!


Prescan shows me that I have http://mysite/default.asp available, however it's 
unghosted.
I backed-up DB, added it to new box and attached to MOSS
Checked update.log and found no /default.aspx and no errors. However all 
http://mysite/sites/ * migrated successfully

Where could be my root website?

Michael Nemtsev  | Microsoft MVP
Readify
B: http://laflour.spaces.live.comhttp://laflour.spaces.live.com/ T: +61 424 
184 978 E: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]




--- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com



RE: [OzMOSS] Setting Library View Programmatically

2008-08-27 Thread Anthony Lee
If we have a number of existing sites that has a document library which
has the same views, and one day we decide to add an additional view to
the document library, is it possible to replicate that view across all
the existing sites' document library? i.e. programmatically add that
view to the document library on all sites, without having to manually go
into each site to create that new view.

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Brian Farnhill
Sent: Wednesday, 27 August 2008 7:59 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

 

You can add any of the fields to a view based on their internal name.
For example, the internal name of the field for the documents icon is
DocIcon and the correct field to use for the title field with the edit
menu is LinkFilename. 

 

If you are unsure what the internal name of a field is that you want to
use a view, you can try this - build the view in SharePoint and then go
to the 'modify this view' page. Then with the IE Dev Toolbar (or firebug
if you are a fix fox user) select the check box for the field you need
the internal name of. You will see that it has an onclick attribute that
will look like this javascript:ShowHideTotals(this, 'LinkFilename').
The internal name for the field the checkbox corresponds to is the
second parameter in the JavaScript function.

 

I hope that helps

 

Brian Farnhill 
Consultant
Technical Consulting 

Mobile:   0408 289 303
Fax:  02 8001 7778
Email:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Web: www.uniqueworld.net http://www.uniqueworld.net 
Blog: pointstoshare.spaces.live.com
http://pointstoshare.spaces.live.com/ 

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Witherdin, Nigel
Sent: Wednesday, 27 August 2008 2:16 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

 

OK, I found a cheat of a way to do this, by cloning the All Documents
view and removing/adding fields as I needed to.  But I would still be
interested in knowing how to add these special fields programmatically
if anyone knows?

 

Cheers,

 

Nigel Witherdin

Senior Support Analyst

Eversheds

 

Direct Dial: +44 (0) 84 549 754 17

Mobile: +44 (0) 7738 553256

 

www.eversheds.com http://www.eversheds.com/ 

 

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Witherdin, Nigel
Sent: 26 August 2008 16:49
To: listserver@ozMOSS.com
Subject: [OzMOSS] Setting Library View Programmatically

Hi All,

 

In a feature event receiver I am trying to create some views for a
particular list as per this code:

 



//Ordered by Reference number

SPViewCollection views = spLibrary.Views;

StringCollection libViewFields = new StringCollection();


libViewFields.Add(File_x0020_Type);
libViewFields.Add(Reference_x0020_Number);
libViewFields.Add(Modified);
libViewFields.Add(Item_x0020_Author);
libViewFields.Add(Item_x0020_Title);
libViewFields.Add(FileLeafRef);
libViewFields.Add(Group1);

 

qry = OrderByFieldRef Name='Reference_x0020_Number' Ascending='True'
//OrderBy;
libViews.Add(Ordered by Reference Number, libViewFields, qry, 100,
true, false);

 

spLibrary.Update();



 

This is all working fine, but I would really like to add the File Type
column so that it shows an icon for the file type, and the name
(FileLeafRef) column so that it has the dropdown edit menu.  Anybody
have any idea how to create these view fields programatically

 

Many thanks

 

Nigel Witherdin

Senior Support Analyst

Eversheds

 

Direct Dial: +44 (0) 84 549 754 17

Mobile: +44 (0) 7738 553256

 

www.eversheds.com

* This email is sent for and on behalf of Eversheds LLP
*

This email is sent for and on behalf of Eversheds LLP which is a limited
liability partnership, registered in England and Wales, registered
number OC304065. Registered office One Wood Street, London, EC2V 7WS.
Registered VAT number GB820704559.  A list of the members' names and
their professional qualifications is available for inspection at the
above office. Regulated by the Solicitors Regulation Authority (see 
www.sra.org.uk http://www.sra.org.uk/ ). 

Confidentiality: This email and its attachments are intended for the
above named only and may be confidential. If they have come to you in
error you must take no action based on them, nor must you copy or show
them to anyone; please reply to this email and highlight the error.

* [ www.eversheds.com http://www.eversheds.com/  ]
* 

---
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 

---
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 


RE: [OzMOSS] Setting Library View Programmatically

2008-08-27 Thread Brian Farnhill
It is possible to create views from code. There are a few ways of going about 
it but basically you create the SPView object and then add it to the Views 
collection of each document library. I'm pretty sure you could create the view 
in one spot and then use code to copy it around (I don't think there would be 
any issues as long as each document library had the required columns for the 
view).

Brian Farnhill
Consultant
Technical Consulting

Mobile:   0408 289 303
Fax:  02 8001 7778
Email:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
Web: www.uniqueworld.nethttp://www.uniqueworld.net
Blog: pointstoshare.spaces.live.comhttp://pointstoshare.spaces.live.com/
[cid:image001.jpg@01C908F5.4B5E97F0]

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee
Sent: Thursday, 28 August 2008 10:05 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

If we have a number of existing sites that has a document library which has the 
same views, and one day we decide to add an additional view to the document 
library, is it possible to replicate that view across all the existing sites' 
document library? i.e. programmatically add that view to the document library 
on all sites, without having to manually go into each site to create that new 
view.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Farnhill
Sent: Wednesday, 27 August 2008 7:59 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

You can add any of the fields to a view based on their internal name. For 
example, the internal name of the field for the documents icon is DocIcon and 
the correct field to use for the title field with the edit menu is 
LinkFilename.

If you are unsure what the internal name of a field is that you want to use a 
view, you can try this - build the view in SharePoint and then go to the 
'modify this view' page. Then with the IE Dev Toolbar (or firebug if you are a 
fix fox user) select the check box for the field you need the internal name of. 
You will see that it has an onclick attribute that will look like this 
javascript:ShowHideTotals(this, 'LinkFilename'). The internal name for the 
field the checkbox corresponds to is the second parameter in the JavaScript 
function.

I hope that helps

Brian Farnhill
Consultant
Technical Consulting

Mobile:   0408 289 303
Fax:  02 8001 7778
Email:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
Web: www.uniqueworld.nethttp://www.uniqueworld.net
Blog: pointstoshare.spaces.live.comhttp://pointstoshare.spaces.live.com/
[cid:image001.jpg@01C908F5.4B5E97F0]

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Witherdin, Nigel
Sent: Wednesday, 27 August 2008 2:16 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

OK, I found a cheat of a way to do this, by cloning the All Documents view 
and removing/adding fields as I needed to.  But I would still be interested in 
knowing how to add these special fields programmatically if anyone knows?

Cheers,

Nigel Witherdin
Senior Support Analyst
Eversheds

Direct Dial: +44 (0) 84 549 754 17
Mobile: +44 (0) 7738 553256

www.eversheds.comhttp://www.eversheds.com/



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Witherdin, Nigel
Sent: 26 August 2008 16:49
To: listserver@ozMOSS.com
Subject: [OzMOSS] Setting Library View Programmatically
Hi All,

In a feature event receiver I am trying to create some views for a particular 
list as per this code:


//Ordered by Reference number
SPViewCollection views = spLibrary.Views;
StringCollection libViewFields = new StringCollection();

libViewFields.Add(File_x0020_Type);
libViewFields.Add(Reference_x0020_Number);
libViewFields.Add(Modified);
libViewFields.Add(Item_x0020_Author);
libViewFields.Add(Item_x0020_Title);
libViewFields.Add(FileLeafRef);
libViewFields.Add(Group1);

qry = OrderByFieldRef Name='Reference_x0020_Number' Ascending='True' 
//OrderBy;
libViews.Add(Ordered by Reference Number, libViewFields, qry, 100, true, 
false);

spLibrary.Update();


This is all working fine, but I would really like to add the File Type column 
so that it shows an icon for the file type, and the name (FileLeafRef) column 
so that it has the dropdown edit menu.  Anybody have any idea how to create 
these view fields programatically

Many thanks

Nigel Witherdin
Senior Support Analyst
Eversheds

Direct Dial: +44 (0) 84 549 754 17
Mobile: +44 (0) 7738 553256

www.eversheds.comhttp://www.eversheds.com

* This email is sent for and on behalf of Eversheds LLP *

This email is sent for and on behalf of Eversheds LLP which is a limited 
liability partnership, registered in England and Wales, registered number 
OC304065. Registered office One Wood Street, London, EC2V 7WS.  Registered VAT 
number GB820704559.  A list of the members' names and their professional 
qualifications is 

RE: [OzMOSS] Setting Library View Programmatically

2008-08-27 Thread Anthony Lee
Which file would you create the SP View object in? Would you know the
steps for doing this and how to use code to copy the view around?

 

Thanks.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Brian Farnhill
Sent: Thursday, 28 August 2008 10:03 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

 

It is possible to create views from code. There are a few ways of going
about it but basically you create the SPView object and then add it to
the Views collection of each document library. I'm pretty sure you could
create the view in one spot and then use code to copy it around (I don't
think there would be any issues as long as each document library had the
required columns for the view).

 

Brian Farnhill 
Consultant
Technical Consulting 

Mobile:   0408 289 303
Fax:  02 8001 7778
Email:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Web: www.uniqueworld.net http://www.uniqueworld.net 
Blog: pointstoshare.spaces.live.com
http://pointstoshare.spaces.live.com/ 

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Anthony Lee
Sent: Thursday, 28 August 2008 10:05 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

 

If we have a number of existing sites that has a document library which
has the same views, and one day we decide to add an additional view to
the document library, is it possible to replicate that view across all
the existing sites' document library? i.e. programmatically add that
view to the document library on all sites, without having to manually go
into each site to create that new view.

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Brian Farnhill
Sent: Wednesday, 27 August 2008 7:59 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

 

You can add any of the fields to a view based on their internal name.
For example, the internal name of the field for the documents icon is
DocIcon and the correct field to use for the title field with the edit
menu is LinkFilename. 

 

If you are unsure what the internal name of a field is that you want to
use a view, you can try this - build the view in SharePoint and then go
to the 'modify this view' page. Then with the IE Dev Toolbar (or firebug
if you are a fix fox user) select the check box for the field you need
the internal name of. You will see that it has an onclick attribute that
will look like this javascript:ShowHideTotals(this, 'LinkFilename').
The internal name for the field the checkbox corresponds to is the
second parameter in the JavaScript function.

 

I hope that helps

 

Brian Farnhill 
Consultant
Technical Consulting 

Mobile:   0408 289 303
Fax:  02 8001 7778
Email:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Web: www.uniqueworld.net http://www.uniqueworld.net 
Blog: pointstoshare.spaces.live.com
http://pointstoshare.spaces.live.com/ 



 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Witherdin, Nigel
Sent: Wednesday, 27 August 2008 2:16 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

 

OK, I found a cheat of a way to do this, by cloning the All Documents
view and removing/adding fields as I needed to.  But I would still be
interested in knowing how to add these special fields programmatically
if anyone knows?

 

Cheers,

 

Nigel Witherdin

Senior Support Analyst

Eversheds

 

Direct Dial: +44 (0) 84 549 754 17

Mobile: +44 (0) 7738 553256

 

www.eversheds.com http://www.eversheds.com/ 

 

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Witherdin, Nigel
Sent: 26 August 2008 16:49
To: listserver@ozMOSS.com
Subject: [OzMOSS] Setting Library View Programmatically

Hi All,

 

In a feature event receiver I am trying to create some views for a
particular list as per this code:

 



//Ordered by Reference number

SPViewCollection views = spLibrary.Views;

StringCollection libViewFields = new StringCollection();


libViewFields.Add(File_x0020_Type);
libViewFields.Add(Reference_x0020_Number);
libViewFields.Add(Modified);
libViewFields.Add(Item_x0020_Author);
libViewFields.Add(Item_x0020_Title);
libViewFields.Add(FileLeafRef);
libViewFields.Add(Group1);

 

qry = OrderByFieldRef Name='Reference_x0020_Number' Ascending='True'
//OrderBy;
libViews.Add(Ordered by Reference Number, libViewFields, qry, 100,
true, false);

 

spLibrary.Update();



 

This is all working fine, but I would really like to add the File Type
column so that it shows an icon for the file type, and the name
(FileLeafRef) column so that it has the dropdown edit menu.  Anybody
have any idea how to create these view fields programatically

 

Many thanks

 

Nigel Witherdin

Senior Support Analyst

Eversheds

 

Direct Dial: +44 (0) 84 549 754 17

Mobile: +44 (0) 7738 553256

 

www.eversheds.com

* This email is sent for and on behalf of 

RE: [OzMOSS] Setting Library View Programmatically

2008-08-27 Thread Brian Farnhill
Well you would need to do it in code somewhere, so that really depends on what 
your preference is - you could easily put together a windows application that 
would do this.

To copy the view around your code would basically be finding the view object 
from the source document library and then add it to each other document 
library. So for example, to get the view use something like this:

SPList sourceDocumentLibrary; // I'm assuming this already exists - get the 
list from the appropriate place though
SPView newView = sourceDocumentLibrary.Views[My View Name];

And then to add it get the new library as an SPList object and parse the 
properties of the newView object into the SPList.Views.Add() method.

That should get you started in the right direction.

Brian Farnhill
Consultant
Technical Consulting

Mobile:   0408 289 303
Fax:  02 8001 7778
Email:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
Web: www.uniqueworld.nethttp://www.uniqueworld.net
Blog: pointstoshare.spaces.live.comhttp://pointstoshare.spaces.live.com/
[cid:image001.jpg@01C908FE.92175D90]

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee
Sent: Thursday, 28 August 2008 11:10 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

Which file would you create the SP View object in? Would you know the steps for 
doing this and how to use code to copy the view around?

Thanks.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Farnhill
Sent: Thursday, 28 August 2008 10:03 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

It is possible to create views from code. There are a few ways of going about 
it but basically you create the SPView object and then add it to the Views 
collection of each document library. I'm pretty sure you could create the view 
in one spot and then use code to copy it around (I don't think there would be 
any issues as long as each document library had the required columns for the 
view).

Brian Farnhill
Consultant
Technical Consulting

Mobile:   0408 289 303
Fax:  02 8001 7778
Email:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
Web: www.uniqueworld.nethttp://www.uniqueworld.net
Blog: pointstoshare.spaces.live.comhttp://pointstoshare.spaces.live.com/
[cid:image001.jpg@01C908FE.92175D90]

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee
Sent: Thursday, 28 August 2008 10:05 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

If we have a number of existing sites that has a document library which has the 
same views, and one day we decide to add an additional view to the document 
library, is it possible to replicate that view across all the existing sites' 
document library? i.e. programmatically add that view to the document library 
on all sites, without having to manually go into each site to create that new 
view.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Farnhill
Sent: Wednesday, 27 August 2008 7:59 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

You can add any of the fields to a view based on their internal name. For 
example, the internal name of the field for the documents icon is DocIcon and 
the correct field to use for the title field with the edit menu is 
LinkFilename.

If you are unsure what the internal name of a field is that you want to use a 
view, you can try this - build the view in SharePoint and then go to the 
'modify this view' page. Then with the IE Dev Toolbar (or firebug if you are a 
fix fox user) select the check box for the field you need the internal name of. 
You will see that it has an onclick attribute that will look like this 
javascript:ShowHideTotals(this, 'LinkFilename'). The internal name for the 
field the checkbox corresponds to is the second parameter in the JavaScript 
function.

I hope that helps

Brian Farnhill
Consultant
Technical Consulting

Mobile:   0408 289 303
Fax:  02 8001 7778
Email:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
Web: www.uniqueworld.nethttp://www.uniqueworld.net
Blog: pointstoshare.spaces.live.comhttp://pointstoshare.spaces.live.com/
[cid:image001.jpg@01C908FE.92175D90]

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Witherdin, Nigel
Sent: Wednesday, 27 August 2008 2:16 AM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Setting Library View Programmatically

OK, I found a cheat of a way to do this, by cloning the All Documents view 
and removing/adding fields as I needed to.  But I would still be interested in 
knowing how to add these special fields programmatically if anyone knows?

Cheers,

Nigel Witherdin
Senior Support Analyst
Eversheds

Direct Dial: +44 (0) 84 549 754 17
Mobile: +44 (0) 7738 553256

www.eversheds.comhttp://www.eversheds.com/



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Witherdin, 

RE: [OzMOSS] Workflow Email Notifications

2008-08-27 Thread Crabbe, David
Can you please indicate the type of workflow that you've set-up:
out-of-the-box (e.g. Three-state, Approval etc), one built via
SharePoint Designer or one built with WWF and Visual Studio?
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Anthony Lee
Sent: Thursday, 28 August 2008 11:15 AM
To: listserver@ozMOSS.com
Subject: [OzMOSS] Workflow Email Notifications



Hi all,

 

We have a workflow set up on a list, which sends an email to a
particular user. In the body of the email, we want to be able to display
the created by's user's Full Name instead of their account. Does anyone
know if that is possible, and if so how to do that?

 

Additionally does anyone know how to remove the timestamp in the
workflow email - we are doing a lookup of a date field which is set to
date only (no time), however in the email text generated from the
workflow, the timestamp is displayed?

 

Thanks.

 

 

---
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 


This is an email from Fujitsu Australia Limited, ABN 19 001 011 427. It is 
confidential to the ordinary user of the email address to which it was 
addressed and may contain copyright and/or legally privileged information. No 
one else may read, print, store, copy or forward all or any of it or its 
attachments. If you receive this email in error, please return to sender. Thank 
you.
 
If you do not wish to receive commercial email messages from Fujitsu Australia 
Limited, please email [EMAIL PROTECTED]



--- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com



RE: [OzMOSS] Workflow Email Notifications

2008-08-27 Thread Anthony Lee
Workflow is built with Sharepoint Designer, via the Action Send email.
Within the email, we are doing a lookup on the Created By field and Date
field. The Created By field returns the user's account. We however want
it to return the name of the user. 

 

The Date field returns the date + 12:00:00AM and we only want the date
to appear in the email sent out via the workflow.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Crabbe, David
Sent: Thursday, 28 August 2008 1:33 PM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] Workflow Email Notifications

 

Can you please indicate the type of workflow that you've set-up:
out-of-the-box (e.g. Three-state, Approval etc), one built via
SharePoint Designer or one built with WWF and Visual Studio?

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Anthony Lee
Sent: Thursday, 28 August 2008 11:15 AM
To: listserver@ozMOSS.com
Subject: [OzMOSS] Workflow Email Notifications

Hi all,

 

We have a workflow set up on a list, which sends an email to a
particular user. In the body of the email, we want to be able to display
the created by's user's Full Name instead of their account. Does anyone
know if that is possible, and if so how to do that?

 

Additionally does anyone know how to remove the timestamp in the
workflow email - we are doing a lookup of a date field which is set to
date only (no time), however in the email text generated from the
workflow, the timestamp is displayed?

 

Thanks.

 

 

---
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 




This is an email from Fujitsu Australia Limited, ABN 19 001 011 427. It
is confidential to the ordinary user of the email address to which it
was addressed and may contain copyright and/or legally privileged
information. No one else may read, print, store, copy or forward all or
any of it or its attachments. If you receive this email in error, please
return to sender. Thank you.
 
If you do not wish to receive commercial email messages from Fujitsu
Australia Limited, please email [EMAIL PROTECTED]

---
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 




--- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com