Cartlanna Catagóire: SharePoint

Tapaidh agus éasca: Leabú hipearnasc isteach sonraí fhonn gréasáin mar chuid XSLT

Suas chun dáta (01/17/08): Seo cainteanna iontráil blag faoi níos mó hyperlink XSL maitheas: http://www.sharepointsecurity.com/blog/sharepoint/sharepoint-2007-development/rewriting-links-in-search-results-xslt.

Forbhreathnú agus Cuspóir: I had created a simple bar chart to serve as component on a dashboard. I’ll save the details on building charts for another post, ach ní raibh mé invent an teicníc (ná an comhartha ceiste, an ní sin). It turned out there was a bug in the chart and while I fixed that, I took the opportunity to convert some labels into hyperlinks that pointed at the underlying list behind the graph. Mar shampla, there is a label with value "Hold". I wanted to turn the label into a hyperlink so that the user could click on it and drill down to the specific entries in the list whose status value is "Hold".

Céimeanna:

  1. Bain úsáid as stiúideo amhairc le haghaidh IntelliSense SharePoint-eolas.
  2. Cóipeáil XSLT an DVWP ar isteach amhairc stiúideo (tionscadal bán a chruthú, comhad XSL a chur leis an tionscadal).
  3. Cóipeáil an nasc mian leat a úsáid i an gearrthaisce.
  4. Greamaigh sé isteach ar an suíomh gceart sin sa XSL.
  5. Convert URL argument separators on the query string from "&" to "&Dodgers;"
  6. Url-ionchódú argóintí aonair.
  7. Wrap go taobh istigh d' <a href…> </a>

Sampla:

Tá mé URL:

http://[freastalaí]/[suíomh]/Liostaí / Oscailte 20Positions/AllItems.aspx%?Féach ={84EEA2F5-121B-40B7-946F-0FA704A1DAA1}&FilterField1 = hearcóir&FilterValue1 = Hold

Liom a thiontú sé isteach:

     <a href="Liostaí / Oscailte 20Positions/AllItems.aspx%?Féach =% 7b84EEA2F5-121B-40B7-946F-
0FA704A1DAA1% 7d&Dodgers;FilterField1 = hearcóir&Dodgers;FilterValue1 = Hold"> Coinnigh: </a>

Mé a chlaochlú de láimh an chéad argóint ó:

{84EEA2F5-121B-40B7-946F-0FA704A1DAA1}

go:

%7b84EEA2F5-121B-40B7-946F-0FA704A1DAA1% 7d

(Sa, Athraíonn an brace ar oscailt do% 7b agus transforms an brace deiridh chun% 7d)

An dara agus an tríú argóintí’ paraiméadair ("FilterField1=Hearcóir" and "FilterValue1=Coinnigh" faoi ​​seach) nach gá a bheith url-ionchódaithe mar nach bhfuil siad go bhfuil aon carachtair neamhshábháilte.

Nótaí:

Ba chóir an teicníc obair go ginearálta in áit ar bith is mian leat a hyperlink in XSLT ina n-áirítear an hyperlink paraiméadair ar an URL, mar shampla a leabú:

http://[freastalaí]/[suíomh]/Liostaí / Oscailte 20Positions/AllItems.aspx%?Féach ={84EEA2F5-121B-40B7-946F-0FA704A1DAA1}&FilterField1 = hearcóir&FilterValue1 = Hold

Fuair ​​mé an URL féin trí rochtain a fháil ar an liosta saincheaptha agus de láimh scagadh ar an gcolún ar stádas (labeled "Recruiter" thuas).

Tá an Beagle Landed (Deireadh Fómhair 2007 eisiúint)

(Tá sé seo i ndáiríre ar scéal beag d'aois, ach de réir mar proclaims mo mana stáisiún dóiteáin is fearr leat, "Better late than never").

Seiceáil sé amach anseo: http://www.sharepointbeagle.com/

Más rud é nach bhfuil tú cheana féin, a bheith cinnte a clárú.

Ar ndóigh,, a bheith cinnte a léamh mo airteagal about a real-world SharePoint project (lena n-áirítear ceanglais sainmhíniú, KPI, cineálacha ábhar, dashboards and more) as well as mo chomhghleacaí article about the content query web part.

Níl go leor de na rudaí maith eile freisin.

Conas a bhaint “Féach ar gach ábhar an tsuímh” nasc

Tá D'iarr mé ar an cheist beagnach gach seachtain, de ghnáth i gcomhthéacs an phlé slándála. An administrator/site creator has provisioned a site, slándála cumraithe, arranged web parts and customized the quick launch to provide that oh-so-perfect set of options to the end user. Ach, amach as an bhosca, you can’t remove the "view all site content" nasc.

Mark Wagner Soláthraíonn an freagra anseo (http://www.crsw.com/mark/Lists/Posts/Post.aspx?ID=36). Is é a scríobh-suas terrific ar dhá leibhéal. Tugann sé freagra ar an gceist, "How do I remove the View All Site Content" nasc? Ansin,, Freagraíonn sé láithreach a leanúint-ar cheist: Conas is féidir liom a chumasú go héasca ar an tuairim go léir nasc ábhar an tsuímh ar bhonn an láthair-ar-láthair?

Mar bónas: Oibríonn a chur chuige do SSU, ní hamháin CAONAIGH.

</deireadh>

Liostáil le mo bhlag!

Quick agus Simplí: Cumraigh MOSS chun cuardach a dhéanamh ar leabharlann doiciméad ar leith

See UPDATE (Mé) below (11/24/07) on How to Configure Microsoft Office SharePoint Server 2007 go Innéacs agus Crawl Fillteáin Líonra Cuardaigh

Cuspóir: I want to execute a search restricted to a specific document library. Sa chás seo, Tá cáipéisí oiliúna an leabharlann doiciméad.

Céimeanna:

1. Taifead an URL an leabharlann doiciméad.

2. Cruthaigh scóip:

Téigh go dtí riarachán lárnach.

Access the SSP.

Go to "Search Settings".

Scroll down to the scope section and select "View Scopes".

Create a new scope. Give it a name and useful description.

3. Define scope crawl rules:

Add a rule that defines the document library for this scope.

Select "web address" for "Scope Rule Type".

Enter the name of your folder (féach ar #1 thuas).

Accept the default value of "Include".

Wait for the scope to update (or start it manually).

4. Cumasaigh an raon feidhme i mbailiúchán láithreán.

Téigh le bailiúchán láithreán áit ar mhaith leat a bhaint as an raon.

Do raon feidhme nua a chur leis an ngrúpa taispeáint cuí nó grúpaí.

5. Cuardaigh!

Ag an bpointe seo, you’re done. Assuming the scope is properly defined, Beidh sé ar fáil i downs titim scopes le haghaidh cuardach simplí agus dul chun cinn agus nuair a chuardaíonn tú ag baint úsáide as raon, go mbainfidh tú a fháil ach torthaí súil agat.

Nótaí:

Scríobh mé an iontráil seo bhlag mar gheall ar iompaigh mo cuardaigh a dhéanamh chun thus raon simplí suas tirim frásaí a úsáid mar:

  • scopes chumrú i CAONAIGH
  • chumrú caonach scóip cuardaigh
  • scopes i SharePoint 2007
  • scopes i SharePoint
  • cuardach a dhéanamh ar dhoiciméad leabharlann caonach
  • Scopes chéad caonach

Is féidir leat a chruthú a bhfuil raon feidhme cuardaigh ar fhillteán, not just the entire document library.

Is féidir le raon feidhme a roinnt thar bhailiúcháin láithreán il (dá bhrí sin, a "shared service").

You can create the scope at the site collection level itself. Mar sin féin, I prefer to go to central admin because I can start the crawl from there. You cannot start the crawl from the site collection.

Suas chun dáta (Mé) mar ar 11/24/07:

Kai Shang put together a great post entitled How to Configure Microsoft Office SharePoint Server 2007 go Innéacs agus Crawl Fillteáin Líonra Cuardaigh @ http://kaishenghoo.spaces.live.com/blog/cns!8A7458DB12CA5AC9!206.entry

Clibeanna Technorati: , ,

Uimh anraith ar do shon! Is Cisco an Nazi Anraith de tháirgí NLB?

Sa lá atá inniu, I tried to access a document library via windows explorer. This doc lib is living inside a system that consists of two WFE’s load balanced by some kind of Cisco NLB solution. (Má / nuair a wizards líonra insint dom cad é, Feicfidh mé an post seo cothrom le dáta).

Windows explorer couldn’t connect. I did some research and eventually, an wizards líonra dúirt go WebDAV faoi ​​mhíchumas ag / Ní thacaíonn / beneath the dignity of the NLB.

Mar sin,, assuming the network wizards aren’t just telling me the network wizard equivalent of "take a long walk off a short bridge", Caithfidh mé a Wonder — dhéanann NLB, ag nádúr, dhíchumasú WebDAV? Do we lose our windows file explorer interface to SharePoint? Is Cisco the Anraith Nazi?

Bainistíochta CAONAIGH / Timpeallachtaí SSU — coinneáil suas le bonn eolais Microsoft

Microsoft creates knowledge base articles day in and day out and some of those are darned important to know about if you live in the SharePoint world.

Mé a choinneáil suas chun dlús a chur leo trí sheirbhís a chur ar fáil ag an folks go maith ag www.kbalertz.com. KBAlertz enables you to sign up for your favorite MS technology and they send you digest versions of Microsoft KB articles via email.

Polasaí Iarratais Gréasáin, Láithreáin Slándáil agus Slándáil Bearradh — Know do chumraíocht

(Updated 11/29 a mhíniú conas rochtain a suímh ghréasáin polasaí i bhfeidhm tríd an Chomhéadain)

I had one of those "why is MOSS doing this to me????" moments today. Sa deireadh, tá sé go léir mo locht.

We have an enterprise MOSS project going on and we want to secure "place holder" sites so that no user may access it or see it. That’s easy:

  1. Téigh go dtí an láithreán.
  2. Briseadh an oidhreacht slándála.
  3. Bain gach úsáideora / grúpa ó ceadanna láithreán.

Ba chóir an thuas fhágáil ach an riarthóir bailiúcháin suíomh le cead a fheiceáil ar an suíomh.

Má logs duine ar bith eile i, ba chóir dóibh a thuilleadh a fheiceáil ar an suíomh seo agus ba chóir é a bheith slándála-bearrtha ó na háiteanna is gnách.

Ach … Ní raibh sé. Ag an am céanna, I suddenly realize that my "Joe User" standard user test account with no priv’s other than restricted read access has a "Site Actions" choice everywhere he goes. I double check one thing and double check something else. I pick up the phone to call a colleague, but put it down and check something else. I go for a walk and try everything all over again. I call a colleague and leave a message. And then, ar deireadh, I find that at Ethan’s blog, his opening graph makes it quite simple:

CAONAIGH 2007 has a new feature called Web Application Policies. Tá na ceadanna slándála go bhfuil ceangailte le Iarratais Gréasáin. Tá na socruithe slándála gcealófaí leis aon socrú slándála atá leagtha ag an mBailiúchán Suíomh nó an tSuímh (Gréasáin) leibhéal don úsáideoir.

A quick visit to web application policies shows that "NT Authority\authenticated users" had been granted Full Read. I removed them from the list and everything finally started working as expected. I believe they were added in the first place by someone with the mistaken impression that that is best method to grant read access to everyone in the enterprise. It does, ach, le brú a ceanglófar, "It does not mean what you think it means."

Access web application policies this way:

  1. Téigh go dtí Riarachán Lárnach
  2. Roghnaigh Bainistíochta Iarratais
  3. Select "Policy for Web Application"
  4. On that screen, make sure you pick the correct web application. Maidir liom féin, it defaults to the web application of central admin which may not be the one you want.

Nuair a bhí mé an fhadhb seo, Chuardach mé do na frásaí seo a leanas agus fuair ionadh beag i dtéarmaí cabhair dhíreach ar an tsaincheist seo:

Gníomhartha suíomh le feiceáil do gach úsáideoir

Gníomhartha suíomh le feiceáil ar na húsáideoirí go léir

Ní ghníomhartha suíomh seo bearrtha slándála

dhaingniú láithreán CAONAIGH

a thabhairt isteach chun caonach slándála

Clibeanna Technorati:

Quick agus Simplí: Bain úsáid Iarratas Eochairfhocal Seasta i Results Core Cuardaigh

Treoracha Quick agus Simplí:

Cuir an leathanach agus cuir Torthaí Core chuid gréasáin Cuardaigh.

Edit that web part and expand "Fixed Keyword Query".

Cuir an cheist eochairfhocal seasta (e.g. ContentType:"Training invoice" TrainingInvoiceNumber:1111)

Expand Results Query Options and change "Cross-Web Part query ID" to a value other than "User Query" (e.g. "Query 2").

Nótaí:

Using core search results in this manner allowed me to create a page that shows information from another site collection. The client has two major site collections: Ranna agus Táirgí.

Éard atá sa bhailiúchán láithreán táirge, go nádúrtha go leor, product information. Each product in the site collection aggregates data from multiple sources.

Ceann de na ranna, cóid agus tástáil, is on such source. When users access product XYZ, they should see codes and testing data directly on the XYZ main page. Since codes and testing is hosted in another site collection, it’s a little awkward. We decided to use the core search results web part since search spans site collections. Codes and Testing manages product data via a custom list that is constrained by a specific content type. Aa keyword query that uses first the content type and then the product number narrow down the search to a single row in the custom list.

The keyword query above is an AND. It returns documents of content type "Training Invoice" and where the invoice number equals "1111".

Buntáiste deas as an gcur chuige seo: We can edit the XSL from the core search results web part and generate any format that we want.

Féach anseo (http://devcow.com/blogs/jdattis/archive/2007/04/17/SharePoint_2007_How_to_Rollup_Content_from_multiple_Site_Collections.aspx) le plé blagaire eile ar an ábhar seo.

</deireadh>Liostáil le mo bhlag.

Inis dom faoi do bhlag!

Má tá tú a choinneáil ar bhlag go bhfuil baint aige ar a laghad minimally ar SharePoint, please let me know in comments. I would love to add you to my liosta bhlag.

Má tá tú a choinneáil ar bhlag nach bhfuil nasctha le SharePoint ach ba mhaith liom a chur air ar aon nós, in iúl dom. I’ll may create a separate blog list.

Le do thoil a thabhairt:

  • Do bhlag URL (ar ndóigh)
  • Tá cur síos gairid ar do bhlag.

I want to keep the link to "active" blogs, which I’m roughly defining as one post per week and minimum three months old. If you don’t meet that "requirement" add your name to comments anyway. It’s *my* list so I can break my own rule if I want to.

Go raibh maith agat!

Sceideal Oiliúint Fostaithe agus Ábhair Teimpléad — Bug decrement sa teimpléad

The client noticed a bug today with the above mentioned template.

Course managers create courses. When creating a course, Sonraíonn an bainisteoir líon uasta na suíochán atá ar fáil.

The template provides for self-service enrollment. I enroll and a workflow attached to the registration list decrements the "available seats" a bhaineann leis an gcúrsa.

Individuals may also unregister from a course. The bug lies here. Unregistering from a course does not increment the available seats counter. Mar thoradh air sin, available seats is not accurate. This bug is compounded by the fact that when available seats decrements to zero, no more self-service registration is allowed.

Fortunately, Microsoft provides the workflow for this process. Even better, it’s a straight-forward workflow created via SharePoint Designer.

Follow these high level steps to fix it:

  1. Fire up SDP.
  2. Access the site based off the training template.
  3. Access "Attendee unregistration" sreabhadh oibre.
  4. Insert these steps (Rinne mé iad an dá chéad chéimeanna):
    1. Ríomh Cúrsaí:Suíocháin Líonta lúide 1 (Aschur a Athróg:Calc)
    2. (ansin) Ítim Nuashonraigh i Cúrsaí

Cliceáil Críochnaigh agus tú ag déanamh.

Shots Scáileán:


SharePoint Dearthóir:

íomhá

Sreabhadh oibre Críochnaithe:

íomhá

Ríomh druileáil-síos:

íomhá

Mír Nuashonraigh i gCúrsaí:

íomhá