Месечне архиве: Фебруар 2008

Решење (врста): Приоритет на задатак коришћењем СхареПоинт Десигнер

Имам пословни сценарио овако:

  • А упутство постављено документ у библиотеци докумената.
  • Она бира врсту садржаја и улази мета података по потреби. Једно од поља мета података је застава, "Urgent".
  • Ово покреће СхареПоинт Десигнер ток посла који, између осталог, uses the "Collect Data from a User" акција.

"Прикупља податке од корисника,,en,ствара ставку на листи задатака тражи одобрење за тај документ,,en,Морао сам да створи поглед на листи задатака који су показали хитне захтеве за одобрење,,en,Пут реч "ХИТНО,,en,у наслову ових задатака,,en,Ја бих радије да се директно одредити поље приоритет,,en,Је "доделили везе ставку,,en,остваривање бисмо могли ставити "хитно,,en,Користите "Цреате нову ставку,,en,акција у вези са "чекати промену на терену,,en,Користите догађаја пријемник за ажурирање оригиналну ставку када корисник заврши задатак и "чекати промену на терену,,en,Од "прикупља повратне информације,,en" creates an item in a task list requesting approval for that document.

I needed to create a view of the task list that showed urgent requests for approval.

Решење: Put the word "URGENT:" into the title of these tasks.

I would have preferred to specify the priority field directly. Међутим, I was unable to do that for several reasons:

  1. The collect data action does not provide a mechanism to update any field other than title (and those additional fields for which you want to collect data).
  2. The "assign a to do item" action has the same problem.
  3. It’s possible to insert an item into a list (и.е. insert an item into the task list directly) but this not a blocking action. That means that the workflow will not wait for the user to complete that task.

I considered a few approaches before (thankfully) realizing we could just put "urgent" in the title.

  1. Start a workflow on the task list itself so that when a new task is created, it somehow cross references back to the document that started the first workflow, pull out the urgent flag value and update priority as needed.
  2. Do something similar with an event receiver. On create of the task, locate the associated document and update priority as needed.
  3. Use the "create list item" action in conjunction with the "wait for field change" action and an event receiver. If we create a list item, we can specify all the fields we want. Use an event receiver to update the original item when the user completes the task and the "wait for field change" action’s condition would be met and the workflow would proceed. (For some reason, I had more or less settled on this approach before wisely deciding to walk away for a while).

There is a drawback to my solution (aside from the obvious fact that only the text of the title indicates urgency). Since "collect feedback" only accepts hard coded title names, I need to use two different collect feedback actions whose only difference is that hard coded title.

Али, at least there’s a solution that does not require event receivers or custom SPD actions.

If someone has solved this in a more clever way, молим вас јавите ми.

</крај>

Недеља смешно: Задржавање Ваш син на прстима

One of the many joys I take in being the parent of a ten year old boy is finding new ways to make him laugh or think a little differently about questions and things in the world. I’ve used these techniques over the years:

===

Погрешно његова питања:

Син: Који је данас дан?

Тата: Један дан пре среде.

С: Не, ког дана у месецу је?

Д: Ох, то је 4 дана након Јан 25.

===

Голицај му и реците му да ћете престати када престане да се смеје.

===

Идите низ степенице у ТВ сали и саопштава, "It’s good to be the daddy." Онда, покупи га да се топло место на каучу и промените канал на нешто добро, као СциФи каналу.

===

Read stories out loud. Insert ridiculous sentences in the middle of the story. My favorite is to add "killing him instantly" when the main characters encounters some minor trouble. На пример, "the knife slipped in his hand, сечење кажипрст, убио га одмах." Nothing quite gets your son out of a complacent and passive listening mode as the main character being killed instantly.

===

Read stories incorrectly. Read sentences backward. The best part of this is that the first couple of times I did this, my son thought he was helping me out by pointing out that I wasn’t reading the words in the right order. The down side is that he really doesn’t want me to read to him any more.

===

Go to Burger King for lunch. My son would eat BK morning, night and day if we let him. When going, реци му, "I know you hate going there, but we simply have no choice." When he tries to explain that he loves BK, talk over him and say things like "We don’t have time to argue about it! We’re going and I don’t want to have a discussion!"

(Ово ме подсећа на мог омиљеног вица Борг: "Borger King: We do it our way. Your way is irrelevant." hahaha!)

===

Отворите књигу на страну 9 и кажу, "hmm, that’s an odd page".

===

Fill the world with arch enemies. "We’re going to run quick over toe 7-11, arch-enemy of 11-7".

"Your aunt lives in Ringwood, Арцх Енеми до града Скуаревоод."

===

Возимо до Масачусетса из Њу Џерсија неколико пута годишње и обично је потребно око 5 hours door to door. As we arrive home and pull into the driveway say, "oh, Заборавио сам, морамо да брзо цртицу на Хоме Депот."

===

Када гледате неког насилног инцидента у ТВ емисији (као што су Хероес), реци свом сину, "some times, на раду, I need to destroy my enemies by burning them alive using the powers of my mind. I don’t like doing it, али мораш да урадиш оно што мораш."

===

Када гледате лоших хорор филмова (see "It’s good to be the Daddy" изнад), ascribe improbable motives to the evil character. На пример, tell your son that the reason Jason is so angry is because he wants some cake and they won’t let him have any.

===

Explain phone numbers incorrectly. Instead of telling your son to dial "201-111-2222", tell him it’s "2-011-1-12222".

===

Шта трикове користите?

</крај>

Тецхнорати Тагс:

Гост блоггинг?

It seems fairly common in the political blogging world for a given blog to host a "guest blogger". When I’m in political blog land I must be wearing a different pair of eye glasses because it never occurred to me that "guest blogging" might make sense for a technical blog like mine. That is, until I read this post by Kanwal Khipple over at The Best of SharePoint Buzz- Јануар 2008.

Thinking on it, I believe there could be a lot of people out there in SharePoint land that have the itch to put together an article, short or long, technical or more business oriented, итд, but don’t run their own blog for all the usual reasons. If you’re one of those people, I’d be happy to host it. You can reach me via email or leave a comment. I haven’t thought through any kind of guidelines, but I suppose that I’d want it to be oriented around SharePoint, but I also like to throw in some personal observations about consulting now и онда. I’m also trying to publish a "Недеља смешно" every week and I’m bound to run out of ideas for that.

If you’re a regular blogger already but would like to experiment with guest blogging, I’m definitely open to that too, either as a host or a guest 🙂

</крај>

Тецхнорати Тагс: