SharePoint / ASP.Net Development
Experiences from the field...
Navigation
   RSS 2.0
Categories
Entries by Month

# Thursday, April 29, 2004

I was in the middle of answering a question on the message board at SharePointU and I thought it would make a good blog entry.

The WSS framework provides a mechanism (called tokens) to uniquely identify the HTML DOM elements of each part. When writing client-side script in a web part, you can use the token _WPQ_ to refer to the current web part. The poster in the forums is using the token to reference the WebPartCaption element:

            var wpc = WebPartCaption_WPQ_;

However, this is not working because the _WPQ_ token has been changed by WSS. Looking at the page source in IE will show WPQ1, WPQ2, etc. To get the script to work, we need to use the ReplaceTokens method of the WebPart object.

ReplaceTokens takes a string as input and returns the same string with all of the WebPart tokens converted in to their appropriate values. A list of the available tokens is included in the SDK page on ReplaceTokens().

I also posted a sample.

Thursday, April 29, 2004 8:44:19 AM (Central Daylight Time, UTC-05:00)  #    Comments [0]  | 
# Sunday, April 25, 2004
FrontPoint is a blog written by folks from the dev/pm/test teams who create FrontPage.
Sunday, April 25, 2004 8:58:26 PM (Central Daylight Time, UTC-05:00)  #    Comments [0]  | 
# Wednesday, April 21, 2004

If you're not bringing new ideas to the table, You're signing your own pink slip.

Tom Yager, InfoWorld, 04.19.04

Wednesday, April 21, 2004 2:32:10 PM (Central Daylight Time, UTC-05:00)  #    Comments [0]  | 
# Monday, April 19, 2004

We are live with our WSS site. The cut-over actually happened Thursday of last week. On Friday, the network team worked on the latest patches, so having multiple machines was very nice.

On the to-do list now is migrating legacy content into the WSS lists. The ultimate goal is to have our content in the search results, but keep our existing user interface. I've written a console program to syncronize a list (and other list activities like viewing the schema and contents). I'll try to post the concepts later this week.

Monday, April 19, 2004 4:56:16 PM (Central Daylight Time, UTC-05:00)  #    Comments [0]  | 
# Thursday, April 15, 2004

Now that you have your PowerPoint presentation ready using the Sharepoint template, here is a tip about presenting and viewing your speaker notes.

Thursday, April 15, 2004 9:19:26 AM (Central Daylight Time, UTC-05:00)  #    Comments [0]  | 
# Tuesday, April 13, 2004

I have a few overview/training sessions coming up, so why not use the WebPart user interface look for the slides. Download the WebPart-inspired PowerPoint template (created in PP 2003).  SharePoint.pot (35 KB)

Tuesday, April 13, 2004 3:28:08 PM (Central Daylight Time, UTC-05:00)  #    Comments [0]  | 
# Monday, April 12, 2004

A few items about searching with WSS (not Portal) that are worth remembering:

  • SQL Server is required. WMSDE does not support search.
  • To search non-office file types, an IFilter must be installed on the SQL Server machine.
    • Acrobat IFilter: http://www.adobe.com/support/downloads/detail.jsp?ftpID=1276
    • If you already have Acrobat files in the system, you need to rebuild the full-text index. In SQL Enterprise Manager, expand the content database. In the Full-Text Catalogs node, right-click on the catalog (ix_databasename) and choose Start Full Population. 
    • Configuring WSS to display Acrobat (and other) icons in search result: KB 832809

 

Monday, April 12, 2004 12:27:28 PM (Central Daylight Time, UTC-05:00)  #    Comments [0]  | 
# Sunday, April 11, 2004

I was refering to the production server via two different names (//MachineName and //portal.company.net). The web-service based operations (FrontPage, WPSC) would not work.

I found a few different KBase articles that lead me to an answer. 830342 discusses adjusting the virtual server to match the host header name. 832816 discusses the inability of WSS to find a server instance.

In IIS Admin, I added portal.company.net to the Web Site Idenfication for the Virtual Server:

- Right-click on virtual server (i.e. Default Web Site) and choose Properties
- On the Web Site tab, click Advanced
- In the "Multiple identies for this Web site" section, Click Add
- For IP address, choose the same setting as the existing entry
- For TCP port, choose the same setting as the existing entry
- For Host Header value, enter [portal.company.net]

Sunday, April 11, 2004 10:55:23 PM (Central Daylight Time, UTC-05:00)  #    Comments [0]  | 

This post echoes my experience...

Sunday, April 11, 2004 8:55:45 PM (Central Daylight Time, UTC-05:00)  #    Comments [0]  | 
# Thursday, April 08, 2004

My default.aspx page has four parts.  Everything looks and works as it should.

I added a new part. This part has client-side script that uses the WPSC to read and save a custom property. It does not work. (Here we go again...)

What I've discovered is that the WPSC is using the web services (in this case, GetWebPart) to communicate with the server. The call to this service is failing with a status of 500 - Server error. (Very helpful message, don't you think!!)

So, I attached the debugger to the iexplore process and trapped the SOAP messages. The response the the GetWebPart call is a soap:Fault with an error string of:

A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe.

I found the Web Part Maintenance page, which is located at /_layouts/1033/spcontnt.aspx. This page lists all the web parts on the specified page and allows you to “close” or delete them. Very useful.

In my case, however, all of the custom web parts are listed as Error!!!

So, after four hours, I'm lost.  How in the world can I see the parts if they are not safe?

Help.  Please.

Thursday, April 08, 2004 11:03:33 AM (Central Daylight Time, UTC-05:00)  #    Comments [4]  | 
Search

Further Reading...

Powered by: newtelligence dasBlog 2.2.8279.16125

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008, Paul Schaeflein

Send mail to the author(s) E-mail