9.26.2007

Multi Email Accounts in Access Requests Text Box

SharePoint 2007 provides a function for denied user to request access right by email. You can configure an email account for receive the request mail. Just go to "People and Groups", click “Site Permissions", then click "Settings" and choose "Access Requests".

There are not always only one people manage the site, maybe two or more. You can put the ";" between emails in the text box like (owner1@teamsite;owner2@teamsite), then the request mail will send to multi email address.

SharePoint 2007 提供了一個功能讓沒有權限存取某個網站的使用者可以透過Email的方式對該網站請求存取權. 你可以在 "People and Groups"中點選 "Site Permissions", 然後選取"Settings"->"Access Requests". 會有一個Text Box, 填入Email, 就可以收到使用者的請求.

但是一個Site並不一定只會有一個人在管理, 所以怎麼將多人都放入Email清單中呢? 很簡單, 只要把分號放置其中, 像(owner1@teamsite;owner2@teamsite), 這樣子裡面每個人都會收到要求授予權限的Email了.

9.19.2007

Server Error 2041 Occurred Invalid BlogId Parameter

如果使用Windows Live Writer Beta時要Publish新的Post時, 跳出這個錯誤訊息,你可以先看看自己用的是不是最新版, reference here:http://windowslivewriter.spaces.live.com/blog/cns!D85741BB5E0BE8AA!926.entry?&thisPost=cns!D85741BB5E0BE8AA!926&nextComment=true&commentPH=cns!D85741BB5E0BE8AA!952&expand=cmt

或是先確定自己的在Weblog->Edit Weblog Settings裡面的路徑要設定成http://yourweblogname.spaces.live.com/ 的樣子.

If popup up the error message "Server Error 2041 Occurred Invalid BlogId Parameter" after publish new post to "Live Space" by Windows Live Writer, please reference here:http://windowslivewriter.spaces.live.com/blog/cns!D85741BB5E0BE8AA!926.entry?&thisPost=cns!D85741BB5E0BE8AA!926&nextComment=true&commentPH=cns!D85741BB5E0BE8AA!952&expand=cmt

If your version is lastest version, please check the url setting in "Weblog->Edit Weblog Settings", the path should be like http://yourweblogname.spaces.live.com/

SPFieldUser

SPFiled一直都是個難解的東西, 真希望能有Class Diagram與Architecture出來看看.

想到以前想要取出List裡面的Item的Contact or something else的欄位, 用SPUser接了半天只接到Exception...

後來發現要用SPFieldUser去套那個欄位, 然後用SPFieldUserValue去接, 接出來後在SPFieldUserValue.User裡面去取出SPUser.

不過講到這裡, 這裡是有關GetFieldValue的寫法...

String currentvalue=item[field.Title].ToString();

SPFieldUserValue fieldvalue=(SPFieldUserValue)field.GetFieldValue(currentversion);