SPD Workflow “Të mbledhë të dhëna nga një përdorues”: Modifikojë formën gjeneruar Task

I’m working on a project that uses five different SharePoint Designer work flows to handle some document approvals. SPD provides the "collect data from a user" veprim në mënyrë që ne mund të shpejtë përdorues për copa të ndryshme të informacionit, të tilla si nëse ata miratojnë atë që, disa komente dhe ndoshta pyesin se çfarë ata kishin për darkë natën tjetër.

The forms are perfectly functional. They are tied to a task list as a content type. They are 100% system-generated. This is their strength and weakness. If we can live with the default form, then we’re good to go. Megjithatë, we don’t have too much control over how SPD creates the form. If we don’t like that default behavior, ne kemi nevojë të përdorë për truket të ndryshme për të marrë rreth tij (për shembull, vendosjen prioritet në një detyrë).

Unë e nevojshme për të siguruar një lidhje në këto forma task që hapën Shiko Pronat (dispform.asxp) of the "related item" in a new window. This provides one-click access to the meta data of the related item. This is what I mean:

imazh

Fatmirësisht, we can do that and it’s not very hard. Broadly speaking, zjarr deri SPD, navigate to the directory that houses the workflow files and open the ASPX file you want to modify. These are just classic XSL transform instructions and if you’ve mucked about with itemstyle.xsl, kërko ose skenarë të tjerë XSL, this will be easy for you. Në të vërtetë, Kam gjetur atë të jetë përgjithësisht e lehtë që gjeneruar forma është disi më e lehtë për të ndjekur, në krahasim me pjesën bërthamë Search Results web (ose CWQP ankthi).

Sigurisht, there is one major pitfall. SPD’s workflow editor expects full control over that file. If you modify it, SPD will happily overwrite your changes give the right set of circumstances. I did two quick tests to see how bad this could get. They both presuppose that you’ve crafted a valid SPD workflow that uses the "collect data from a user" hap.

Provë 1:

  • Modifikojë file aspx me dorë.
  • Provuar atë (të verifikojë se ndryshimet tuaja janë ruajtur siç duhet dhe nuk e thyejnë asgjë).
  • Hapur deri rrjedhën e punës dhe të shtoni një veprim të palidhur (such as "log to history").
  • Ruaj punës.

Pasojë: Në këtë rast, SPD nuk ri-krijoni forma.

Provë 2:

  • A njëjtë si #1 except directly modify the "collect data from a user" veprim.

Pasojë: Ky ri-krijon formën nga zeroja, mbi-shkrim ndryshimet tuaja.

Shënime përfundimtare:

  • Së paku dy veprime SPD krijojnë forma si kjo: "Collect Data From a User" and "Assign To Do Item". Both of these actions’ Formularët mund të modifikohen me dorë.
  • Unë kam qenë në gjendje të gjenerojnë lidhjen time për shkak dispform.aspx, në këtë rast, the relate item always has its ID embedded in the related item’s URL. I was able to extract it and then build an <a href> based on it to provide the one-click meta data access feature. It’s unlikely that your URL follows this rule. There may be other ways to get the ID of the related item but I have not had to cross that bridge, kështu që unë nuk e di nëse merr në anën tjetër të humnerë.
  • Unë nuk e kam hetuar, por unë nuk do të jetë i habitur në qoftë se nuk është një lloj i file template në 12 hive që unë mund të modifikoj të ndikojë se sa SPD gjeneron format e parazgjedhura (ashtu si ne mund të modifikoj templates vigjilent).

</fund>

Abonohen në blogun tim!

Technorati Tags: ,

4 mendime mbi "SPD Workflow “Të mbledhë të dhëna nga një përdorues”: Modifikojë formën gjeneruar Task

  1. Jim Bob Howard

    Paul,

    Informacion të mirë. Unë do të doja të shtoni një skenar që rikrijon formularin:

    Provë 3:

    <li>A njëjtë si #1 me përjashtim të ndryshojë emrin e Workflow (klikoni <Back button to get to the "Define your new workflow" faqe).</li>

    Pasojë: SPD shëndërron në dosjen që përmban rrjedhën e punës dhe format e. Because it is creating it in a "new" drejtori, Formulari është rikrijuar nga zeroja, mbi-shkrim ndryshimet tuaja.

  2. No name

    http://www.batteryfast.co.uk/compaq/310924-b25.htm Compaq bateri 310924-B25,
    http://www.batteryfast.co.uk/compaq/pp2162s.htm Compaq bateri pp2162s,
    http://www.batteryfast.co.uk/compaq/pp2160.htm Compaq bateri pp2160,
    http://www.batteryfast.co.uk/compaq/n150.htm N150 Compaq bateri,
    http://www.batteryfast.co.uk/compaq/n200.htm N200 Compaq bateri,
    http://www.batteryfast.co.uk/compaq/n620.htm Compaq bateri n620,
    http://www.batteryfast.co.uk/compaq/pp2111x.htm Compaq bateri pp2111x,
    http://www.batteryfast.co.uk/dell/inspiron-6000.htm Dell Inspiron 6000 bateri,
    http://www.batteryfast.co.uk/dell/inspiron-9200.htm Dell Inspiron 9200 bateri,
    http://www.batteryfast.co.uk/dell/inspiron-9300.htm Dell Inspiron 9300 bateri,
    http://www.batteryfast.co.uk/dell/inspiron-9400.htm Dell Inspiron 9400 bateri,
    http://www.batteryfast.co.uk/dell/e1705.htm bateri dell e1705,
    http://www.batteryfast.co.uk/dell/m1210.htm Dell M1210 bateri,
    http://www.batteryfast.co.uk/dell/nf343.htm dell nf343 bateri,
    http://www.batteryfast.co.uk/dell/1210.htm luginë 1210 bateri,
    http://www.batteryfast.co.uk/dell/cg036.htm dell cg036 bateri,
    http://www.batteryfast.co.uk/dell/t6840.htm bateri dell t6840,
    http://www.batteryfast.co.uk/dell/latitude-x1.htm Dell Latitude x1 bateri,
    http://www.batteryfast.co.uk/dell/xd187.htm dell xd187 bateri,
    http://www.batteryfast.co.uk/dell/inspiron-1300.htm Dell Inspiron 1300 bateri,
    http://www.batteryfast.co.uk/dell/inspiron-b120.htm bateri dell inspiron b120,
    http://www.batteryfast.co.uk/dell/inspiron-b130.htm dell inspiron bateri B130,
    http://www.batteryfast.co.uk/gateway/m680.htm portë m680 bateri,
    http://www.batteryfast.co.uk/gateway/m360.htm portë m360 bateri,
    http://www.batteryfast.co.uk/gateway/m460.htm portë m460 bateri,
    http://www.batteryfast.co.uk/hp/m2000.htm hp m2000 bateri,
    http://www.batteryfast.co.uk/hp/dv1000.htm hp dv1000 bateri,
    http://www.batteryfast.co.uk/hp/dv4000.htm hp dv4000 bateri,
    http://www.batteryfast.co.uk/hp/ze2000.htm hp ze2000 battery,
    http://www.batteryfast.co.uk/hp/hstnn-db17.htm hp hstnn-db17 bateri,
    http://www.batteryfast.co.uk/hp/n6000.htm hp n6000 bateri,
    http://www.batteryfast.co.uk/hp/n6100.htm hp n6100 bateri,
    http://www.batteryfast.co.uk/hp/f2019.htm hp f2019 bateri,
    http://www.batteryfast.co.uk/hp/f2019a.htm hp f2019a bateri,
    http://www.batteryfast.co.uk/hp/f2019b.htm hp f2019b bateri,
    http://www.batteryfast.co.uk/hp/hstnn-db02.htm hp hstnn-DB02 bateri,
    http://www.batteryfast.co.uk/hp/dp399a.htm hp dp399a bateri,
    http://www.batteryfast.co.uk/hp/383968-001.htm hp 383968-001 bateri,
    http://www.batteryfast.co.uk/hp/f1739a.htm hp f1739a bateri,

  3. Kirsten

    Thanks for this it is just what I am looking for!

    I have collected some data from a user in a SharePoint Designer workflow step and I now want to display that data in a second “Mblidhni të dhëna nga Përdoruesi” form at a subsequent step in my workflow. How can I add the content of my Workflow data variable in the Collect Data from user form?

    Could you please show the code that you use to achieve this?
    Falënderim,
    Kirsten

    1. Paul Galvin autori Post

      Sorry for never responding. I’m doing a giant blog cleanup process now and I apologize for missing you. I hope you figured out a good solution.

Lini një Përgjigju me Paul Galvin Cancel përgjigje

Adresa juaj e emailit nuk do të publikohet. Fusha e kërkuar janë shënuar *