Cartlanna míosúla: Deireadh Fómhair 2007

SharePoint Dearthóir — Ghníomhaíocht an Chustaim a fhorghníomhú user-sainithe C # feidhmeanna

Suas chun dáta: Tá sé seo le scaoileadh CodePlex anseo: http://www.codeplex.com/spdwfextensions

Suas chun dáta: Féach anseo le haghaidh nótaí scaoileadh is déanaí: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry

Suas chun dáta: Féach anseo le haghaidh mo smaointe ar thráchtálú an tionscadal seo: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!569.entry

This project provides a custom activity in SharePoint Designer. Use this custom activity to invoke (seolta) any C# function that you incorporated into the linked assembly.

Amhail Deireadh Fómhair go déanach, 2007, this is just an initial version of the project. I plan to expand it with a number of additional functions, lena n-áirítear bhfotheaghrán, Innéacs, ionad, invoking web services and anything that seems useful or interesting. I also plan to post this to codeplex once I have my act together on that front. This will also be deployable as a solution at some point.

Má tá aon tuairimí agat, ceisteanna nó moltaí, iad a fhágáil i tuairimí nó ríomhphost chugam le do thoil.

Séanadh:

I make absolutely no claims as to the suitability of this for any purpose. Use at your own risk.

Céimeanna a shuiteáil (a leanfar i gcás gach WFE an bhfeirm):

1. Íoslódáil an. Zip agus sliocht.

2. Install the .dll into the GAC. I usually open c:\fuinneoga tionól ag baint úsáide as fuinneoga taiscéalaí agus é a chóipeáil ann.

3. Athraigh web.config chun an tionól a chur leis na rialuithe sábháilte:

<System.Workflow.ComponentModel.WorkflowCompiler>
<authorizedTypes>

<authorizedType Assembly="SpdGenericInterface, Leagan 1.0.0.0 =, Cultúr = neodrach, PublicKeyToken = abe076fd8125f3c4" Namespace="Nivlag" TypeName="*" Authorized="True" />

4. Copy "SpdGenericInterface.actions" le C:\Program Files Common Files Microsoft Roinnte síntí fhreastalaí gréasáin 12 TEIMPLÉAD 1033 Sreabhadh Oibre

Tabhair faoi deara go bhfuil an suíomh thuas go sonrach le suiteálacha teanga Béarla.

5. Dún SharePoint Dearthóir (má tá sé ar oscailt cheana).

6. iisreset

7. Oscail SPD agus sreabhadh oibre nua a chruthú.

Má théann gach maith, ba chóir duit a bronntar le catagóir nua gníomhaíochta:

íomhá

Nótaí:

Féach anseo (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) dhéanamh d'fhorbhreathnú iontach ar an bpróiseas a chruthú, a shuiteáil agus a chumrú le réiteach mar seo.

Tá an. Zip deartha a bhaint go díreach chun tú c:\ drive. If you do this, Is féidir leat a oscailt an tionscadal agus beidh na cosáin a bheith comhsheasmhach.

Chun seo a úsáid i amhairc stiúideo, you probably need to install "Extensions for Windows WF".

The initial upload contains just one "dispatcher function", "ToLower()". To add more functionality, é a chur leis an modh Rith mar a thaispeántar:

 chosaint shárú ActivityExecutionStatus
          Rith(ActivityExecutionContext executionContext)
        {

            teaghrán functionToDispatch;
            functionToDispatch = seo.DispatchFunction.ToLower();

            athrú (functionToDispatch)
            {
                cás "tolower()":
                    {
                        seo.OutResult1 = seo.InParam1.ToLower();
                        bhriseadh;
                    }

                réamhshocraithe:
                    {
                        seo.OutResult1 = "Unknown function: [" + seo.DispatchFunction + "].";
                        bhriseadh;
                    }
            }

            ar ais ActivityExecutionStatus.Dúnta;
        } // ActivityExecutionStatus

    }

Ansin,, re-build the project and copy the assembly to the GAC. I expect an iisreset would be required.

SPD Sreabhadh oibre saincheaptha gníomh – a fháil ar an <WorkflowInfo> chlib ceart frustrachas a sheachaint

Baineann Cuid den phróiseas maidir le cruthú gníomh saincheaptha le haghaidh Dearthóir SharePoint a chruthú ". Gníomhartha" comhad.

Fuair ​​mé agus iarracht a úsáid le teimpléad sampla a thosaíonn amach mar:

<?xml leagan="1.0" ionchódú="utf-8" ?>
<
WorkflowInfo xmlns="http://schemas.microsoft.com / SharePoint /">
<
Gníomhartha Seicheamhach="ansin" Comhthreomhar="agus">

Mar sin féin, that xmlns attribute prevents my environment from working. My actions don’t show up in SPD.

Is é an réiteach a stiall amach an tréith xmlns, do an iisreset and close/re-open SPD.

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á

Tabhair dea-scéal go minic; a thabhairt nuacht olc go luath

Bainim ina chomhairleoir do a lán de na blianta anois agus mar a fhios ag aon sainchomhairleoir taithí, good communication is one of the key pillars to the successful delivery of a project. Tá sé chomh soiléir, it’s really almost boring to talk about. This isn’t a post about generic communication. Ina áit sin, Tá mé ag scríobh mar gheall ar an taobh dorcha na cumarsáide — cumarsáid a dhéanamh droch-nuacht.

Ní gá a rá go bhfuil ag tabhairt dea-scéal don chliant a rinneadh go léir an t-am, as often as possible. Who doesn’t want to give good news? Who doesn’t like to hear good news?

Ar an taobh smeach, bad news is no fun at all. I have always struggled with this. In the earlier days of my career, Bheadh ​​a fhios agam go raibh rud éigin awry le tionscadal agus in ionad ag insint an cliant, I would work longer hours to try and solve the problem. I would enjoin my team to work harder. It’s a natural enough impulse to think that a super-human effort can save the day. Some times this works, some times it does not. Even when it "works" it’s often a mixed bag. Is the quality of the deliverable really up to spec when key parts have been developed over several 60 go 80 seachtaine uair an chloig?

Cad é an bealach is fearr chun déileáil le droch-nuacht? The answer is: tell it early. Don’t wait until one week before the project budget will be consumed. If you know six weeks out that there simply isn’t enough time to deliver some bit of promised functionality, tell the client right then and there. The client may get upset (is dócha), there may be incriminations and accusations and hurt feelings. Ach, nuair a mothúcháin cool as, there’s still six weeks left on the project. Six weeks is a good chunk of time. There’s time to adjust plans, sceidil athrú, a fháil ar an liathróid rollta ar síntí bhuiséad (luck maith!) and just generally come to grips with the "facts on the ground" and devise a new plan that still results in a successful project.

Cás i bpointe: Tá mé ag obair ar thionscadal arb iad is sainairíonna:

  • T&E budget with a capped "Not to exceed" méid Dollar.
  • A "best efforts will be made" gealltanas a sheachadadh X, Y agus Z faoi dheireadh tionscadail.
  • Lack of promised key resources on the client side. These resources were not withheld on purpose, nor for any "bad" cúis, ach coinníodh siar iad.
  • A dawning realization as the project passed the half-way point that we were not going to be able to deliver "Z" (go príomha toisc nach raibh na hacmhainní atá geallta atá ar fáil iarbhír).
  • Regular status reports and "CYA" doiciméadú a tacaíocht dúinn (an fhoireann i gcomhairle le) up.
  • Fhoireann cur i bhfeidhm go docht knit le comhalta a tarraingíodh as an eagraíocht dul i gcomhairle le (mo chuideachta) agus an cliant.
  • Fhoireann bainistíochta i bhfad i gcéin, in both a metaphorical and physical sense. The management team was focused on another large enterprise project and due to space constraints, bhí an fhoireann chun feidhme lonnaithe i bhfoirgneamh ar leith ar an gcampas, down a hill and relatively far way from "civilization".

Le thart ar shé seachtaine fágtha ar an mbuiséad an tionscadail, muid (an fhoireann cur i bhfeidhm) knew that we were trouble. The contract said that we needed to deliver "Z". Even though the project is time & materials and even though we only promised "best efforts" a sheachadadh Z agus cé go raibh muid údar mór do iarraidh a sheachadadh … Is é an líne bun nach raibh sé ag lorg maith — Ní raibh muid ag dul a sheachadadh Z i gcruth ar chaighdeán a bheadh ​​a dhéanamh duine ar bith a bheith bródúil.

Ag aithint seo, Chuaigh muid chuig an mbainistíocht agus dúirt sé leo go mbeadh an buiséad tionscadail a chaitheamh faoi dháta áirithe agus go raibh muid i dtrioblóid le Z.

A firestorm mion erupted thar an lá atá amach romhainn.

Lá 1: Glaonna fhoireann bhainistíochta a fhoireann do chruinniú speisialta (muid, ní na comhairleoirí Tugtar cuireadh). Contracts are printed and handed out to everyone and a line-by-line review ensues. Management puts the staff members on the defensive. I don’t think the phrase "Stócólm Siondróm" Tá * iarbhír * in úsáid, ach gheobhaidh tú an pictiúr. We’re a tight-knit group, tar éis an tsaoil, agus tá an fhoireann ag obair le linn comhairleoirí lá isteach agus amach ar feadh cúpla mí anois.

Lá 2: Management calls another staff meeting. They feel a little better. They want options and ideas for moving forward. They realize there’s still six weeks remaining in the current project budget, which is still a decent bit of time. One of the action items: sceideal cruinniú le foireann cur i bhfeidhm iomlán (lena n-áirítear comhairleoirí).

Lá 5: Buaileann foireann iomlán, constructive meeting ensues and a new achievable plan put into place. Even better, we’ve already begun discussing phase two and the client invites us to prepare proposals for that phase immediately.

Má bhí d'fhan muid go dtí fhan díreach trí seachtaine, nó níos measa fós, ceann amháin nó dhá sheachtain, it would have been much different. Instead of a constructive meeting to re-align the project, ba mhaith linn a bheith ag tarraingt amach tuairiscí stádais, parsing the contract and reviewing old emails to justify this or that decision. We would have "won" but is it really "winning" sa chás seo?

Mar sin,, má tá tú a thabhairt nuacht olc, give it early. Bad news given late isn’t just bad, Tá sé Uafásach.