Cartlanna míosúla: Márta 2008

Socraigh Port QRServer FAST

D'fhonn cumarsáid a dhéanamh le FAST Cuardaigh trína API, is gá dúinn a fhios ag an gcalafort ar a bhfuil an QRServer ag rith.

Lean mé ar na céimeanna a aimsiú dó:

  1. Logáil isteach ar an suíomh admin FAST (http://server:port/admin).
  2. Nascleanúint a dhéanamh Forbhreathnú Córas.
  3. Locate "Search Dispatcher" agus cliceáil ar an deilbhín Spyglass:

    íomhá

  4. Bhain mé úsáid as go rathúil leis an luach, 15100 for "Info Name" = "http":

    íomhá

Nótaí:

1. Port 15100 appears to be the default out-of-the-box port number for the QRServer.

2. Bain úsáid as an cód cosúil leis an méid seo a leanas le ceangal instantiate a FAST:

     ISearchFactory searchFactory;
    
        NameValueCollection nameValueCollection = nua NameValueCollection();
    
        nameValueCollection.Add("fastsearchengine", "Com.FastSearch.Esp.Search.Http.HttpSearchFactory");
        nameValueCollection.Add("Com.FastSearch.Esp.Search.Http.QRServers", "fastdemoback:15102");
        nameValueCollection.Add("Com.FastSearch.Esp.Search.Http.RequestMethod", "GET");
    
        searchFactory = SearchFactory.NewInstance(nameValueCollection);

3. Má roghnaigh tú port wildly mícheart, fhaigheann tú teachtaireacht earráide cabhrach:

íomhá

4. Mar sin féin, má tá tú ag piocadh an uimhir phoirt atá liostaithe ar an forbhreathnú (15102) you don’t get that helpful error message. Ina áit sin, ina dhiaidh sin nuair iarracht tú a rochtain a fháil ar aon sonraí trí chuardach nó tagairt d'fhonn FAST, you get an error. Debugging shows that the searchFactory’s view count is zero. You’ll be given the message "Failed to fetch Search View List".

</deireadh>

Clibeanna Technorati:

Liostáil le mo bhlag.

I dTreo SharePoint Patrúin Dearadh Teicniúil: SharePoint Dearthóir Sreabhadh oibre + Glacadóir Teagmhas = Ard Cocktail Potency

Ceann de na patrúin ag teacht chun cinn a aimsiú mé i crafting réitigh SharePoint SharePoint ghiaráil Dearthóir sreabhadh oibre agus glacadóir ócáid.

Seo cás gnó a chur i gcomhthéacs:

  • Mé doiciméad a uaslódáil chuig lib doc.
  • Ciceáil mé amach sreabhadh oibre il-chéim a cruthaíodh ag baint úsáide as SharePoint Dearthóir.
  • Ag pointe éigin i rith an phróisis, sreabhadh oibre shannadh tasc le duine éigin (trí shonraí ó úsáideoirí a bhailiú nó tasc a shannadh).
  • We want to use a KPI to track how long that task is awaiting completion. The KPI shows green for tasks that are completed or due more than 3 days from now. It shows yellow if the task is due tomorrow or today. It shows red if the task is past due.
  • Seo an Kicker: Ba mhaith liom an dáta a thiomáineann an TFB a bheith ar saoire-eolas.

I can’t calculate a holiday-aware due date in SharePoint Designer workflow very easily. I would have to create a custom action or use a 3rd party tool. Mar sin féin, it’s easy enough to calculate such a date in an event receiver. Merge those two together and we get a pattern like this:

  • Define a hidden yes/no site column on the document library labeled "DoCalcualteDueDate".
  • Sé thúsú go bréagach.
  • Ag an am cuí sa sreabhadh oibre (e.g. just before the "collect data" gníomh), luach sin a shannadh do True.
  • An ItemUpdate() event receiver looks to see if "DoCalculateDueDate" is true. Since the event receiver runs on every update, "DoCalculateDueDate" Is é de ghnáth bréagach.
  • Nuair a shannadh sreabhadh oibre DoCalculateDueDate go fíor, Ríomhann an glacadóir ócáid ​​an dáta dlite saoire-eolas.
  • Nuair a dhéanann an glacadóir ócáid ​​seo a ríomh, Leagann sé an bhratach DoCalculateDueDate go bréagach.

Sa deireadh, SPD workflow is communicated with an event receiver via the DoCalculateDueDate semaphore and we have holiday-aware due dates that are assigned at the exactly correct moment in the workflow’s life. SharePoint Designer controls when the due date is assigned but the event receiver performs the actual calculation and assignment.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati: ,

Oibriú Bhreathnaithe: Bogadh sreabhadh oibre SPD Laistigh Bailiúchán Láithreán

Suas chun dáta: I’ve been researching how to embed a SPD workflow into a site definition. Tá roinnt eolais suimiúil an slabhra fóram MSDN. It’s not conclusive, ach pointí chun cosán tríd an jungle.

I’m giving this post a slightly oddball "Observed Behavior" lead since I’m a little leery of drawing conclusions from it. SPD workflows are … temperamental.

Daoine ag iarraidh go minic / wondering / fretting over moving SPD workflows from one place to another. Sa lá atá inniu, Lean mé ar na céimeanna seo agus rinneadh na tuairimí:

  • Chruthaigh mé ag baint úsáide as sreabhadh oibre SharePoint Dearthóir i suíomh gabháil le leabharlann doiciméad.
  • An leabharlann doiciméad gaolmhar lonnaithe cheana féin roinnt cáipéisí.
  • Shábháil mé an suíomh seo mar theimpléad.
  • Nuair a Shábháil mé an suíomh seo mar theimpléad, Shábháil mé an t-ábhar chomh maith.
  • Chruthaigh mé suíomh nua sa bhailiúchán suíomh céanna ag baint úsáide as an teimpléad.

Ag an bpointe seo, I tried to run the workflow. It promptly terminated itself with the log message, "Failed on start".

I expected this. I have low expectations when it comes to moving SPD workflows around.

Lean mé:

  • Osclaíodh an suíomh i SharePoint Dearthóir.
  • Had a peek at the workflow. It seemed fine.
  • I clicked "Finish".
  • Rith mé an sreabhadh oibre.

An uair seo, d'oibrigh sé fíneáil.

I’ll add that this workflow used the "collect data from user" ghníomhaíocht a bheadh ​​gníomh sách casta faoi na cochall.

I tentatively conclude that the process of "finishing" the workflow caused SPD to properly associate the SPD workflow with the new document library. I also conclude the XOML and other XML artifacts are reasonably "loose". They are not super tightly coupled to the document library.

Cad a chiallaíonn sé seo? Assuming it’s a reliable and reproducible process, there’s at least one rough method we can use to move them around. I don’t know if this would work if we crossed site collection boundaries or even more drastically, feirmeacha ar fad nua (e.g. dev chuig céim a dtáirgí).

Má tá tú ag léamh seo agus claonta, le do thoil post a comment nó ríomhphost chugam your SharePoint Designer migration story. I’ll gladly update this posting with any insights thus offered.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati:

Quick agus Simplí: Réimse Nuashonrú-Sreabhadh Oibre amháin

It’s often useful to store status information in a custom list such as an approval code which should never be directly manipulated by end users. This is a common business scenario. I have been working on a project this year that generates various status and reminder dates via SharePoint Designer workflows that then drive KPIs and generally support time-critical business processes.

Bain úsáid as cineál ábhar an tsuímh / colún a bhaint amach i bhfeidhm.

Cruthaigh cineál ábhar an tsuímh leis an gcolún ar stádas mar a thaispeántar:

íomhá

Note the "Status (le haghaidh Demo)" réimse ag bun an leathanaigh.

Ar Aghaidh, click on the column name to access the column’s properties. Select "Hidden (Ní bheidh le feiceáil i bhfoirmeacha)" sa Colún alt Socruithe mar a thaispeántar:

íomhá

This removes the field from the standard edit/update forms. Mar sin féin, Tá sé ar fáil i tuairimí fós, PTF, an tsamhail réad agus in aon áit eile ba mhaith leat é a úsáid, including SPD workflow.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati: ,

Dé Domhnaigh greannmhar: “Thought I seo bhí ceaptha chun bheith ina Baile Rich”

A beag os cionn trí bliana ó shin, mo bhean chéile agus mé ag síniú mo mhac suas ar feadh an tsamhraidh gníomhaíocht, The Midland Park Players. This is a drama group that spends about three or four weeks preparing for a play and then showing it to the parents, friends and relatives. It’s always been done very well.

Níl a fhios agam má tá gach duine leanbh mar seo, but my son is extremely reluctant to try new things. Knowing this, we signed him up for the program. We’ve found that it’s best to alert him to these kinds of things early and often. Mar sin,, d'fhonn a shárú a drogall nádúrtha, dúradh linn dó luath agus rinne ár ndícheall a dhéanamh fuaime sé cosúil le spraoi, etc. Even with a multi-month advertising campaign, he still wasn’t convinced. We forced him to do, cé go, agus mar is minic an cás, he had a great time.

Faoin am an dara bliain rollta timpeall, he had once again convinced himself that he didn’t want to participate. Ach, Bhí sínithe againn air suas agus ar náid-lá, I dropped him off one morning at the high school where they practice. When I went to pick him up after lunch, bhí sé an-tógtha, gach smiles agus d'fhógair, "The play is the Bheilbhéidín Coinín and I want to be the Rabbit". He had spent literally months carrying on (uaireanta hysterically) faoi ​​conas nach raibh sé ag iarraidh go mbeadh rud ar bith a dhéanamh leis Rannpháirtithe Páirc agus tar éis an chéad lá, he wants to be the lead role in the play. We’ve seen this pattern before.

(I bhfad chun ár n-iontas, rinne sé an ról Coinín a fháil agus bhí sé iontach.)

Fast forward a few years. He’s been in Park Players three times now, so he’s something of a veteran. This summer (2008), Players starts up again. Idir an dá linn, tá sé cinnte ar deireadh dúinn sé i ndáiríre doesn’t want to play soccer and he never liked basketball. That left him with no extra-curricular activities for late Winter / early Spring. A client with whom I was working mentioned that his daughter was in a program called Stage Right. Stage right is a slightly more expensive version of Park Players and it’s not in my town, but adjacent to it. Perfect.

The thing to know about that town is that it’s practically another country in terms of wealth. It has a high-frequency train right to Wall Street and NYC in general. It’s just a wealthy place. One of the on-going family discussion themes is whether we should have moved to that town instead of where we live now. It’s a bigger town, ar fáil dá scoileanna cláir níos mó do na páistí, etc. My wife grew up in that town and her parents live there, so we are "hooked in" despite not living there. I personally grew up in different circumstances in Massachusetts, so I don’t have a lot to say about this during family dinner conversation. This isn’t to say that we aren’t very happy where we live. We just know that that town is a level above our town economically.

Stage Right’s next program started too soon for us to launch our normal advertising campaign to overcome my son’s reluctance. This is when he came up with one my personal favorite arguments against doing something: "Friday nights are príomh- oíche Táthcheangail codlata!" Stage Right was going to interfere with his weekend socials.

Tagann an lá, a thabhairt dúinn chuige ann dó titim amach agus mar atá le gach rud eile, a ghrá nádúrtha díreach a bheith beo agus ghlac sé ar a bhfuil dea-am a bhfuil sé.

An deireadh seachtaine seo caite bhí mo bhean ag caint dó agus don chéad uair, I think he’s tailoring his discussions very precisely for his audience. She had asked him how Stage Right compares to Midland Park Players. He tells her that "In Park Players, we have teenagers that help us out. There aren’t any in in Stage Right. In Park Players, teenagers make all props. In Stage Right, we have to bring our own props. We have to do everything. And then he twists the knife: "I thought this was supposed to be a rich town."

Gach na bliana, I never really thought that he was hearing or understanding anything as it related to the "rich town". Mar sin féin, casadh sé amach go raibh sé.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati:

SharePoint nach soláthraíonn Féilire Roll-ups; Solutions Féideartha

Suas chun dáta: An anonymous person in the comments posts this link: http://www.atidan.com/atidan-collaboration-kit.php

Fóram úsáideoirí a iarraidh go minic ceist mar seo:

"I would like to have a calendar at the site level that is populated by events from subsite calendars. Ideally, Beidh úsáideoirí in subsites chruthú imeachtaí féilire, and will have the option of marking them as ‘public.’ Events marked as public will dynamically appear in the shared site calendar. Thus the shared site calendar is a roll-up of all public events from all subsite calendars."

An bhfuil SSU 3.0 nó CAONAIGH 2007, it is not possible to directly configure a "roll-up" calendar. Calendars exist on their own, neamhspleách ar aon féilire eile.

Chun a chruthú féilire rolla-suas, leanúint ar cheann de na cosáin:

  1. Use a Content Query Web Part. This is the easiest solution for MOSS users (Ní SSU a chur ar fáil CQWP). CQWP, ar an drochuair, does not provide a calendar view of data out of the box. It does provide enormous rendering flexibility (féach anseo le haghaidh sampla amháin) ach de réir réamhshocraithe, shows its results in simple list format. In many cases, CQWP is dócha go bhfuil rogha maith.
  2. A more programming-oriented solution would be to use event receivers. Implement event receivers on the subsite calendars that keep their public events in sync with the master calendar. As a given subsite calendar is modified, reach out to the master calendar and update it as needed. This option is available in both WSS 3.0 agus CAONAIGH.

There are probably other clever solutions to this problem. If you have one or know of one, fág nóta nó thoil ríomhphost chugam agus beidh mé cothrom le dáta an bpost.

</deireadh>

Liostáil le mo bhlag.

Láithreáin Cruthaigh (SPWeb) via Sreabhadh Oibre Dearthóir SharePoint

This blog entry is more of an "in the realm of the possible" iontráil vs. info coincréite.

We have a technical design that calls for us to create a site in a site collection via a manually launched workflow process. Go bunúsach, users enter data into a "new customer" liosta saincheaptha agus ansin nuair a bhí siad an próiseas iontrála sonraí críochnaithe agus bailíochtaithe, ní mór dúinn a chruthú suíomh don chustaiméir.

Tá mé an dá lucht leanúna mór de sreabhadh oibre declarative chomh maith mar ríomhchláraitheoir sreabhadh oibre stiúideo amhairc lag, mar sin bhí mé chun freastal ar an riachtanas ag baint úsáide as SharePoint Dearthóir.

Intinn agam a scríobh faoi seo go mion (agus tá súil againn i láthair do ghrúpa úsáideora nó dhó sa bhliain atá romhainn), ach anseo tá an réiteach foriomlán:

  • Cruthaigh gníomh saincheaptha a chomhtháthaíonn leis an SPD.
  • Ceadaíonn an gníomh saincheaptha SPD chun seirbhís gréasáin a agairt agus é a chur ar shraith de XML.
  • Locates seirbhís Gréasáin an tsraith ar an liosta saincheaptha agus go gcruthaíonn sé suíomh nua de réir na sonraí don chliant nua ag baint úsáide as sainmhíniú láithreán saincheaptha.
  • Seirbhís Gréasáin nuashonrú ansin an liosta saincheaptha le roinnt eolais cosúil le nasc go dtí an suíomh nua.

Mheas againn cur chuige eile, such as event handlers and visual studio based workflow. The SPD approach gives our end users a little more control over the process. Granted, níl a lán de C # ZIP sa réiteach seo, ach tá sé fillte taobh istigh de sreabhadh oibre declarative, mar sin a fháil againn roinnt de na buntáistí a bhaineann le sreabhadh oibre declarative agus hooking isteach sa tseirbhís site-cruthú.

All we need now is an easy tool to automatically migrate SPD workflows around as easily as we can for visual studio workflows and we’ll really be cooking with gas 🙂 I understand that some folk are out there working on this problem and I hope they have some good success with it soon.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati: ,

Quick agus Simplí: Soláthar a Láithreán Gréasáin Ag baint úsáide as Samhail Oibiachta SharePoint I C #

I tried searching for a little snippet code that would show how I can create a new SPWeb in a site collection. I didn’t find it as quickly or easily as I expected so I thought I’d slap together a little entry on the subject.

Cruthaíonn an cód seo ar shuíomh nua Wiki:

 SPSite siteCollection;

    siteCollection = nua SPSite("http://conchang-o9l8qi");

    SPWeb w = siteCollection.OpenWeb();

    w.Webs.Add("xyzzy", "xyzzy Title",
        "xyzzy description", 1033, SPWebTemplate.WebTemplateWIKI, bréagach, bréagach);

My initial searches failed because I was looking for phrases like "provision a web site using sharepoint object model" and the like.

Má tá tú cuardaigh for "Webs.Add()", go mbainfidh tú teacht ar líon na n-iontrálacha blag an-úsáideach, MSDN articles and SDK documentation that go into depth on this subject. I definitely recommend an suíomh seo.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati:

Comhtháthaigh sreabhadh oibre Dearthóir SharePoint le Seirbhísí Gréasáin

Tá mé ag imirt ar fud le gníomhartha saincheaptha do SharePoint Dearthóir ar feadh tamaill (féach anseo ar roinnt rudaí mionsonraithe, má a leasanna tú).

I mo tionscadal reatha, we need to do some fairly heavy lifting and we want to use declarative SPD workflow to manage the associated business process.

Fada scéal gearr, this is entirely possible. I extended my Codeplex project to invoke a "helper service" and now we can invoke a web service directly from an SPD workflow.

Seo an síniú:

 poiblí teaghrán Dispatcher(
        Guid WebID, // Passed ag an timpeallacht runtime
        Guid SiteID, // Passed ag an timpeallacht runtime
        teaghrán ListID, // Passed ag an RTÉ (níl a fhios cén fáth go bhfuil sé seo ar shraith, Ní GUID)
        int ListItemID, // Passed ag an RTÉ.
        teaghrán XmlMessage) // Passed ag an úsáideoir, mar a dearbhaíodh i SPD.

Ghiaráil sé seo ar an bhfíric gur féidir linn a fháil ar fhaisnéis sreabhadh oibre tábhachtach, cosúil leis an suíomh, ID liosta, etc. This is well documented in several places for those of you interested in creating your own custom actions. The idea is to extract the XML string as provided by the user to dispatch an appropriate procedure. Fun stuff!

Faraor, seo Is léir go bhfuil aon-bhealach ticéad síos go dtí "Loosey Goosey" talamh frith-patrún, but it’s better than hitting a brick wall 🙂

An bhfuil sé frith-patrún má dhéanann tú é cé a fhios agat go bhfuil sé frith-patrún?

I hope to wrap this inside Codeplex in the near future. If you’re interested in me doing so, a thabhairt dom poke (r-phost nó fág tagairt) and I’ll be that more enthusiastic about doing it 🙂

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati: ,

Dé Domhnaigh greannmhar: “N'fheadar má tá do phasfhocal …”

Cheannaigh mé le déanaí lón do mo dheartháir (mar is gnách) and we ended up talking about funny things that we did at our respective colleges. At my alma mater, Lafayette Coláiste, the academic support IT department had a very inclusive way about it. We were given a LOT of rope and I took advantage of that at times.

Baineann dhá mo chuid cuimhní cinn is fearr leat le mo chara maith, Gabe. He had made the terrible mistake of telling people his freshman year that "I’m a freshman, ach tá mé seasamh Sophomore" mar gheall ar na ranganna socrúcháin chun cinn éagsúla a bhí déanta aige, etc. Many of us were similarly situated but we didn’t talk about it so much. His senior year, nuair a tugadh isteach againn air le daoine, we’d say "This is Gabe. He’s a Senior, but he has Sophomore standing".

The college had some Sun workstation/servers running X-Window. They had gigantic monitors and the engineers used them for CAD and other boring engineer stuff. We CS people used them to learn programming and, ar ndóigh, a imirt cluichí.

Ní raibh muid cosúil leis an innealtóirí ríomhaire-helpless chun an méid sin a bheadh ​​ar cheann de na ár n-rudaí is fearr leat a dhéanamh a telnet chun an bosca a bhí siad ar agus a reáchtáil X-eye on them. This would pop up a pair of eyes that followed the mouse around on the screen. You could pop up even more and have literally a dozen or more of the X-eye applications running. Try not to laugh out loud when a hapless engineer is trying to close X-eye after X-eye and muttering under his breath about it 🙂

We also played X-trek on those boxes. Chun é sin a dhéanamh, bhí tú a íoslódáil an fhoinse, get various dependencies wherever you could find them and build it. I wasn’t a sophisticated C programmer, but I could read header files. I was looking through these and found directives like "#DEFINE MAX_TORPEDO_DISTANCE 10". I played around with that increase range and power for phases and torpedoes, ath-tógadh é agus ansin a scrios Gabe an chéad uair eile a bhí againn.

Bhí Gabe chomh maith le lucht leanúna mór de seó teilifíse ar a dtugtar Blake 7. I had never seen it, ach ní raibh cosc ​​a chur orm ó insisting go Dr. Who is the superior show. The arguments would get heated at times 🙂

Lá amháin, it occurred to me that I could probably guess his UNIX password. I sat down next to him one day and announced in a loud tone, "I’m going to guess your password right now, Gabe." "Yeah, ceart" was his answer. I then logged in, iontráil a id úsáideora, iompú chun aghaidh a thabhairt dó, clóscríofa agus dúirt sé amach os ard, "I wonder if it’s B-L-A-K-E-7" ? Touch typing has never paid off as handsomely as it did that day.

Tseachtain seo chugainn (nó go luath): More computer room antics from college.

An bhfuil aon a roinnt? Leave a comment or email me and I’ll publish them here.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati: