Buwanang Archive: Pebrero 2008

Solusyon (uri ng): I-set ang Mahalagang sa isang Task Gamit SharePoint Designer

Mayroon akong isang negosyo sitwasyong ganito:

  • Ang isang gumagamit na pag-upload ng isang dokumento sa isang library dokumento.
  • Siya ay pumipili ng isang uri ng nilalaman at nagpasok ng meta data bilang kinakailangan. Ang isa sa mga patlang ng meta data ay isang flag, "Urgent".
  • Ito ay nagpapalitaw ng isang workflow SharePoint Designer na, bukod sa iba pang mga bagay, uses the "Collect Data from a User" aksyon.

"Collect Data from a User" 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.

Solusyon: Put the word "URGENT:" into the title of these tasks.

I would have preferred to specify the priority field directly. Gayunman, 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 (i.e. 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.

Pero, 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, mangyaring ipaalam sa akin.

</dulo>

Linggo ng nakakatawang: Pagpapanatiling Iyong Anak Sa Kanyang paa

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:

===

Mapagkamalan kanyang tanong:

Nito: Anong araw ito?

Tatay: Isang araw bago Miyerkules.

S: Hindi, anong araw ng buwan ay ito?

D: Naku, ito 4 araw pagkatapos Jan 25.

===

Kilidin sa kanya at sabihin sa kanya makikita mo itigil kapag siya tumitigil tumatawa.

===

Bumaba hagdan sa kuwarto TV at ipahayag, "It’s good to be the daddy." Pagkatapos, pick up sa kanya upang makuha ang maayang lugar sa sopa at baguhin ang mga channel sa isang bagay mahusay, tulad ng Scifi channel.

===

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. Halimbawa, "the knife slipped in his hand, paggupit kanyang hintuturo, pagpatay sa kanya agad." 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, sabihin sa kanya, "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!"

(Ito reminds sa akin ng aking mga paboritong Borg magtawa: "Borger King: We do it our way. Your way is irrelevant." hahaha!)

===

Buksan ang isang libro sa pahina 9 at sabihin, "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, arch kaaway sa bayan ng Squarewood."

===

Magmaneho namin ang hanggang sa Massachusetts mula sa New Jersey ilang beses sa isang taon at ito ay madalas na tumatagal ng tungkol sa 5 hours door to door. As we arrive home and pull into the driveway say, "oh, Nakalimutan ko ang, kailangan namin upang magsagawa ng isang mabilis na gitling sa Home Depot."

===

Kapag nanonood ng marahas na episode sa isang palabas sa TV (tulad ng mga Bayani), sabihin sa iyong anak na lalaki, "some times, sa trabaho, I need to destroy my enemies by burning them alive using the powers of my mind. I don’t like doing it, ngunit ka gotta gawin kung ano ang iyong gotta gawin."

===

Kapag nanonood ng masamang pelikula malaking sindak (see "It’s good to be the Daddy" sa itaas), ascribe improbable motives to the evil character. Halimbawa, 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".

===

Ano trick mo ginagamit ang?

</dulo>

Technorati Tags:

Guest Blogging?

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, hanggang nabasa ko ang post na ito sa pamamagitan ng Kanwal Khipple sa paglipas ng Ang Pinakamahusay ng SharePoint Buzz- Enero 2008.

Pag-iisip sa mga ito, Naniniwala ako, maaaring may maraming mga tao out doon sa SharePoint lupa na mayroon ang pangangati upang ilagay magkasama ang isang artikulo, maikli o mahaba, teknikal o higit pang mga negosyo oriented na, at iba pa, 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, ngunit ipagpalagay ko na gusto ko gusto ito upang mai-oriented na sa paligid SharePoint, ngunit ko rin bang itapon sa ilang personal na obserbasyon tungkol sa pagkonsulta ngayon at pagkatapos. I’m also trying to publish a "Linggo ng nakakatawang" bawat linggo at ako nakatali sa maubusan ng mga ideya para sa na.

Kung ikaw ay isang regular blogger na ngunit nais na eksperimento na may guest blogging, Talagang ako upang buksan na masyadong, either as a host or a guest 🙂

</dulo>

Technorati Tags: