Workflow azzjonijiet SPD dwana — manipulazzjoni titjib string

Madwar ġimgħa ilu, I started up a codeplex project that provides a simple and reasonably generic method for adding custom action functions to SharePoit Designer workflow. It’s described here: http://www.codeplex.com/spdwfextensions. Beyond simply providing a framework, it also aims to provide a set of useful functions that will make SPD more useful/flexible/powerful.

Hawn huma l-karatteristiċi ppjanati attwali għall-verżjoni 1.0: https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=spdwfextensions&ReleaseId=8280

Jekk xi ħadd ikollu xi interess f'dan il-proġett, jekk jogħġbok leave kumment jew jibdew / żid għal diskussjoni hawn: http://www.codeplex.com/spdwfextensions/Thread/List.aspx

Hawn huma l-sett attwali ta 'funzjonijiet li ġew kodifikati (għalkemm mhux ittestjata għal kollox sa mill- 11/08/07):

Funzjoni Deskrizzjoni (jekk mhux istess. funzjoni Net)
Num-entrati() Denunzji il numru "dħul" in a string as per a specified delimiter.

Per eżempju: Num-reġistrazzjonijiet fi string "a,b,c" ma delimetru "," = 3.

Dħul() Returns the nth token in a string as per a specified delimiter.
Tul String.Length
Ibdel() String.Replace()
Fih() String.Contains()
Denunzji-kelma "vera" jew il-kelma "false".
Substring(tibda) String.Substring(tibda)
Substring(tibda,aħħar) String.Substring(tibda,aħħar)
ToUpper() String.ToUpper()
ToLower() String.ToLower()
StartsWith() String.StartsWith()
Denunzji-kelma "vera" jew il-kelma "false".
EndsWith() String.EndsWith()
Denunzji-kelma "vera" jew il-kelma "false".

Quick & faċli url Encoding desktop utilità

Stajt ġiet jeħtieġu li url 'encode xi strings din il-ġimgħa u slapped flimkien utilità ftit aa li ħsibt I d imqiegħed fuq SkyDrive għall-komunità.

Niżżel l-binarju hawn: http://cid-1cc1edb3daa9b8aa.skydrive.live.com/self.aspx/SharePoint/WinUrlEncode.zip

Niżżel l-soluzzjoni studio viżwali hawn: http://cid-1cc1edb3daa9b8aa.skydrive.live.com/self.aspx/SharePoint/WinUrlEncodeVS2005.zip

Hawn screen shot:

immaġni

Quick u faċli: Embed hyperlink fis-dejta parti fehma XSLT web

UPDATE (01/17/08): Dan taħdidiet dħul blog dwar goodness hyperlink aktar XSL: http://www.sharepointsecurity.com/blog/sharepoint/sharepoint-2007-development/rewriting-links-in-search-results-xslt.

Ħarsa ġenerali u Objettiv: I had created a simple bar chart to serve as component on a dashboard. I’ll save the details on building charts for another post, imma jien ma nivvintaw dan it-teknika (u lanqas il-kwistjoni mark, għal dik il-kwistjoni). It turned out there was a bug in the chart and while I fixed that, I took the opportunity to convert some labels into hyperlinks that pointed at the underlying list behind the graph. Per eżempju, there is a label with value "Hold". I wanted to turn the label into a hyperlink so that the user could click on it and drill down to the specific entries in the list whose status value is "Hold".

Passi:

  1. Użu studio viżwali għal Sharepoint-konxji IntelliSense.
  2. Kopja XSLT l DVWP tal fis viżwali istudjo (jinħoloq proġett vojt, żid fajl XSL għall-proġett).
  3. Ikkopja l-link li trid tuża fil-clipboard.
  4. Paste fil-post dritt fil-XSL.
  5. Ikkonverti separaturi argument URL fuq il-sekwenza mistoqsija minn "&" għal "&"
  6. Url-encode argumenti individwali.
  7. Kebbeb li ġewwa <a href…> </a>

Eżempju:

I jkollhom URL:

http://[server]/[sit]/Listi / 20Positions/AllItems.aspx Open%?View ={84EEA2F5-121B-40B7-946F-0FA704A1DAA1}&FilterField1 = Recruiter&= FilterValue1 Żomm

I jissarfu fi:

     <a href="Listi / 20Positions/AllItems.aspx Open%?View =% 7b84EEA2F5-121B-40B7-946F-
0FA704A1DAA1% 7d&amp;FilterField1 = Recruiter&amp;= FilterValue1 Żomm"> Żomm: </a>

Għandi manwalment trasformati l-ewwel argument minn:

{84EEA2F5-121B-40B7-946F-0FA704A1DAA1}

li:

%7b84EEA2F5-121B-40B7-946F-0FA704A1DAA1% 7d

(F'din, l-Brace miftuħa tittrasforma lill 7b% u l-Brace għeluq tittrasforma sa 7d%)

L-argumenti tieni u tielet’ parametri ("FilterField1 =Recruiter" u "FilterValue1 =Żomm" rispettivament) m'għandhomx bżonn li jiġu url 'encoded għaliex dawn ma jkunx fihom xi karattri mhux sikuri.

Noti:

Din it-teknika għandha ġeneralment jaħdmu kullimkien inti tixtieq li ssodata hyperlink fil XSLT fejn il-hyperlink jinkludi parametri fuq il-URL bħal:

http://[server]/[sit]/Listi / 20Positions/AllItems.aspx Open%?View ={84EEA2F5-121B-40B7-946F-0FA704A1DAA1}&FilterField1 = Recruiter&= FilterValue1 Żomm

Sibt l-URL innifsu billi taċċessa l-lista tad-dwana u manwalment filtrazzjoni fuq il-kolonna istatus (ittikjati "Recruiter" hawn fuq).

Quick u sempliċi: Jippermettu workflow Disinjatur SharePoint biex taġġorna forma InfoPath

Xenarju: I have an InfoPath form that front-ends a workflow process implemented using SharePoint Designer. At one point, a manager must approve the form. Peress I ma jista 'joqgħod fuq l-istorja workflow biex jissodisfaw rekwiżiti ta' verifika tiegħi, I jiddeċiedu li jaħżen messaġġ tiegħi verifika stess direttament fuq il-formola innifsu.

Ħarsa ġenerali:

Disinn tal-forma u jippubblikaha bħala Tip kontenut and the form itself to a document library. Mark desired form fields as being updateable from MOSS. The form is tied to the content type and the content type is "attached" għal librerija forom (jew ħafna, jekk inti tixtieq). Write a workflow that updates the field.

Passi speċifiċi:

  1. Create a document library. This will hold your InfoPath template.
  2. Create a forms library.
  3. Create the InfoPath form. Include a text field, "Audit Message".
  4. Tippubblika l-forma bħala tip kontenut (MHUX dokument).
  5. Filwaqt li timla l-dialogs pubblikazzjoni:
    a) Salv l-fajl. Xsn għal-librerija dokument (pass #1).
    b) Tippubblika l Messaġġ Verifika "" qasam u l-marka vera: "Ħalli l-utenti li jeditjaw data f'dan il-qasam bl-użu ta datasheet jew proprjetajiet paġna".
    c) Oħloq tip kontenut ġdid u tagħtih l-isem xieraq.
  6. Aċċess-librerija forom.
    a) Mur settings avvanzati tagħha u jippermettu lill-librerija formoli biex jimmaniġġjaw tipi ta 'kontenut.
    b) Agħżel it-tip kontenut għadu kif inħoloq (5c hawn fuq). It will be grouped under "Microsoft InfoPath" (jew simili).
    c) Neħħi l-default "Formola" Tip kontenut mill-bibljoteka.
    d) Immarka l-librerija biex "juru kif web page" sabiex il-formola se tniedi mill SharePoint u mhux il-klijent workstation InfoPath.
  7. Go back to the forms library proper and click "New" li kemm jivverifika illi l-formola huwa mibgħut b'mod korrett u li jaġixxu kif tixtieq.
  8. Fire up Disinjatur SharePoint u jinnavigaw-sit li tospita librerija formola tiegħek (minn pass 2).
  9. Oħloq fluss tax-xogħol ġdid mehmuż mal-librerija forom.
  10. Add a single action "Set Field in Current Item". You should expect SharePoint Designer to list your your field, "Audit Message". Assign it a value.
  11. Ikklikkja Finish u jmorru lura lejn il-librerija formola.
  12. Create a new form and put some test value into the "Audit Message" qasam.
  13. Ħlief dan u jmorru lura lejn il-librerija formola.
  14. Right-click, select "Workflow" u jibdew fluss tax-xogħol tiegħek.
  15. It should run almost immediately. Pull up the form (minn pass 12) u jekk kollox marret għall-pjan, "Audit Message" ġie assenjat kwalunkwe valur inti provdut fil-pass 10.

Noti:

Not all controls may configured for this bi-directional communication. Per eżempju, it does not seem to implement an SPD workflow that modifies text fields wrapped inside repeating sections.

One of the key take-away’s here is that we’ve really created a content type with an associated template. This also enables us to store multiple InfoPath form templates in the same form library.

This requires forms server. It’s most certainly not going to work in a WSS 3.0 ambjent u probabbilment anki teħtieġ ambjent SharePoint Intrapriża.

Il-Beagle kien Żbarkat (Ottubru 2007 kwistjoni)

(Dan huwa attwalment aħbar qodma ftit, iżda bħala motto favorit tiegħi istazzjon tan-nar tipproklama, "Better late than never").

Iċċekkjaha hawn: http://www.sharepointbeagle.com/

Jekk inti ma jkunux diġà, kun żgur li jiffirmaw.

Of course, kun żgur li taqra artiklu tiegħi about a real-world SharePoint project (inklużi r-rekwiżiti definizzjoni, Tal-KPI, kontenut tipi, dashboards and more) as well as tal-kollega tiegħi article about the content query web part.

Hemm ħafna ta 'għalf oħra tajba wisq.

Kif tneħħi “View kollha kontenut tas-sit” rabta

Jien talab din il-kwistjoni kważi kull ġimgħa, normalment fil-kuntest ta 'diskussjoni ta' sigurtà. An administrator/site creator has provisioned a site, konfigurati sigurtà, arranged web parts and customized the quick launch to provide that oh-so-perfect set of options to the end user. Iżda, barra mill-kaxxa, you can’t remove the "view all site content" rabta.

Mark Wagner jipprovdi l-risposta hawn (http://www.crsw.com/mark/Lists/Posts/Post.aspx?ID=36). Tiegħu write-up huwa terrific fuq żewġ livelli. Huwa jipprovdi risposta għad-domanda, "How do I remove the View All Site Content" rabta? Imbagħad, hija twieġeb il-immedjat follow-on kwistjoni: Kif nista 'faċilment jippermettu l-fehma kollha link kontenut tas-sit fuq sit ta' bażi-by-sit?

Bħala bonus: Approċċ tiegħu xogħlijiet għall WSS, mhux biss MOSS.

</aħħar>

Abbona għall-blog tiegħi!

Stess CodePlex Tiegħi proġett: Estensjonijiet Workflow għall SharePoint Designer

UPDATE: Ara hawn (http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!310.entry) għall-aħħar fuq dan il-proġett.

I ħolqot proġett CodePlex llum biex tospita l-Ġeneriċi interface iSPD kodiċi li I blogged dwar hawn (http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!275.entry).

Agħti ħarsa lejn hawn (http://www.codeplex.com/spdwfextensions) biex tara l-proġett CodePlex u kick-tajers.

Jekk int interessat fil-ħidma fuq dan miegħi, nar off email fuq mailto:galvin.paul@gmail.com

SharePoint Designer — Attività Custom biex tesegwixxi l-utent definiti C # funzjonijiet

UPDATE: Dan ġie rilaxxata għall CodePlex hawn: http://www.codeplex.com/spdwfextensions

UPDATE: Ara hawn għal noti rilaxx aħħar: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry

UPDATE: Ara hawn għal ħsibijiet tiegħi fuq il-kummerċjalizzazzjoni dan il-proġett: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!569.entry

This project provides a custom activity in SharePoint Designer. Use this custom activity to invoke (dispaċċ) any C# function that you incorporated into the linked assembly.

Bħala ta 'Ottubru tard, 2007, this is just an initial version of the project. I plan to expand it with a number of additional functions, inklużi substring, indiċi, jissostitwixxu, invoking web services and anything that seems useful or interesting. I also plan to post this to codeplex once I have my act together on that front. This will also be deployable as a solution at some point.

Jekk għandek xi kummenti, mistoqsijiet jew suġġerimenti, jekk jogħġbok jħallu lilhom fil-kummenti jew email me.

Ċaħda ta 'responsabbiltà:

I make absolutely no claims as to the suitability of this for any purpose. Use at your own risk.

Passi installazzjoni (li għandhom jiġu segwiti għal kull WFE fil-farm):

1. Niżżel il-. Zip u estratt.

2. Install the .dll into the GAC. I usually open c:\użu twieqi assemblaġġ twieqi Explorer u kopja hemm.

3. Timmodifika web.config li żżid l-assemblea għall-kontrolli sikuri:

<System.Workflow.ComponentModel.WorkflowCompiler>
<authorizedTypes>

<authorizedType Assembly="SpdGenericInterface, Verżjoni = 1.0.0.0, Kultura = newtrali, PublicKeyToken = abe076fd8125f3c4" Namespace="Nivlag" TypeName="*" Authorized="True" />

4. Copy "SpdGenericInterface.actions" sa C:\Program Files Files Komuni Microsoft maqsuma estensjonijiet web server 12 TEMPLATE 1033 Workflow

Innota li l-post ta 'hawn fuq huwa speċifiku għall-installazzjonijiet tal-lingwa Ingliż.

5. Designer SharePoint Agħlaq (jekk huwa diġà miftuħa).

6. iisreset

7. Iftaħ SPD u toħloq workflow ġdida.

Jekk kollox imur sew, inti għandek tkun ippremjata bi kategorija ġdida ta 'azzjoni:

immaġni

Noti:

Ara hawn (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) għal ħarsa terrific tal-proċess għall-ħolqien, installazzjoni u l-konfigurazzjoni ta 'soluzzjoni bħal din.

Il. Zip hija mfassla biex estratt direttament lilek c:\ drive. If you do this, inti tista 'tiftaħ il-proġett u l-mogħdijiet kollha ser ikunu konsistenti.

Biex tuża dan studio viżwali, you probably need to install "Extensions for Windows WF".

The initial upload contains just one "dispatcher function", "ToLower()". To add more functionality, iżżidhiex mal-metodu Teżegwixxi kif muri:

 protetti override ActivityExecutionStatus
          Teżegwixxi(ActivityExecutionContext executionContext)
        {

            string functionToDispatch;
            functionToDispatch = dan.DispatchFunction.ToLower();

            jaqilbu (functionToDispatch)
            {
                każ "tolower()":
                    {
                        dan.OutResult1 = dan.InParam1.ToLower();
                        break;
                    }

                default:
                    {
                        dan.OutResult1 = "Unknown function: [" + dan.DispatchFunction + "].";
                        break;
                    }
            }

            ritorn ActivityExecutionStatus.Magħluq;
        } // ActivityExecutionStatus

    }

Imbagħad, re-build the project and copy the assembly to the GAC. I expect an iisreset would be required.

SPD Workflow azzjoni custom – jiksbu l- <WorkflowInfo> tag dritt biex jevitaw frustrazzjoni

Part of the process for creating a custom action for SharePoint Designer involves create a ".actions" fajl.

Stajt misjuba u ppruvaw jużaw kampjun ta 'mudell li jibda off bħala:

<?xml Verżjoni="1.0" encoding="UTF-8" ?>
<
WorkflowInfo xmlns="http://schemas.microsoft.com / Sharepoint /">
<
Azzjonijiet Sekwenzjali="imbagħad" Parallel="u">

Madankollu, that xmlns attribute prevents my environment from working. My actions don’t show up in SPD.

Is-soluzzjoni hija għal strixxa l-attribut xmlns, do an iisreset and close/re-open SPD.

Quick u sempliċi: Kkonfigurat MOSS li tfittxija librerija speċifiku dokument

See UPDATE (I) below (11/24/07) fuq Kif Kkonfigurat Microsoft Office SharePoint Server 2007 biex Indiċi u Crawl Folders Netwerk għall Search

Għan: I want to execute a search restricted to a specific document library. F'dan il-każ, il-librerija dokument fih dokumenti taħriġ.

Passi:

1. Irreġistra l-URL tal-librerija dokument.

2. Oħloq ambitu:

Mur amministrazzjoni ċentrali.

Aċċess għall-SSP.

Go to "Search Settings".

Scroll down to the scope section and select "View Scopes".

Create a new scope. Give it a name and useful description.

3. Jiddefinixxi regoli jitkaxkru ambitu:

Żid regola li tiddefinixxi l-librerija dokument għal dan l-iskop.

Select "web address" for "Scope Rule Type".

Daħħal l-isem ta 'folder tiegħek (tara #1 hawn fuq).

Accept the default value of "Include".

Stenna għall-iskop li taġġorna (jew jibdew dan manwalment).

4. Jippermettu l-ambitu ta 'ġbir sit.

Mur ġbir sit fejn inti tixtieq li tuża dan l-ambitu.

Żid ambitu ġdida tiegħek għall-grupp wiri jew gruppi adattati.

5. Fittex!

F'dan il-punt, you’re done. Assuming the scope is properly defined, se jkun disponibbli fil-downs qatra ambiti ta 'riċerka għall sempliċi u avvanzati u meta inti tfittex billi tuża dak l-ambitu, tkun taf biss tikseb riżultati inti tistenna.

Noti:

I kiteb dan blog dħul minħabba tfittxijiet tiegħi għall setup ambitu sempliċi mdawwar up jużaw frażijiet niexef bħal:

  • kkonfigurat ambiti fil MOSS
  • kkonfigurat ħażiż ambitu tfittxija
  • ambiti fil Sharepoint 2007
  • ambiti fil Sharepoint
  • tfittxija librerija dokument ħażiż
  • ambiti primer ħażiż

Tista 'toħloq ambitu tfittxija fuq folder, not just the entire document library.

A ambitu tista 'tiġi kondiviża bejn kollezzjonijiet sit multipli (għalhekk, a "shared service").

You can create the scope at the site collection level itself. Madankollu, I prefer to go to central admin because I can start the crawl from there. You cannot start the crawl from the site collection.

UPDATE (I) bħala ta ' 11/24/07:

Kai Shang put together a great post entitled Kif Kkonfigurat Microsoft Office SharePoint Server 2007 biex Indiċi u Crawl Folders Netwerk għall Search @ http://kaishenghoo.spaces.live.com/blog/cns!8A7458DB12CA5AC9!206.entry