SPD Workflow “Iġbor data minn Utent”: Tibdel il-Formola Task Ġġenerata

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" azzjoni sabiex inkunu nistgħu pront lill-utent għall-bits differenti ta 'informazzjoni, bħal jekk japprovah, xi kummenti u forsi jistaqsu dak li kellhom għall-pranzu oħra bil-lejl.

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. Madankollu, we don’t have too much control over how SPD creates the form. If we don’t like that default behavior, għandna bżonn li tirrikorri għal tricks varji biex tikseb madwar dan (per eżempju, iffissar tal-prijoritajiet fuq kompitu).

I meħtieġa biex tipprovdi link fuq dawn il-formoli task li fetħet il-proprjetajiet view (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:

immaġni

Thankfully, 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, tfittxija jew xenarji XSL oħra, this will be easy for you. Fil-fatt, Sibt li huwa li huma ġeneralment aktar faċli peress li l-forma iġġenerat huwa kemmxejn aktar faċli biex isegwu meta mqabbel ma 'qalba riżultati web part tfittxija (jew il- CWQP nightmarish).

Of course, 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" pass.

Test 1:

  • Tibdel il-fajl ASPX bl-idejn.
  • Tittestja (tivverifika li l-bidliet tiegħek kienu salvati sew u ma kisritx xejn).
  • Jiftħu l-fluss tax-xogħol u żid azzjoni relatati (such as "log to history").
  • Salv l-fluss tax-xogħol.

Riżultat: F'dan il-każ, SPD ma jerġgħu joħolqu l-forma.

Test 2:

  • Jagħmlu l-istess bħal #1 except directly modify the "collect data from a user" azzjoni.

Riżultat: Dan jerġa 'joħloq il-formola mill-bidu, over-miktub tibdil tiegħek.

Noti finali:

  • Mill-inqas żewġ azzjonijiet tad-DPW joħolqu forom bħal dan: "Collect Data From a User" and "Assign To Do Item". Both of these actions’ formoli jistgħu jiġu modifikati manwalment.
  • I kien kapaċi li tiġġenera link tiegħi biex dispform.aspx minħabba, f'dan il-każ, 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, so I do not know jekk jiġrilha l-naħa l-oħra tal-chasm.
  • I ma investigatx, iżda I ma tkunx sorpriż jekk ikun hemm xi tip ta 'fajl template fil- 12 doqqajs li I jista 'jbiddel għal jaffettwa kemm SPD jiġġenera l-forom default (ferm simili nistgħu timmodifika templates twissija).

</aħħar>

Abbona għall-blog tiegħi!

4 ħsibijiet dwar "SPD Workflow “Iġbor data minn Utent”: Tibdel il-Formola Task Ġġenerata

  1. Jim Bob Howard

    Paul,

    Informazzjoni tajba. I tixtieq iżżid xenarju li recreates l-forma:

    Test 3:

    <LI>Jagħmlu l-istess bħal #1 ħlief jinbidel l-isem tal-Workflow (ikklikkja l- <Back button to get to the "Define your new workflow" paġna).</LI>

    Riżultat: SPD jsejjaħ direttorju li fiha l-fluss tax-xogħol u l-formoli. Because it is creating it in a "new" direttorju, il-formola hija recreated mill-bidunett, over-miktub tibdil tiegħek.

  2. Ebda isem

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

  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 “Iġbor Data minn Utent” 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?
    Grazzi,
    Kirsten

    1. Paul Galvin awtur 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.

Ħalli Tweġiba għal Paul Galvin tikkanċella risposta

Your email address mhux se jkun ippubblikat. Meħtieġa oqsma huma mmarkati *