SPD workflow “Mangolekta ng Data Mula sa Isang User”: Baguhin ang Binuo ng Form 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" pagkilos upang maaari naming prompt ng gumagamit para sa iba't ibang piraso ng impormasyon, tulad ng kung aprubahan nila ito, ilang mga komento at maaaring magtanong kung ano ang kanilang ay may para sa hapunan sa iba pang mga gabi.

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. Gayunman, we don’t have too much control over how SPD creates the form. If we don’t like that default behavior, kailangan namin sa resort sa iba't ibang trick upang makakuha ng paligid nito (halimbawa, pagse-set ng priority sa isang gawain).

Kailangan ko upang magbigay ng isang link sa mga form ng gawain na binuksan ang mga katangian ng tanawin (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:

imahen

Thankfully, we can do that and it’s not very hard. Broadly speaking, painitin 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, paghahanap o iba pang mga sitwasyon ng XSL, this will be easy for you. Sa katunayan, Nakita ko ito sa pangkalahatang mas madali dahil ang nabuong form ay medyo madali upang sundin kumpara sa mga resulta ng paghahanap core bahagi web (o ang kakila-kilabot CWQP).

Talaga, 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" hakbang.

Pagsubok 1:

  • Baguhin ang ASPX file sa pamamagitan ng kamay.
  • Subukan ito (i-verify na ang iyong mga pagbabago ay maayos na-save at ay hindi lumalabag sa anumang).
  • Buksan ang workflow at magdagdag ng isang hindi nauugnay na pagkilos (such as "log to history").
  • I-save ang workflow.

Magbunga: Sa kasong ito, SPD hindi muling likhain ang form.

Pagsubok 2:

  • Gawin ang parehong bilang #1 except directly modify the "collect data from a user" aksyon.

Magbunga: Ito muling lumilikha ng form mula sa simula, over-sumusulat ng iyong mga pagbabago.

Final Tala:

  • Hindi bababa sa dalawang SPD pagkilos lumikha ng mga form tulad nito: "Collect Data From a User" and "Assign To Do Item". Both of these actions’ form nang manu-mano ang binagong.
  • Ako ay magagawang upang bumuo ng aking link sa dispform.aspx dahil, sa kasong ito, 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, kaya hindi ko alam kung nakakakuha ng sa iba pang mga gilid ng bangin.
  • Hindi ko sinisiyasat, ngunit hindi ako magiging magulat kung may ilang mga uri ng file ng template sa 12 pugad na maaari kong baguhin upang makaapekto sa kung paano bumubuo ng SPD ang form na default (halos tulad ng maaari naming baguhin ang mga template ng alerto).

</dulo>

Mag-subscribe sa aking blog!

Technorati Tags: ,

4 ano sa tingin mo "SPD workflow “Mangolekta ng Data Mula sa Isang User”: Baguhin ang Binuo ng Form Task

  1. Jim Bob Howard

    Paul,

    Magandang impormasyon. Gusto kong magdagdag ng isang sitwasyon na recreates ang form:

    Pagsubok 3:

    <li>Gawin ang parehong bilang #1 maliban baguhin ang pangalan ng workflow (i-click ang <Back button to get to the "Define your new workflow" pahina).</li>

    Magbunga: SPD renames ang direktoryo na naglalaman ng daloy ng trabaho at ang mga form. Because it is creating it in a "new" direktoryo, form recreated mula sa simula, over-sumusulat ng iyong mga pagbabago.

    Sumagot
  2. Walang pangalan

    http://www.batteryfast.co.uk/compaq/310924-b25.htm Compaq 310,924-b25 baterya,
    http://www.batteryfast.co.uk/compaq/pp2162s.htm Compaq pp2162s baterya,
    http://www.batteryfast.co.uk/compaq/pp2160.htm Compaq pp2160 baterya,
    http://www.batteryfast.co.uk/compaq/n150.htm Compaq n150 baterya,
    http://www.batteryfast.co.uk/compaq/n200.htm Compaq n200 baterya,
    http://www.batteryfast.co.uk/compaq/n620.htm Compaq n620 baterya,
    http://www.batteryfast.co.uk/compaq/pp2111x.htm Compaq pp2111x baterya,
    http://www.batteryfast.co.uk/dell/inspiron-6000.htm labak na may gubat inspiron 6000 baterya,
    http://www.batteryfast.co.uk/dell/inspiron-9200.htm labak na may gubat inspiron 9200 baterya,
    http://www.batteryfast.co.uk/dell/inspiron-9300.htm labak na may gubat inspiron 9300 baterya,
    http://www.batteryfast.co.uk/dell/inspiron-9400.htm labak na may gubat inspiron 9400 baterya,
    http://www.batteryfast.co.uk/dell/e1705.htm labak na may gubat E1705 baterya,
    http://www.batteryfast.co.uk/dell/m1210.htm labak na may gubat m1210 baterya,
    http://www.batteryfast.co.uk/dell/nf343.htm labak na may gubat nf343 baterya,
    http://www.batteryfast.co.uk/dell/1210.htm labak na may gubat 1210 baterya,
    http://www.batteryfast.co.uk/dell/cg036.htm labak na may gubat cg036 baterya,
    http://www.batteryfast.co.uk/dell/t6840.htm labak na may gubat t6840 baterya,
    http://www.batteryfast.co.uk/dell/latitude-x1.htm labak na may gubat latitude x1 baterya,
    http://www.batteryfast.co.uk/dell/xd187.htm labak na may gubat xd187 baterya,
    http://www.batteryfast.co.uk/dell/inspiron-1300.htm labak na may gubat inspiron 1300 baterya,
    http://www.batteryfast.co.uk/dell/inspiron-b120.htm labak na may gubat inspiron b120 baterya,
    http://www.batteryfast.co.uk/dell/inspiron-b130.htm labak na may gubat inspiron b130 baterya,
    http://www.batteryfast.co.uk/gateway/m680.htm gateway m680 baterya,
    http://www.batteryfast.co.uk/gateway/m360.htm gateway m360 baterya,
    http://www.batteryfast.co.uk/gateway/m460.htm gateway m460 baterya,
    http://www.batteryfast.co.uk/hp/m2000.htm HP m2000 baterya,
    http://www.batteryfast.co.uk/hp/dv1000.htm HP dv1000 baterya,
    http://www.batteryfast.co.uk/hp/dv4000.htm HP dv4000 baterya,
    http://www.batteryfast.co.uk/hp/ze2000.htm HP ze2000 baterya,
    http://www.batteryfast.co.uk/hp/hstnn-db17.htm HP hstnn-db17 baterya,
    http://www.batteryfast.co.uk/hp/n6000.htm HP n6000 baterya,
    http://www.batteryfast.co.uk/hp/n6100.htm HP n6100 baterya,
    http://www.batteryfast.co.uk/hp/f2019.htm HP f2019 baterya,
    http://www.batteryfast.co.uk/hp/f2019a.htm HP f2019a baterya,
    http://www.batteryfast.co.uk/hp/f2019b.htm HP f2019b baterya,
    http://www.batteryfast.co.uk/hp/hstnn-db02.htm HP hstnn-db02 baterya,
    http://www.batteryfast.co.uk/hp/dp399a.htm HP dp399a baterya,
    http://www.batteryfast.co.uk/hp/383968-001.htm HP 383968-001 baterya,
    http://www.batteryfast.co.uk/hp/f1739a.htm HP f1739a baterya,

    Sumagot
  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 “Mangolekta ng mga Data mula sa User” 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?
    Salamat,
    Kirsten

    Sumagot
    1. Paul Galvin Mag-post ng may-akda

      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.

      Sumagot

-Iwan ng sagot

Ang iyong email address ay hindi nai-publish. Mga kinakailangang patlang ay minarkahan *