Monthly Archives: Martxoaren 2008

Zehazteko FAST QRServer Portua

Ahal izateko, bere API bidez bilatu FAST komunikatu, portuan duen QRServer abian dagoen jakin behar dugu.

Urrats hauek jarraitu nuen hura aurkitu ahal izateko:

  1. Admin FAST gune sartu (http://server:port/admin).
  2. Sistema Orokorra nabigatu.
  3. Locate "Search Dispatcher" eta klik spyglass ikonoa:

    image

  4. Zuzen erabili dut balioa, 15100 for "Info Name" = "http":

    image

Oharrak:

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

2. Erabili kode hau ondorengo antzeko konexio bat instantziatu to FAST:

     ISearchFactory searchFactory;
    
        NameValueCollection nameValueCollection = berria 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. Hautatzen erabateko okerra portu bat bada, bat lagungarria errore mezua lortuko duzu:

image

4. Hala eta guztiz ere, hautatzen Orokorra zerrendatzen ataka zenbakia bada (15102) you don’t get that helpful error message. Horren ordez, geroago bilaketa baten bidez datuak sartzeko edo FAST ikuspegi erreferentzia saiatu duzu, 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".

</amaiera>

Technorati Tags:

Nire blog Harpidetu.

SharePoint Design Patterns teknikoa Hacia: SharePoint Designer Workflow + Gertaera hargailuen = Handia potentzia koktela

Ereduak sortzen ari diren konponbideak aurkituko SharePoint crafting dut bat SharePoint Designer workflow eta gertaera hargailu bat baliatzen du.

Hona hemen enpresa eszenatoki jarri behar da testuinguru:

  • Dokumentu bat igo dut doc lib bat.
  • Off alboratzen dut anitzeko urratsa workflow sortu SharePoint Designer erabiliz.
  • Prozesu horretan zehar uneren, workflow Zeregin bat esleitzen norbait (biltzeko bitartez erabiltzailearen datuak edo Zeregin bat).
  • 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.
  • Hemen jaurtitzailearen da: Data hori KPI gidatzen duten opor-jakitun izan nahi dut.

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. Hala eta guztiz ere, 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".
  • Hasieratu da faltsua.
  • Eu dagokion momentuan (e.g. just before the "collect data" Ekintza), esleitzeko balioa duten True.
  • ItemUpdate bat() event receiver looks to see if "DoCalculateDueDate" is true. Since the event receiver runs on every update, "DoCalculateDueDate" normalean faltsuak.
  • Noiz workflow ematean egia DoCalculateDueDate, gertaera hartzailea jai-jakitun epemuga kalkulatzen.
  • Noiz gertaera hartzailea kalkulua, hau da,, DoCalculateDueDate bandera ezartzen du faltsua.

Azkenean, 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.

</amaiera>

Nire blog Harpidetu.

Ikusitako portaera: SPD fluxuak mugitzen Web bilduma baten barruan

UPDATE: I’ve been researching how to embed a SPD workflow into a site definition. This MSDN forum chain has some interesting information. It’s not conclusive, baina bide puntutatik oihanean.

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.

People are often asking / wondering / fretting over moving SPD workflows from one place to another. Gaur egun, I followed these steps and made these observations:

  • I created a workflow using SharePoint Designer in a site attached to a document library.
  • The associated document library already housed several documents.
  • I saved the site as a template.
  • When I saved the site as a template, I saved the content as well.
  • I created a new site in the same site collection using that template.

Puntu honetan, 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.

I continued:

  • Opened the site in SharePoint Designer.
  • Had a peek at the workflow. It seemed fine.
  • I clicked "Finish".
  • I ran the workflow.

Oraingo honetan, fina lan egin ezazu.

I’ll add that this workflow used the "collect data from user" action which is a relatively complex action under the hood.

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.

What does this mean? 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, entire new farms (e.g. dev to stage to prod).

If you’re reading this and inclined, please post a comment or email me your SharePoint Designer migration story. I’ll gladly update this posting with any insights thus offered.

</amaiera>

Nire blog Harpidetu.

Technorati Tags:

Azkarra eta sinplea: Workflow-bakarrik Update Eremua

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.

Erabili gune eduki mota / zutabea efektu hori lortzeko.

Sortu gune eduki egoera zutabean mota erakusten:

image

Note the "Status (Demo for)" Azpiko eremuan.

Hurrengoa, click on the column name to access the column’s properties. Select "Hidden (Ezin izango da, forma agertzen)" Zutabearen Ezarpenak erakutsi atalean:

image

This removes the field from the standard edit/update forms. Hala eta guztiz ere, oraindik ez da ikusia eskuragarri, KPIs, objektu eredua eta beste inon erabili nahi duzun, including SPD workflow.

</amaiera>

Nire blog Harpidetu.

Igandea Funny: “Hau zen ustezko Rich Town behar duela uste dut,”

Apur bat, hiru urte baino gehiago, nire emaztea eta biok sinatu nire semea sortu udako jarduera bat, 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.

I don’t know if everyone’s child is like this, 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. Beraz,, in order to overcome his natural reluctance, we told him early and did our best to make it sound like fun, etc. Even with a multi-month advertising campaign, he still wasn’t convinced. We forced him to do, nahiz, and as is often the case, he had a great time.

By the time the second year rolled around, he had once again convinced himself that he didn’t want to participate. Baina, we had signed him up and on zero-day, I dropped him off one morning at the high school where they practice. When I went to pick him up after lunch, he was very excited, all smiles and announced, "The play is the Velveteen Rabbit and I want to be the Rabbit". He had spent literally months carrying on (sometimes hysterically) about how he didn’t want to have anything to do with Park Players and after the first day, he wants to be the lead role in the play. We’ve seen this pattern before.

(Much to our surprise, he did get the Rabbit role and he was amazing.)

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. Batez besteko denbora, he’s finally convinced us he benetan 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, its schools offer more programs for the kids, 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 prime nights for sleep overs!" Stage Right was going to interfere with his weekend socials.

The day comes, we bring him there and drop him off and as with everything else, his natural love of just being alive took over and he’s been having a good time with it.

This past weekend my wife was talking to him and for the first time, 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."

All these years, I never really thought that he was hearing or understanding anything as it related to the "rich town". Hala eta guztiz ere, it turns out he was.

</amaiera>

Nire blog Harpidetu.

Technorati Tags:

SharePoint ez du Egutegia Roll-up; Potentzial Solutions

UPDATE: An anonymous person in the comments posts this link: http://www.atidan.com/atidan-collaboration-kit.php

Foroa erabiltzaile sarritan galdetu horrelako galdera bat:

"I would like to have a calendar at the site level that is populated by events from subsite calendars. Ideally, subsites erabiltzaileen egutegi-gertaerak sortzen ditu,, 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."

Da WSS 3.0 edo MOSS 2007, it is not possible to directly configure a "roll-up" calendar. Calendars exist on their own, beste edozein egutegi independentea.

Roll-up egutegi bat sortzeko, jarraitu bide horietako bat:

  1. Use a Content Query Web Part. This is the easiest solution for MOSS users (WSS ematen ez CQWP). CQWP, zoritxarrez, does not provide a calendar view of data out of the box. It does provide enormous rendering flexibility (Hemen adibide bat egiteko) baina lehenetsi, shows its results in simple list format. In many cases, CQWP seguruenik aukera ona.
  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 eta MOSS.

There are probably other clever solutions to this problem. If you have one or know of one, Mesedez, utzi iruzkin bat, edo email me eta post hau eguneratu egingo dut.

</amaiera>

Nire blog Harpidetu.

Sortu guneak (SPWeb) SharePoint Designer Workflow bidez

This blog entry is more of an "in the realm of the possible" Istorio vs. hormigoizko info.

We have a technical design that calls for us to create a site in a site collection via a manually launched workflow process. Funtsean,, users enter data into a "new customer" zerrenda pertsonalizatu eta orduan amaitu dute eta balidatu datu-sarrera prozesu, bezeroari gune bat sortu behar dugu.

Workflow deklaratzaileak fan bai handi eta baita ahul bisuala estudioan workflow programatzaile naiz, beraz, baldintza SharePoint Designer erabiliz bete nahi nuen.

Honi buruz idazteko xehetasun handiagoz planifikatzeko dut (eta espero nahi Erabiltzaile talde bat edo bi datorren urtean ere presente), baina, oro har, hemen irtenbidea da:

  • Sortu Ohiko ekintza SPD integratzen.
  • Ekintza pertsonalizatu ahalbidetzen SPD web zerbitzu bat irekiaz eta pasatu da XML katea.
  • Web zerbitzu pertsonalizatua kokatzen zerrendan errenkadan eta webgune berri bat sortzen Ohiko gune definizio erabiltzen duten bezero berriak datuen arabera.
  • Web zerbitzua, ondoren, hala nola, berriak, lotura gune gisa informazio batzuk zerrenda ohitura eguneratzen.

Beste planteamendu jotzen dugu, such as event handlers and visual studio based workflow. The SPD approach gives our end users a little more control over the process. Granted, bat dago, C # kode asko irtenbide hau da, baina bat deklaratzaileak workflow barruan bilduta, beraz workflow deklaratzaileak onurak batzuk gara-gune sortzea zerbitzu sartu bitartean Pribatutasun.

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.

</amaiera>

Nire blog Harpidetu.

Technorati Tags: ,

Azkarra eta sinplea: Xedapen SharePoint Object Model erabiliz C web gune bat #

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.

Kode hau berria Wiki gune sortzen:

 SPSite siteCollection;

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

    SPWeb w = siteCollection.OpenWeb();

    w.Webs.Add("xyzzy", "xyzzy Title",
        "xyzzy description", 1033, SPWebTemplate.WebTemplateWIKI, faltsuak, faltsuak);

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

Baduzu bilatu for "Webs.Add()", blog oso erabilgarria da sarrera kopuru bat aurkituko duzu:, MSDN articles and SDK documentation that go into depth on this subject. I definitely recommend gune honetan.

</amaiera>

Nire blog Harpidetu.

Technorati Tags:

Integratzeko SharePoint Designer fluxuak Web Zerbitzuak

Izan dut inguruan jolasten SharePoint Designer ekintza pertsonalizatuak denbora batzuk (ikusi hemen batzuk zehatza gauzak, interesak baduzu).

Nire proiektua uneko, we need to do some fairly heavy lifting and we want to use declarative SPD workflow to manage the associated business process.

Long Narrazio laburren, 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.

Hemen sinadura da:

 publikoak katea Aztergailu(
        GUID WebID, // Duen exekuzio-ingurune gainditu
        GUID SiteID, // Duen exekuzio-ingurune gainditu
        katea ListID, // RTE emandako (ez dakit zergatik hau kate bat da, ez GUID bat)
        int ListItemID, // RTE emandako.
        katea XmlMessage) // SPD gisa deklaratu erabiltzaileak gainditu.

Hau, izan ere, ahal dugun workflow informazio garrantzitsua lortzeko baliatzen, gune bezala, zerrendaren IDa, 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!

Tamalez, hau da, jakina, norabide bakarreko txartel bat behera "Loosey Goosey" anti-eredua lurrak, but it’s better than hitting a brick wall 🙂

Da baduzu, nahiz eta jakin duzu anti-eredua da, anti-eredua da?

I hope to wrap this inside Codeplex in the near future. If you’re interested in me doing so, ematen dit Poke (e-posta edo utzi iruzkin bat) and I’ll be that more enthusiastic about doing it 🙂

</amaiera>

Nire blog Harpidetu.

Technorati Tags: ,

Igandea Funny: “Zure pasahitza bada galdetzen diot nire buruari …”

Duela gutxi erosi dut nire anaia bazkaria egiteko (Ohikoa den bezala) and we ended up talking about funny things that we did at our respective colleges. At my alma mater, Lafayette College, 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.

Bi nire oroitzapenak, nire lagun ona erlazionatzeko, Gabe. He had made the terrible mistake of telling people his freshman year that "I’m a freshman, baina Sophomore zutik daukat" Izan ere, hainbat aurreratu placement klaseak hartu zituen, etc. Many of us were similarly situated but we didn’t talk about it so much. His senior year, hura sartu dugu jendea, 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, jakina, jokatu.

Guk ez dugu ordenagailuz Babesgabe ingeniari bezala hainbeste gure gogoko gauzak egin behar bat litzateke kutxa gainean ziren telnet izan eta exekutatu X-begi 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. To do that, iturburua deskargatu nahi izan duzu, 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, berriro eraiki zuten, eta, ondoren, suntsitu Gabe hurrengoan dugu jokatu.

Gabe ere izan zen izeneko TV show bat fan handi bat Blake-en 7. I had never seen it, baina horrek ez zuen eragotzi dit Dr dela azpimarratu tik. Who is the superior show. The arguments would get heated at times 🙂

Egun bat, 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, eskubidea" was his answer. I then logged in, sartu bere erabiltzaile id, aktibatuta zion aurre egiteko, Idatzitako eta esan ozen, "I wonder if it’s B-L-A-K-E-7" ? Touch typing has never paid off as handsomely as it did that day.

Hurrengo astea (edo laster): More computer room antics from college.

Ez edozein partekatu behar duzu? Leave a comment or email me and I’ll publish them here.

</amaiera>

Nire blog Harpidetu.

Technorati Tags: