Moss ay nagsasabi sa Akin “Access denied” i-edit ang isang daloy ng trabaho Task, Ngunit ko Talagang Mayroon ba Magkaroon ng Access

I’ve implemented a workflow using SharePoint Designer in a site which is mainly read-only to "NT_AUTHORITY\Authenticated Users" (i.e. lahat). There is a forms library for an InfoPath form. There is an associated workflow tasks list as well so that when the workflow operates, maaari itong magtalaga ng mga gawain sa mga tao.

I break permission for the forms library and task list so that any authenticated user can create forms and update their assigned tasks.

I test with my low-privileges test account.

Can I fill out and save a form to the library? –> YES

Can I access the task from an email link? –> YES

Can I see an Edit workflow task link –> YES

Can I click on that link? –> NO … Permission Denied.

Why can I see an edit link that denies me permission when I click on it? That’s not how it’s supposed to work…

I go through the security configuration again, very closely. I do it again. I consider deleting this post because I obviously don’t know anything about security.

Sa wakas, I search the Internets. I find this highly unlikely MSDN forum thread: http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1838253&SiteID=17

The posters appear to be suggesting that the simple act of exporting the workflow to a drive platter will fix a MOSS security issue? I can hardly believe I just typed that. I’m reminded of the South Park episode about the 9/11 conspiracy where Stan is asking our Preznit, "Really?" over and over again.

Kaya, nothing to lose, I fire up SPD, right-click on the workflow and save it to my c:\ drive. That would be the c:\ drive on my laptop. I’m looking over my shoulder the whole time so that no one will ask me, "why are you saving that workflow to your laptop?"

Incredibly, that solves my problem. I can edit the task.

I hereby nominate this to be the Most Bizarre Workflow Workaround of 2007.

</dulo>

Technorati Tags:

SharePoint Designer, Kasalukuyang Item ni “Ganap na nai-encode na URL” at HTTPS

We often want to send an email that includes a hyperlink to the item or document that triggered the workflow. We can use current item’s "Encoded Absolute URL" for this purpose. Gayunman, it always seems to use "http" for the URL protocol. If your site runs on HTTPS then it will not work for you.

imahen

Sa pagkaalam ko, there is no out of the box solution to this problem. If you need to use HTTPS, wala kang sumali sa pagpipilian na kahon.

Upang malutas ito, create a custom action that provides a string replace function to use in your workflow. Alternatively, gumamit ng isang 3rd party na tool tulad ng mga mahuhusay na package dito: http://www.codeplex.com/spdwfextensions 🙂

</dulo>

Technorati Tags: ,

Mabilis at madali: Matukoy ang Panloob na Haligi Pangalan ng isang Haligi ng Site

I-UPDATE: Jeremy Thake Na-blog tungkol sa mga ito at ilagay up ng ilang mga code para sa isang application console na nagpapakita ng panloob na mga pangalan.

I was trying to get a content query web part to display a due date from a task and because the screen label is "Due Date", Ako ipinapalagay na ang Pangalan ng hanay upang gamitin sa <CommonViewFields> is "Due_x0020_Date".

Mali!

The real column name in this case was "DueDate".

Paano ko mahanap ito? I re-read Heather Entry sa blog ni Solomon sa pagbabago ng CQWP to show additional columns of data. She describes this process at step #13. Trust it. It’s correct. Kahit, it was correct for me. I did not trust it at first for another column with a much longer name.

I say "Trust it" because I did not trust it and probably wasted near two hours butting my head up against a wall. After I resolved the "DueDate" pangalan, Nais kong magdagdag ng isa pang field upang <CommonViewFields>. Using the Solomon technique, I was getting a column name like "XYZ_x0020_Project_x0020_Due_x00".

Akala ko sa sarili ko, that’s clearly a truncated name. I went ahead and un-truncated it with no success. I finally used the seemingly truncated name and it worked.

Bonus tip: Kapag ako ay nagtatrabaho kasama ang CQWP, kung ako ay nagdagdag ng isang masamang pangalan ng panloob na <CommonViewFields>, the CQWP would tell me that the query had returned no results. Pero, kung ako ay nagdagdag ng isang uri ng data upang ang pangalan ng field, it would return a result. Adding the data type actually masked a problem since I was referencing a non-existent field. I could add it, ngunit kapag sinubukan ko upang ipakita ang halaga nito, I would always get a blank.

Ito ay hindi mask ang error:

<CommonViewFields>Due_x0020_Date;</CommonViewfields>

Ito ang mask ang error:

<CommonViewFields>Due_x0020_Date,DATETIME;</CommonViewfields>

</dulo>

Mag-ingat sa paglabag ng mga Pagbabago upang ItemStyle.xsl

Ako ay nagtatrabaho may ItemStyle.xsl upang i-customize ang hitsura ng Bahagi ng Nilalaman Query sa Web at karapatan tungkol sa oras ng tanghalian, I made a breaking change to the xsl. I didn’t realize it, but this had far reaching effects throughout the site collection. I went off to lunch and upon my return, napansin ang mensaheng ito lumilitaw sa isang bungkos ng mga lugar:

Hindi upang ipakita ang Web Bahagi. Upang i-troubleshoot ang problema, buksan ang Web page na ito ng Windows SharePoint Mga Serbisyo katugma sa HTML editor tulad ng Microsoft Office SharePoint Designer. Kung magpapatuloy ang problema, makipag-ugnay sa administrator ng iyong Web server.

Blamed ko ang client (hindi napagtatanto bilang pa na ito ay ang aking kasalanan sa puntong ito) but eventually noticed that visual studio intellisense was warning me that I had malformed XSL. I corrected it and everything started working.

Darned ingat kapag nagtatrabaho sa ItemStyle.xsl (at anumang ng pandaigdigang XSL file) — paglabag sa mga ito ay nakakaapekto sa maraming mga artifacts sa koleksyon ng site.

<katapusan />

Aking Anak hack Gamespot

Kaya, ito umaga, aking anak na lalaki ay tinutukoy upang makita ang isang edad-labintatlo pinaghihigpitan Halo 3 sa video Gamespot. I’m outside shoveling snow, so I’m not there to help or hinder. Necessity is the mother of invention and all that … he has a eureka! moment. He realizes that even though Gamespot wants him to enter his tunay araw ng kapanganakan, Maaari niya talagang ipasok ang anumang birth date he wants. Once he realized that, ginawa niya ang kanyang sarili lumang sapat upang makita ang mga video.

I’m not quite sure how I feel about this 🙂

Linggo ng nakakatawang: “Ito ay Pag-print ng Basura”

Sa aking unang trabaho out sa kolehiyo sa 1991, Ako ay mapalad na upang gumana para sa isang kumpanya na may manufacturing 13 lokasyon, not including its corporate HQ in New Jersey. I joined just when the company was rolling out a new ERP system. We were a small IT department of about ten people altogether, two of whom Did Not Travel. Part of the project involved replacing IBM System 36 boxes with HP hardware and HPUX. Everyone used green tubes to access the system.

Ang proyekto Rolls kasama at ako ay nagpadala down sa Baltimore na may bagong co-manggagawa, Jeff. Our job was to power up the Unix box, tiyakin ang O / S ay tumatakbo, i-install ang sistema ng ERP, i-configure ang ERP, train people on the ERP and do custom work for folks on the spot. (Ito ay isang panaginip na trabaho, lalo na pagdating tuwid out sa kolehiyo). Before we could really get off the ground, kinailangan naming ma-unpack ang lahat ng mga berdeng tubes, put them on desks and wire them. And the best part was that we had to put the RJ11 connectors on ourselves.

Para sa ilang mga dahilan na hindi ko maintindihan at hindi kailanman talagang naisip na tanungin tungkol sa oras, kami ay ilang pagkontrata kumpanya sumama at magpatakbo ng mga cable sa buong planta, but we didn’t have them put on the connectors. Kaya, there was a "patch box" with dozens of of unlabeled cables in the "computer room" at mga snaked sa paligid ng gusali sa iba't ibang mga lugar sa gusali.

Kami nagtrabaho aming paraan sa pamamagitan ng ito sa kurso ng isang weekend, pagsubok ng bawat wire, paglalagay sa isang connector (tinitiyak na iyon ay tuwid vs. tumawid), tinitiyak ang bit setting sa mga berdeng tubes at mga printer ay tama, labeling wires, making sure that "getty" was running correctly for each port and probably a thousand other things that I’ve suppressed since then. It all came together quite nicely.

Pero, there was one important cable that we couldn’t figure out. The plant in Baltimore had a relationship with a warehousing location in New Jersey. Some orders placed in Baltimore shipped out of that location. There were two wires that we had to connect to the HPUX box: a green tube and a printer. The green tube was easy, ngunit printer ang naka sa isang tatlong-linggong bangungot.

Kung hindi mo alam ito, o pinigilan ito, pagharap sa mga berdeng tubes at mga printer na ito paraan, there are various options that you deal with by setting various pins. 8-kaunti, 7-kaunti, pagkakapare-pareho (kahit na / kakaiba / none), probably others. If you get one of those settings wrong, ang tube o printer pa rin nagpapakita ng mga bagay-bagay, ngunit ito ay magiging kabuuang mga walang kuwentang, or it will be gibberish with a lot of recognizable stuff in between. Talaga, these pins are hard to see and have to be set by using a small flat-edge screw driver. And they are never standard.

Kami-set up ang una sa maraming mga mabilis na tawag sa NJ tao (ng isang kulay-abo hater computer na kung sino marahil curses sa amin upang sa araw na ito). We got the green tube working pretty quickly, but we couldn’t get the printer to work. It kept "printing garbage". We would create a new RJ11 connector, switching between crossed and straight. We would delete the port and re-created in Unix. We went through the arduous task of having him explain to us the pin configuration on the printer, hindi kailanman talagang sigurado kung siya ay ginagawa mo ito nang tama.

Ito ay tungkol sa oras na maging live, lahat ng bagay sa Baltimore ay humuhuni, ngunit hindi namin makuha ang sinumpa printer up sa NJ upang gumana! We’ve exhausted all possibilities except for driving back up to NJ to work on the printer in person. To avoid all that driving, we finally ask him to fax us what he’s getting when it’s "garbage", umaasa na siguro ay magkakaroon ng ilang mga bakas na sa basura na magsasabi sa amin kung ano ang ginagawa namin mali.

Kapag namin nakuha ang fax, we immediately knew what was wrong. Tingnan, our method of testing whether we had configured a printer correctly was to issue an "lp" command na tulad nito:

LP / etc / passwd

Talaga, we printed out the unix password file. It’s always present and out of the box, always just one page. You standard Unix password file looks something like this:

panday:*:100:100:8A-74(opisina):/tahanan / smith:/usr / bin / SH
:*:200:0::/tahanan / guest:/usr/bin/sh  

We had been printing out the password file over and over again for several weeks and it was printing correctly. Gayunman, sa dulo ng gumagamit, it was "printing garbage".

</dulo>

Ngunit ang isa pang Network kredensyal Multi-Hamon Isyu at Solusyon

Ang aking client kamakailan-install ng isang magic aparato mula sa Halaman ng dyuniper na tila pinalitan ng kanilang lumang Cisco network load balancer (NLB). At about the same time, kami ng isang naka-install hotfix upang tugunan ang isang daloy ng trabaho problema.

Ang isang araw o dalawa mamaya, napansin namin ng isang problema kapag kami-access ang naibahaging mga service provider (SSP). We could get to it, but we would be challenged for a user ID and password many times on each page. This didn’t happen with the main portal app, nor central administration. Naturally, hindi namin alam kung alin sa mga dalawang (Halaman ng dyuniper o hotfix) ay magiging ang isyu, bagaman ako Matindi pinaghihinalaang ang hotfix, pag-uunawa ng hindi pa namin na naka-install ito masyadong tama.

It turned out that Juniper had some kind of compression setting. Ang isa sa mga robed figure over in the network group turned that setting off. That solved our problem.

This is not the first time that compression has been the root cause of a SharePoint problem for me. IIS compression adversely affected a 3rd party tool from the good people at The Dot Net Factory for IE 6 browser (IE 7 browser na nagtrabaho nang walang hirap).

Kaya, add "compression" sa panganib listahan.

</dulo>

Credit sa: http://www.elfwood.com/art/s/h/sherry/death_colour.jpg.html

Technorati Tags: ,

Pag-iisip Tungkol sa Pagbabago ng Blogging Platform

I started off my "blogging career" using Microsoft’s platform and it’s been good to me. It’s easy to post, there are good options and widgets for managing your "space", disenteng web storage at iba pa.

Gayunman, I really just fell into the MS solution with almost no planning. That alone calls for me to evaluate where I am and where I’m going, in terms of a blogging platform. There are also two important limitations that bother me right now vis-à-vis Windows Live Spaces.

Una, I can’t get very good statistics. There are stats but the detail is often truncated and not presented in a way that allows for any kind of analysis. There no sorting or export capability. I get many blog ideas based on the kind of information people find (o lalo na mabigo upang mahanap ang) when they search my blog. It’s very hard to use lives spaces for that.

Pangalawa, there does not seem to be any mechanism to "monetize" a windows live space blog. Sa katunayan, sa pagkakasunud-sunod upang makakuha ng mapupuksa ang MS ad (mula sa kung saan nakukuha ko walang pakinabang), I need to actually pay Microsoft. (Kahit, na kung paano nauunawaan ko ito; Ko pa magawang upang makakuha ng tiyak na kasagutan sa mga ito at mga tanong ito nais).

Ngayong Mayroon akong isang naitatag na pattern at hanay ng mga gawi sa pagba-blog, I want to evaluate other options. I’ve done some research and there are a lot of choices, ngunit ako ay hindi karaniwan bilang sa kung ano ang iba pang mga tao, lalo na mga kasapi sa komunidad SharePoint (bilang mga blogger o mga mambabasa), like to use.

Kung paksang ito interes sa iyo at ikaw ay may isang opinyon o na nais na ibahagi ang iyong karanasan, mangyaring mag-iwan ng komento o mag-email sa akin nang direkta.

Salamat!

<katapusan />

Technorati Tags:

Email SharePoint Designer Ipinapadala ???? sa isang email

Mga gumagamit Forum paminsan-minsan magtanong: Bakit ang SharePoint Designer ilagay ???? sa aking e-mail sa halip ng isang halaga ng patlang?

Isang dahilan nangyari ito ay dahil ang mga variable na kung saan ang mag-refer sa iyo ay null.

This can happen because you are trying to reference a field from the "current item" ngunit ang user ay hindi kailanman ipinasok ng isang halaga sa patlang na iyon anyo.

<katapusan />

Technorati Tags:

Ihambing / Subukan ang para sa Blangkong petsa sa SharePoint Designer workflow

Senaryo: Sa isang SharePoint Designer workflow, you need to determine if a date field is blank.

Problema: SPD does not provide a direct method for comparing dates to anything other than a date. You cannot create a condition like this: "Kung [DateField] katumbas blangko ".

Solusyon: Convert the date to a string. Use string comparison to determine if the date is blank.

Screen shot:

The following screen shots show how to do this. Sa sitwasyong ito, isang patlang sa isang item, "Kapaligiran permit:Petsa ng unang permit Paalala ", ay isinumite at ang daloy ng trabaho na apoy sa tugon.

imahen

imahen

Mga Tala:

Kapag sinubukan ko ito, I was pleasantly surprised to learn that it works. I was worried that SharePoint Designer might disallow the string assignment (Nagbabago:StringReminderDateDate) ngunit ito payagan ang mga ito.

Ako ay din nababahala na nagpapahintulot ito, ang halaga ay maaaring maging null at alinman sa pumutok ang WF sa runtime o siguro taasan ang pandaigdigang temperatura 1/2 isang antas, ngunit ang mga alalahanin ay walang batayan.

</dulo>

Technorati Tags: