Archive for October, 2008

>Fjern titler fra listeview webpart

>Sådan fjerne man titlerne/overskrifterne fra webpart med lister:

Resultat:

Indsæt en “webparten Indholdsredigering” og indsæt følgende kode:

<script type=”text/javascript” language=”javascript”>
_spBodyOnLoadFunctionNames.push(“HideHeaders”);
function HideHeaders()
{
var elements = getElementsByClassName(document, “tr”, “ms-viewheadertr”);
for(var i=0;i<elements.length;i++)
{
elem = elements[i]; elem.style.display = “none”;
}
}
function getElementsByClassName(oElm, strTagName, strClassName)
{
var arrElements = (strTagName == “*” && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
var arrReturnElements = new Array();
strClassName = strClassName.replace(/\-/g, “\\-“);
var oRegExp = new RegExp(“(^\\s)” + strClassName + “(\\s$)&quot;);
var oElement;
for(var i=0; i<arrElements.length; i++)
{
oElement = arrElements[i];
if(oRegExp.test(oElement.className))
{
arrReturnElements.push(oElement);
}
}
return (arrReturnElements)
}
</script>

Leave a comment

>Web 2.0 popup window – Lytebox

>Ved hjælp af web 2.0 kan man lave popup vindue ved hjælp af javascript.

eks.





http://www.youtube.com/get_player

Hvis du vil bruge web 2.0 popup window i sharepoint,så er opskriften her.

1. Hent Lytebox her:http://www.dolem.com/lytebox/lytebox_v3.22.zip

2. Lav et dokument biblotek med navnet “AdminFiles”

3. Kopier lytebox ind i dokunment bibloteket







4. Lav en “webpart til indholdsredigering” (CQWP) til javascriptet:


<script type=”text/javascript” language=”javascript” src=”http://server1/lytebox/AdminFiles/lytebox.js”></script><link rel=”stylesheet” href=”http://server1/lytebox/AdminFiles/lytebox.css&#8221; type=”text/css” media=”screen” />

5. Lav en “webpart til indholdsredigering” (CQWP) til linket:


<A href=”http://www.dr.dk&#8221; rel=”lyteframe” title=”My Page” rev=”width: 400px; height: 300px; scrolling: no” >Ã�ben dr.dk i vindue</A>

Læs mere på Lytebox hjemmesiden : http://www.dolem.com/lytebox/





1 Comment

>Beregnede kolonner (calculated column)

>Når man arbejder med beregnede kolonner, har man til tider brug for at lave beregninger hvor [mig] eller [idag], men det vil sharepoint ikke acceptere. Hvad gør man så :

  1. Lav en tekst kolonne og sæt standard værdi til [mig] eller [idag], og kald kolonnen eks. “CurrentUser”
  2. Lav en beregnet kolonne og sæt værdien til [CurrentUser]

Derefter er det en smal sag at få løst opgaven.

Leave a comment

>Godt site om Content Editor Web Part (eller på dansk: webdelen til indholdsredigering)

>På dette site er der en del tips og triks i brugen af Content Editor Web Part (eller på dansk: webdelen til indholdsredigering): http://www.contenteditorwebpart.com/default.aspx

Leave a comment

>URL parameter til InfoPath Form Services

>Nå man skal udfylde en infopath web formular i sharepoint, sker der normalt ved at laver en nyt dokument i det dokumentbiblotek hvor formularen er tilknyttet. Men der findes en bedre metode, nemlig vil at lave et link som brugerne kan klikke på. Fordelen ved dette er at brugerne ikke behøves at vide noget om det dokumentbiblotek hvor formularerne bliver gemt, og måske skal i ikke engang have adgang til det.

Ok hvordan opbygger med så den url, her et et eks.
http://server/site1/formularliste/_layouts/FormServer.aspx?xsnLocation=http://server/site1/formularliste/Forms/template.xsn&SaveLocation=http://server/site1/formularliste&Source=http://server/site1/formularliste&DefaultItemOpen=1

1. del
http://server/site1/formularliste/_layouts/FormServer.aspx beskriver hvor er
FormServeren.

2. del
xsnLocation=http://server/site1/formularliste/Forms/template.xsn beskriver hvor infopath templaten er placeret.

3. del SaveLocation=http://server/site1/formularliste beskriver hvor skal formularen gemmes, hvis der er en SAVE knap på formularen. Det giver god mening at undvære denne parameter, da man normalt inden i infopath formularen kontrollere hvor den skal gemmes . via en submit forbindelse.

4. del Source=http://server/site1/formularliste beskriver hvor skal brugeren sendes hen, når formularen lukkes.

5. del DefaultItemOpen=1 beskriver at formularen skal åbnes i en browser.

Se i øvrigt her:

Parameter Name
Description
Allowed Values

XmlLocation

Used to open an existing form. The XmlLocation and XsnLocation properties are mutually exclusive; specifying values for both parameters will result in an error.

A valid URL to a form file (.xml) in the same site collection.

XsnLocation

Used to open a new form based on a form template. If an XsnLocation is specified in a URL using FormServer.aspx, a SaveLocation should also be specified if the Save and Save As buttons need to be displayed. The Source parameter should also be specified or the message “The form has been closed” will appear when the user closes the form. The XmlLocation and XsnLocation properties are mutually exclusive; specifying values for both parameters will result in an error.

A valid URL to a form template file (.xsn) published on the same site collection.

OpenIn

  • If a Source query parameter is specified, the default value is Browser.

  • If XmlLocation is specified, the default value is the setting used in the library.

  • If only XsnLocation is specified, the default value is PreferClient.

  • If Mobile is specified, the form will be redirected to the MobileFormServer.aspx page for rendering. The form template must be enabled for mobile support or an error message will be returned.

  • Browser

  • Client

  • PreferClient

  • Mobile

Source

The location to which the user will be redirected when the form is closed. The URL must be in the same site collection or an error will be returned.

A valid URL in the same site collection as the form.

Options

DisableSave is the only allowed value. It hides the Save and Save As buttons and disables saving the form when it is rendered in the browser.

DisableSave

SaveLocation

A Save As dialog box is displayed prompting the user for a filename, and then it is saved in the specified folder. An error is returned if the specified folder does not exist.

Any valid folder location on the site collection.

NoRedirect

Does not redirect to FormServer.aspx for client detection or rendering in the browser. Default value is false. If true and an XmlLocation or XsnLocation is specified, a File Download dialog is displayed when using Internet Explorer.

  • true

  • false (default)

DefaultItemOpen

The OpenIn parameter should be used instead, and overrides the DefaultItemOpen parameter value. A value of 0 indicates that the request is from a document library and the InfoPath client was not detected. A value of 1 indicates that the request is from a document or form library that has the Display as a Web page setting.

  • 0

  • 1

http://msdn.microsoft.com/en-us/library/ms772417.aspx

1 Comment

>Content Query Web Part (CQWP)

>God artikel om hvordan man tilretter Content Query Web Part’en (eller “Webdel til indholdsforespørgsel” som den hedder på dansk): http://blogs.msdn.com/ecm/archive/2006/10/25/configuring-and-customizing-the-content-query-web-part.aspx

Leave a comment

>InfoPath Web form "inden" for sharepoint

>Når Infopath Form Services på en Sharepoint server åbner web formularen, sker dette i et “blank” vindue, dvs. uden sharepoint udsende. Hvis du gerne vil åbne en formular “inden” for sharepoint i en webpart, er her en artikkel som beskriver en at de metoder du kan bruge: http://elczara.spaces.live.com/blog/cns!554EC06D366AC9D5!186.entry

Leave a comment

>InfoPath – How to på dansk

>Microsoft har lavet “how to” video på dansk:

Designe en formular baseret på et XML-skema

Nå, sådan! Fantastiske funktioner for tilpasning af kontrolelementer i InfoPath

Se, hvordan du kan bruge Opslagstjeneste

Organisere multimedieklip og andre medier

Leave a comment

>Microsoft E-learning – SharePoint

>Link til E-learning om SharePoint:

E-Learning Collections
Collection 6306: Designing a Microsoft Office SharePoint Server 2007 Solution
Collection 6301: Working with Microsoft SharePoint Designer 2007
Collection 6285: Working With Microsoft Office SharePoint Server 2007
Collection 5404: Implementing Microsoft® Office SharePoint® Server 2007
Collection 5403: Implementing Microsoft® Windows® SharePoint® Services 3.0
Collection 3376: Implementing Enterprise Search Using Sharepoint Technologies

E-Learning Courses
Clinic 5046: Inside Look at Building and Developing Solutions with Microsoft® Office SharePoint® Server 2007
Course 5396: Implementing Business Processes with Microsoft Windows SharePoint Services 3.0 Workflows
Course 5397: Working with Site Services in Microsoft Windows SharePoint Services 3.0
Course 5465: Getting Started with Windows SharePoint Services 3.0
Course 5468: Using Windows SharePoint Services 3.0 with Microsoft 2007 Office System Applications
Course 6072: Managing Enterprise Content by using Microsoft® Office SharePoint® Server 2007
Course 6073:Creating Business Intelligence Solutions by using Office SharePoint® Server 2007
Course 6074: Integrating Business Data by using Microsoft® Office SharePoint® Server 2007
Course 6075: Accessing Application Platform Services by Using Office SharePoint® Server 2007
Course 6076: Searching Data by Using Microsoft® Office SharePoint® Server 2007
Course 6077: Personalizing a Portal by Using Microsoft® Office SharePoint® Server 2007
Course 6286: Using Enterprise Portal Features of Microsoft Office SharePoint Server 2007
Course 6302: Introducing Microsoft SharePoint Designer 2007
Course 6303: Customizing a SharePoint Web site Using Microsoft SharePoint Designer 2007
Course 6313: Designing for Performance and Capacity in Office SharePoint Server 2007
Course 4001: Team Collaboration Using Microsoft® Windows® SharePoint® Services
Course 5252: Administering Microsoft® Office SharePoint® Server 2007
Course 5390: Working with List Metadata and Content Types in Microsoft Windows SharePoint Services 3.0
Course 6287: Using Enterprise Content Management Features of SharePoint Server 2007
Course 6307: Designing Server Farms and Topologies in Office SharePoint Server 2007
Course 6310: Designing InfoPath Forms Services in Microsoft Office SharePoint Server 2007
Course 2286: Implementing Microsoft® Windows® SharePoint® Services
Course 3378: Implementing Enterprise Search by Using Microsoft Office SharePoint Server 2007
Course 5251: Deploying and Configuring Microsoft® Office SharePoint® Server 2007
Course 5255: Implementing Business Intelligence Solutions in Microsoft® Office SharePoint® Server 2007
Course 5386: Working with Server and Site Objects in Microsoft Windows SharePoint Services 3.0
Course 5388: Programming Lists and List Events in Microsoft Windows SharePoint Services 3.0
Course 5389: Managing Documents and Libraries in Microsoft Windows SharePoint Services 3.0
Course 5395: Using Events and Event Receivers in Microsoft Windows SharePoint Services 3.0
Course 6304: Adding Reports and Data Views Using Microsoft SharePoint Designer 2007
Course 6305: Workflows in Microsoft SharePoint Designer 2007
Course 3380: Extending Search in Microsoft® Office SharePoint® Server 2007
Course 4114: Doing More with Microsoft® Windows® SharePoint® Services 2.0
Course 5250: Introduction to Microsoft® Office SharePoint® Server 2007
Course 5387: Programmatically Securing Microsoft Windows SharePoint Services 3.0 Sites
Course 5393: Creating Custom Web Parts in Microsoft Windows SharePoint Services 3.0
Course 6311: Designing Security and Authentication in Office SharePoint Server 2007
Course 6312: Designing Enterprise Search in Microsoft Office SharePoint Server 2007
Course 5253: Implementing Content Management Solutions by Using Microsoft® Office SharePoint® Server 2007
Course 5254: Implementing Business Forms Using Microsoft® Office SharePoint® Server 2007
Course 5391: Customizing Navigation and Layout in Microsoft Windows SharePoint Services 3.0
Course 5398: Deploying Microsoft Windows SharePoint Services 3.0 Solutions
Course 5466: Creating and Managing Windows SharePoint Services 3.0 Site
Course 5467: Team Collaboration with Windows SharePoint Services 3.0
Course 6309: Designing Business Intelligence Solutions for Office SharePoint Server 2007
Course 4115: Getting Started with Microsoft® Windows® SharePoint® Services 2.0
Course 5244: Introduction to Microsoft® Windows® SharePoint® Services 3.0
Course 5245: Planning the Microsoft® Windows® SharePoint® Services 3.0 Environment
Course 5246: Deploying Microsoft® Windows® SharePoint® Services 3.0
Course 5247: Administering Microsoft® Windows® SharePoint® Services 3.0
Course 5248: Maintaining and Optimizing Microsoft® Windows® SharePoint® Services 3.0
Course 5249: Customizing and Securing Microsoft® Windows® SharePoint® Services 3.0
Course 5394: Working with Features and Site Definitions in Microsoft Windows SharePoint Services 3.0
Course 5240: Planning and Deploying Microsoft® Windows®–Based Hosted Services
Course 5243: Troubleshooting the Microsoft® Windows®–Based Hosting Solution
Course 6308: Designing Web Site, Search, and Document Management Solutions
Course 3379: Searching Line-of-Business Data by Using Business Data Catalog

Leave a comment

>SharePoint – Visual How To

>På msdn kan du finde en del gode “how tos” – her er dem der vedrører SharePoint:

Adding Code-Behind Files to Master Pages and Page Layouts in SharePoint Server 2007
Adding Custom Quick Access Buttons to the Page Editing Toolbar in SharePoint Server 2007
Adding Excel Web Parts to Pages Programmatically in SharePoint Server 2007
Building an Expense Report Approval Workflow for SharePoint Server 2007 Using Visual Studio 2008
Building Custom Activities for Use in SharePoint Designer 2007
Building Simple Custom Approval Workflows with InfoPath 2007 Forms
Building State Machine Document Approval Workflows for SharePoint Server 2007 Using Visual Studio 2008
Configuring and Deploying Workflows to SharePoint Server 2007 Using Solution Packages
Creating a Custom Approval Workflow for SharePoint Server 2007 Using SharePoint Designer 2007
Creating a Custom Expiration Formula Based on Metadata in SharePoint Server 2007 (Part 1 of 2)
Creating a Custom Expiration Formula Based on Metadata in SharePoint Server 2007 (Part 2 of 2)
Creating a Custom Search Page and Tabs in the Search Center of SharePoint Server
Creating and Editing Custom Document Information Panels from Office SharePoint Server 2007
Creating and Exposing Managed Properties in the Advanced Search Page of SharePoint Server Enterprise Search
Creating and Exposing Search Scopes in SharePoint Server 2007 Enterprise Search
Creating Business Data Catalog Entities in SharePoint Server 2007
Creating Content Sources to Crawl Business Data in SharePoint Server 2007 Enterprise Search
Creating Custom Enterprise Search Web Parts in SharePoint Server 2007
Creating Custom Routers in SharePoint Server 2007
Creating Custom Workflow Activities for SharePoint Server 2007 Using Visual Studio 2008
Creating Managed-Code UDFs for Excel Services
Creating Search Queries Programmatically by Using the Search Object Model in SharePoint Server 2007
Creating Search Queries Programmatically by Using the Search Web Service in SharePoint Server 2007
Creating SharePoint Sequential Workflows with Visual Studio 2008
Creating User Profiles in the User Profile Store in SharePoint Server 2007
Creating Workflows to Transfer Records Upon Expiration in SharePoint Server 2007
Customizing Content Query Web Parts by Using Custom Properties in Office SharePoint Server 2007
Customizing Page Editing Toolbar Components in SharePoint Server 2007
Customizing Search Results with Custom XSLTs in SharePoint Server 2007
Designing InfoPath Forms for Workflows in SharePoint Server 2007
Developing Custom Applications by Using Excel Web Services in SharePoint Server 2007
Displaying Custom Fields in Content Query Web Parts in Office SharePoint Server 2007
Displaying Search Results in a Grid View in SharePoint Server 2007
Enabling Users to Act on LOB Data with Business Data Catalog Actions
Exposing Enterprise Search in SharePoint Server 2007 by Using Internet Explorer 7 and the Office Research Pane
Filtering One Business Data Catalog List from Another by Using Associations in SharePoint Server 2007
Putting Multiple Items on Hold in SharePoint Server 2007
Referencing and Linking: Using Custom Fields to Display Relationships in SharePoint Server 2007
Referencing and Linking: Using Secondary Lists to Maintain Relationships in SharePoint Server 2007
Referencing and Linking: Using the Asset URL Selector in SharePoint Server 2007
Refining Business Data Catalog Search with Scopes
Retrieving an Entire Workbook or a Snapshot of a Workbook in Excel Services
Updating Document Information Panels for Content Type Changes in SharePoint Server 2007
Using Business Data Catalog Actions to Pass Parameters to InfoPath 2007 Browser Forms
Using Metadata Tags to Route Documents to Libraries in SharePoint Server 2007

Leave a comment