SPD Vinnuflæði “Safna gögnum frá notanda”: Breyta Mynda Verkefni Form

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" aðgerð svo að við getum hvetja notandann fyrir mismunandi bita af upplýsingum, svo sem hvort þeir samþykkja það, sumir athugasemdir og kannski spyrja hvað þeir höfðu í kvöldmat um daginn.

The forms are perfectly functional. They are tied to a task list as a content type. Þau eru 100% system-generated. This is their strength and weakness. If we can live with the default form, then we’re good to go. Hins, we don’t have too much control over how SPD creates the form. If we don’t like that default behavior, við þurfum að grípa til ýmissa bragðarefur til að fá í kringum það (til dæmis, setja forgang á verkefni).

Ég þurfti að gefa upp tengil á þessa verkefni form sem opnaðist útsýnið eignir (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:

mynd

Sem betur fer, we can do that and it’s not very hard. Broadly speaking, skjóta upp 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, leit eða önnur XSL atburðarás, this will be easy for you. Í raun, Ég fann það að vera almennt auðveldara þar sem mynda mynd er nokkuð auðveldara að fylgja samanborið við algerlega leitarniðurstöður vefur hluti (eða nightmarish CWQP).

Auðvitað, 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" stíga.

Próf 1:

  • Breyta aspx skrá við hönd.
  • Prófa það (staðfesta að breytingar þínar voru rétt vistuð og ekki brjóta neitt).
  • Opinn upp workflow og bæta óskyld aðgerð (such as "log to history").
  • Vista workflow.

Niðurstaða: Í þessu tilviki, SPD ekki tilvísun til-skapa það form.

Próf 2:

  • Gera það sama og #1 except directly modify the "collect data from a user" aðgerð.

Niðurstaða: Þetta aftur skapar form frá grunni, yfir-skrifa breytingarnar.

Final Skýringar:

  • Að minnsta kosti tveir SPD aðgerðir skapa form eins og þetta: "Collect Data From a User" and "Assign To Do Item". Both of these actions’ form er hægt að höndunum breytt.
  • ÉG var fær til að mynda minn hlekkur til dispform.aspx því, í þessu tilfelli, 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, svo ég veit ekki hvort gerist hinum megin á hyldýpi.
  • Ég vissi ekki að rannsaka, en ég myndi ekki vera hissa ef það er einhvers konar skrá sniðmát í 12 Hive, að ég gæti breytt til að hafa áhrif á hvernig SPD býr sjálfgefin eyðublöð (mikið eins og við getum breytt viðvörun sniðmát).

</enda>

Gerast áskrifandi að bloggið mitt!

4 hugsanir á "SPD Vinnuflæði “Safna gögnum frá notanda”: Breyta Mynda Verkefni Form

  1. Jim Bob Howard

    Paul,

    Góðar upplýsingar. Mig langar til að bæta við atburðarás sem endurskapa mynd:

    Próf 3:

    <Li>Gera það sama og #1 nema breyta nafni Workflow (smelltu á <Back button to get to the "Define your new workflow" síðu).</Li>

    Niðurstaða: SPD endurnefnir möppu sem inniheldur workflow og eyðublöð. Because it is creating it in a "new" skrá, eyðublaðið er endurskapa frá grunni, yfir-skrifa breytingarnar.

    Svara
  2. Ekkert nafn

    http://www.batteryfast.co.uk/compaq/310924-b25.htm Compaq 310.924-B25 rafhlaða,
    http://www.batteryfast.co.uk/compaq/pp2162s.htm samningur pp2162s rafhlaða,
    http://www.batteryfast.co.uk/compaq/pp2160.htm samningur pp2160 rafhlaða,
    http://www.batteryfast.co.uk/compaq/n150.htm samningur n150 rafhlaða,
    http://www.batteryfast.co.uk/compaq/n200.htm samningur N200 rafhlaða,
    http://www.batteryfast.co.uk/compaq/n620.htm samningur n620 rafhlaða,
    http://www.batteryfast.co.uk/compaq/pp2111x.htm samningur pp2111x rafhlaða,
    http://www.batteryfast.co.uk/dell/inspiron-6000.htm Dell Inspiron 6000 rafhlaða,
    http://www.batteryfast.co.uk/dell/inspiron-9200.htm Dell Inspiron 9200 rafhlaða,
    http://www.batteryfast.co.uk/dell/inspiron-9300.htm Dell Inspiron 9300 rafhlaða,
    http://www.batteryfast.co.uk/dell/inspiron-9400.htm Dell Inspiron 9400 rafhlaða,
    http://www.batteryfast.co.uk/dell/e1705.htm dalverpi E1705 rafhlaða,
    http://www.batteryfast.co.uk/dell/m1210.htm dalverpi M1210 rafhlaða,
    http://www.batteryfast.co.uk/dell/nf343.htm dalverpi nf343 rafhlaða,
    http://www.batteryfast.co.uk/dell/1210.htm dalverpi 1210 rafhlaða,
    http://www.batteryfast.co.uk/dell/cg036.htm dalverpi cg036 rafhlaða,
    http://www.batteryfast.co.uk/dell/t6840.htm dalverpi t6840 rafhlöðuna,
    http://www.batteryfast.co.uk/dell/latitude-x1.htm dalverpi breiddar x1 rafhlaða,
    http://www.batteryfast.co.uk/dell/xd187.htm dalverpi xd187 rafhlaða,
    http://www.batteryfast.co.uk/dell/inspiron-1300.htm Dell Inspiron 1300 rafhlaða,
    http://www.batteryfast.co.uk/dell/inspiron-b120.htm Dell Inspiron B120 rafhlöðu,
    http://www.batteryfast.co.uk/dell/inspiron-b130.htm Dell Inspiron B130 rafhlöðu,
    http://www.batteryfast.co.uk/gateway/m680.htm hlið m680 rafhlöðu,
    http://www.batteryfast.co.uk/gateway/m360.htm hlið m360 rafhlöðu,
    http://www.batteryfast.co.uk/gateway/m460.htm hlið m460 rafhlöðu,
    http://www.batteryfast.co.uk/hp/m2000.htm hö M2000 rafhlaða,
    http://www.batteryfast.co.uk/hp/dv1000.htm hö dv1000 rafhlaða,
    http://www.batteryfast.co.uk/hp/dv4000.htm hö dv4000 rafhlaða,
    http://www.batteryfast.co.uk/hp/ze2000.htm hp ze2000 battery,
    http://www.batteryfast.co.uk/hp/hstnn-db17.htm hö hstnn-db17 rafhlaða,
    http://www.batteryfast.co.uk/hp/n6000.htm hö n6000 rafhlaða,
    http://www.batteryfast.co.uk/hp/n6100.htm hö n6100 rafhlaða,
    http://www.batteryfast.co.uk/hp/f2019.htm hö f2019 rafhlaða,
    http://www.batteryfast.co.uk/hp/f2019a.htm hö f2019a rafhlaða,
    http://www.batteryfast.co.uk/hp/f2019b.htm hö f2019b rafhlaða,
    http://www.batteryfast.co.uk/hp/hstnn-db02.htm hö hstnn-DB02 rafhlöðu,
    http://www.batteryfast.co.uk/hp/dp399a.htm hö dp399a rafhlaða,
    http://www.batteryfast.co.uk/hp/383968-001.htm hö 383968-001 rafhlaða,
    http://www.batteryfast.co.uk/hp/f1739a.htm hö f1739a rafhlaða,

    Svara
  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 “Safna gögnum frá notanda” 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?
    Takk,
    Kirsten

    Svara
    1. Paul Galvin Post höfundur

      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.

      Svara

Leyfi svar við Paul Galvin Hætta við svar

Netfangið þitt verður ekki birt. Nauðsynlegir reitir eru merktir *