SPD Workflow “Kukusanya Data Kutoka mtumiaji”: Kurekebisha yanayotokana Task Fomu

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" hatua ili tuweze kuchochea mtumiaji kwa bits tofauti ya habari, kama vile kama wao kupitisha, some comments and maybe ask what they had for dinner the other night.

The forms are perfectly functional. They are tied to a task list as a content type. Wao ni 100% system-generated. This is their strength and weakness. If we can live with the default form, then we’re good to go. Hata hivyo, we don’t have too much control over how SPD creates the form. If we don’t like that default behavior, we need to resort to various tricks to get around it (kwa mfano, setting priority on a task).

I needed to provide a link on these task forms that opened up the view properties (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:

picha

Nashiriki, we can do that and it’s not very hard. Broadly speaking, fire up 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, search or other XSL scenarios, this will be easy for you. Kwa kweli, Nimeona ni kuwa kwa ujumla rahisi tangu fomu yanayotokana fulani ni rahisi kufuata ikilinganishwa na sehemu tafuta matokeo mtandao msingi (au nightmarish CWQP).

Bila shaka, 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" hatua.

Mtihani 1:

  • Kurekebisha faili ASPX kwa mkono.
  • Mtihani ni (kuhakikisha kwamba mabadiliko yako walikuwa vizuri kuokolewa na hakuwa na kuvunja kitu).
  • Kufungua workflow na kuongeza hatua lisilohusiana (such as "log to history").
  • Ila workflow.

Kusababisha: Katika kesi hiyo, SPD did not re-create the form.

Mtihani 2:

  • Do the same as #1 except directly modify the "collect data from a user" hatua.

Kusababisha: This re-creates the form from scratch, over-writing your changes.

Final Notes:

  • At least two SPD actions create forms like this: "Collect Data From a User" and "Assign To Do Item". Both of these actions’ forms can be manually modified.
  • I was able to generate my link to dispform.aspx because, katika kesi hii, the relate item always has its ID embedded in the related item’s URL. I was able to extract it and then build an <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, so I don’t know if gets to the other side of the chasm.
  • I didn’t investigate, but I would not be surprised if there is some kind of template file in the 12 hive that I could modify to affect how SPD generates the default forms (much like we can modify alert templates).

</mwisho>

Kujiunga na blog yangu!

Tags technorati: ,

4 mawazo juu ya "SPD Workflow “Kukusanya Data Kutoka mtumiaji”: Kurekebisha yanayotokana Task Fomu

  1. Jim Bob Howard

    Paulo,

    Good information. I would like to add a scenario that recreates the form:

    Mtihani 3:

    <li>Do the same as #1 except change the name of the Workflow (click the <Back button to get to the "Define your new workflow" ukurasa).</li>

    Kusababisha: SPD renames the directory that contains the workflow and the forms. Because it is creating it in a "new" directory, the form is recreated from scratch, over-writing your changes.

    Kujibu
  2. Hakuna jina

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

    Kujibu
  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 “Kukusanya takwimu kutoka mtumiaji” 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?
    Shukrani,
    Kirsten

    Kujibu
    1. Paulo Galvin baada ya mwandishi

      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.

      Kujibu

Kuondoka Reply

Anwani yako si kuchapishwa. Mashamba required ni alama *