Aylıq Arxiv: Mart 2008

FAST QRServer Port müəyyən

Onun API vasitəsilə Tez axtarış ünsiyyət üçün, biz QRServer çalıştığı limanına bilməli.

Mən bunu tapmaq üçün bu adımları:

  1. Tez admin sayt daxil ol (http://server:port/admin).
  2. Sistem Baxış keç.
  3. "Axtarış dispetçer tap" və kiçik dürbün icon basın:

    image

  4. Uğurla dəyəri istifadə, 15100 "İnformasiya adı" = "Http":

    image

Qeydlər:

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

2. Tez keçid instantiate üçün aşağıdakı oxşar bu kodu istifadə edin:

     ISearchFactory searchFactory;
    
        NameValueCollection nameValueCollection = yeni 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. Bir vəhşicəsinə yanlış port seçin əgər, bir faydalı səhv mesajı almaq:

image

4. Lakin, Əgər ümumi listelenen port nömrəsini seçin, əgər (15102) you don’t get that helpful error message. Əvəzində, Axtarış ilə heç bir məlumat daxil olmaq və ya sürətli Məlumatlarına istinad cəhd sonra zaman, 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".

</son>

Technorati Tags:

Blog abunə.

SharePoint Texniki Dizayn Nümunələr doğru: SharePoint Designer Workflow + Hadisə Alıcı = Yüksək Təsirli Cocktail

Mən SharePoint həllər crafting tapa ortaya çıxan nümunələri SharePoint Designer iş və bir hadisə qəbuledici yararlanmaktadır.

Burada kontekstində onun işgüzar ssenari deyil:

  • Mən doc lib bir sənəd yüklemek.
  • SharePoint Designer istifadə edərək, yaratdığınız mən çıxartmaq çox addım iş.
  • Ki, proses zamanı bir anda, iş kimsə bir tapşırıq verir (istifadəçi məlumatları toplamaq və ya bir vəzifə təyin vasitəsilə).
  • 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.
  • Burada soncuqlayan var: Mən KPI bayram-agah olmaq üçün süren tarixi istəyirəm.

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. Lakin, it’s easy enough to calculate such a date in an event receiver. Merge those two together and we get a pattern like this:

  • "DoCalcualteDueDate" etiketli sənəd kitabxana bir gizli hə / yox site sütun müəyyən.
  • Yalan da başlamaq.
  • Bu iş müvafiq zamanda (e.g. yalnız "toplamaq data əvvəl" fəaliyyət), Doğrudur ki, dəyərin təyin.
  • Bir ItemUpdate() hadisə alıcı "DoCalculateDueDate görmek üçün görünür" is true. Since the event receiver runs on every update, "DoCalculateDueDate" normal yalan.
  • Iş əsl üçün DoCalculateDueDate verir zaman, Tədbirdə qəbuledici bayram-xəbərdar görə tarix hesablayır.
  • Tədbirdə alıcı bu hesablanması nə zaman, bu saxta üçün DoCalculateDueDate bayraq edir.

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

</son>

Blog abunə.

Görünen Davranış: Site Collection çərçivəsində SPD axınları hərəkət

UPDATE: I’ve been researching how to embed a SPD workflow into a site definition. Bu MSDN forum zəncirvari bir maraqlı məlumat var. It’s not conclusive, lakin Jungle vasitəsilə yola xal.

Mən "bu yazı Görünen Davranış biraz oddball verilməsi alıram" lead since I’m a little leery of drawing conclusions from it. SPD workflows are … maymun iştahlı.

İnsanlar çox vaxt tələb olunur / merak / fretting over moving SPD workflows from one place to another. Bugün, Bu adımları sonra, bu müşahidələr etdi:

  • Mən bir sənəd kitabxana əlavə bir saytda SharePoint Designer istifadə edərək, bir iş yaradıldı.
  • Bağlı sənəd kitabxana artıq bir neçə sənədlər yer.
  • Mən bir şablon kimi site xilas.
  • Mən şablon olaraq saytda saxlanılan zaman, Mən də məzmun xilas.
  • Mən bu şablonu istifadə edərək, eyni site toplanması yeni saytı yaradılmışdır.

Bu noktada, I tried to run the workflow. It promptly terminated itself with the log message, "Başlat haqqında bilməyib".

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

Mən davam:

  • SharePoint Designer ildə saytı açıldı.
  • Had a peek at the workflow. It seemed fine.
  • Mən "Finish" tıklayan.
  • Mən iş qaçıb.

Bu dəfə, o çalışır.

Bu iş istifadəçi olan "toplamaq data istifadə ekleriz" başlıq altında nisbətən mürəkkəb hərəkət edən fəaliyyət.

Mən müvəqqəti prosesi "başa Sonuç" 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.

Bu ne demek? 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, bütün yeni təsərrüfatları (e.g. prod üçün mərhələsinə dev).

Bu oxu və maili edirsinizsə, və ya Şərh göndərin Mənə e-poçt your SharePoint Designer migration story. I’ll gladly update this posting with any insights thus offered.

</son>

Blog abunə.

Technorati Tags:

Sadə və sadə: Workflow yalnız Update Field

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.

Bir site content növü istifadə / Bu effekt əldə etmək üçün sütun.

Göstərildiyi kimi durumu sütunu ilə bir site content növü yaratmaq:

image

"Status qeyd (Demo üçün)" alt sahə.

Sonrakı, click on the column name to access the column’s properties. Select "Hidden (Formaları görünmez)" göstərildiyi kimi sütun ayarlarını bölməsində:

image

This removes the field from the standard edit/update forms. Lakin, hələ fikir mövcuddur, KPIs, obyekt model və yerdə başqa siz istifadə etmək istədiyiniz, including SPD workflow.

</son>

Blog abunə.

Bazar Funny: “Bu Zengin Town olmaq idi Düşüncə”

Bir az üç ildən əvvəl, Mənim həyat yoldaşı və mən yay fəaliyyəti üçün oğlum imzaladı, 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. Belə, in order to overcome his natural reluctance, we told him early and did our best to make it sound like fun, və s.. Even with a multi-month advertising campaign, he still wasn’t convinced. We forced him to do, baxmayaraq ki, 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. Lakin, 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. Eyni zamanda, he’s finally convinced us he həqiqətən 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, və s.. 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". Lakin, it turns out he was.

</son>

Blog abunə.

Technorati Tags:

SharePoint Calendar Roll-up vermir; Potensial Solutions

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

Forum istifadəçilər tez-tez bu kimi bir sual:

"I would like to have a calendar at the site level that is populated by events from subsite calendars. Ideally, subsites istifadəçilər Təqvim Ad yaradacaq, 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."

WSS mi 3.0 və ya MOSS 2007, it is not possible to directly configure a "roll-up" calendar. Calendars exist on their own, hər hansı digər təqvim müstəqil.

Bir roll-up takvim yaratmaq, Bu yolları biri əməl:

  1. Use a Content Query Web Part. This is the easiest solution for MOSS users (WSS CQWP vermir). CQWP, təəssüf ki,, does not provide a calendar view of data out of the box. It does provide enormous rendering flexibility (Bir misal üçün buraya baxın) lakin default, shows its results in simple list format. In many cases, Yəqin ki, yaxşı bir seçim CQWP.
  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 və MOSS.

There are probably other clever solutions to this problem. If you have one or know of one, və ya comment tərk edin Mənə e-poçt və mən bu post yeniləyir.

</son>

Blog abunə.

Saytlar yarat (SPWeb) SharePoint Workflow Designer vasitəsilə

This blog entry is more of an "in the realm of the possible" giriş vs. beton info.

We have a technical design that calls for us to create a site in a site collection via a manually launched workflow process. Əsasən, users enter data into a "new customer" onlar məlumatın giriş prosesi başa və təsdiq zaman sonra xüsusi siyahısı və, ki, müştəri üçün bir site yaratmaq lazımdır.

Mən deklarativ iş böyük fan, eləcə də zəif Visual Studio iş proqramçı həm deyiləm, mən SharePoint Designer istifadə tələb görüşmək istədi.

Mən daha ətraflı bu barədə yazmaq planlaşdırırıq (və gələn il bir istifadəçi qrupu və ya iki inşallah indiki), Amma burada ümumi həll:

  • SPD ilə inteqrasiya xüsusi bir fəaliyyət yarat.
  • Xüsusi fəaliyyət SPD bir internet xidmət ibadət və XML bir simli keçmək üçün imkan verir.
  • Web xidmət yerləşən gömrük siyahısında sıra və xüsusi site sözünün istifadə ki, yeni müştəri üçün məlumatlara görə yeni bir site yaradır.
  • Web xidmət sonra belə yeni saytınıza bir keçid kimi bəzi informasiya ilə xüsusi siyahı yeniləyir.

Biz digər yanaşmalar hesab, such as event handlers and visual studio based workflow. The SPD approach gives our end users a little more control over the process. Granted, Bu həll C # kod çox var, ancaq bir deklarativ iş daxilində bükülmüş oldu, site yaradılması xidmətə qoşulma isə biz deklarativ iş faydaları bəzi əldə.

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.

</son>

Blog abunə.

Technorati Tags: ,

Sadə və sadə: C SharePoint Object Model istifadə edilməsi bir web site #

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.

Bu kod yeni Wiki site yaradır:

 SPSite siteCollection;

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

    SPWeb w = siteCollection.OpenWeb();

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

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

If you axtarış for "Webs.Add()", you’ll find a number of very useful blog entries, MSDN articles and SDK documentation that go into depth on this subject. I definitely recommend this site.

</son>

Blog abunə.

Technorati Tags:

Web Services ilə SharePoint Designer axınları inteqrasiya

Mən bir müddət üçün SharePoint Designer üçün xüsusi tədbirlər ilə ətrafında oynayan olduğunuz (burada Bəzi ətraflı heyəti üçün, maraqların Əgər).

Mənim cari layihə, we need to do some fairly heavy lifting and we want to use declarative SPD workflow to manage the associated business process.

Uzun hekayə qısa, 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.

Burada imza:

 ictimai sim Dispetçer(
        Guid WebID, // Uzunluğu mühit tərəfindən qəbul
        Guid SiteID, // Uzunluğu mühit tərəfindən qəbul
        sim ListID, // Ki, RTE qəbul (bu bir simli nə bilmirəm, bir GUID)
        int ListItemID, // Ki, RTE qəbul.
        sim XmlMessage) // Kimi SPD elan istifadəçi tərəfindən qəbul.

Bu mühüm iş məlumat əldə edə bilərsiniz ki, yararlanmaktadır, sayt kimi, siyahısı ID, və s.. 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!

Qubarlı, Bu açıq-aydın bir yol bilet aşağı edir "Loosey Goosey" anti-model torpaq, but it’s better than hitting a brick wall 🙂

Siz bilirəm, hətta bunu əgər bir anti-model var bir anti-nümunəsidir?

I hope to wrap this inside Codeplex in the near future. If you’re interested in me doing so, Mənə soxmaq vermək (e-poçt və ya comment tərk) and I’ll be that more enthusiastic about doing it 🙂

</son>

Blog abunə.

Technorati Tags: ,

Bazar Funny: “Parolu əgər mən təəccüb …”

Bu yaxınlarda mən qardaşım üçün nahar alıb (həmişə olduğu kimi) 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.

Two my favorite memories relate to my good friend, Gabe. He had made the terrible mistake of telling people his freshman year that "I’m a freshman, but I have Sophomore standing" due to the various advanced placement classes he had taken, və s.. Many of us were similarly situated but we didn’t talk about it so much. His senior year, when we introduced him to people, 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, əlbəttə, to play games.

We didn’t like the computer-helpless engineers to much so one of our favorite things to do would be to telnet to the box they were on and run 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. To do that, you had to download the source, 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, re-built it and then destroyed Gabe the next time we played.

Gabe was also a huge fan of a TV show called Blake’s 7. I had never seen it, but that didn’t prevent me from insisting that Dr. Who is the superior show. The arguments would get heated at times 🙂

Bir gün, 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, sağ" was his answer. I then logged in, entered his user id, turned to face him, typed and said out loud, "I wonder if it’s B-L-A-K-E-7" ? Touch typing has never paid off as handsomely as it did that day.

Gələn həftə (or soon): More computer room antics from college.

Do you have any to share? Leave a comment or email me and I’ll publish them here.

</son>

Blog abunə.

Technorati Tags: