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" aksie, sodat ons kan die gebruiker gevra word vir verskillende stukkies inligting, soos of hulle dit goedkeur nie, 'n paar opmerkings en miskien vra wat hulle vir aandete gehad het die ander aand.
The forms are perfectly functional. They are tied to a task list as a content type. Hulle is 100% system-generated. This is their strength and weakness. If we can live with the default form, then we’re good to go. Egter, we don’t have too much control over how SPD creates the form. If we don’t like that default behavior, ons moet die verskillende truuks te kry om dit (byvoorbeeld, stel van voorkeur op 'n taak).
Ek moes 'n skakel op hierdie taak vorms wat die oog eiendomme oopgemaak om voorsiening te maak (dispform.asxp) van die "verwante item" in a new window. This provides one-click access to the meta data of the related item. This is what I mean:
Gelukkig, we can do that and it’s not very hard. Broadly speaking, vuur op 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, soek-of ander XSL-scenario's, this will be easy for you. In werklikheid, Ek het dit algemeen makliker te wees sedert die vorm wat gegenereer is ietwat makliker om te volg as in vergelyking met 'n soektog kern resultate web deel (of die nagmerrie CWQP).
Natuurlik, 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" stap.
Toets 1:
- Verander die ASPX lêer met die hand.
- Toets dit (seker dat jou veranderings is gered en het nie breek nie).
- Maak die workflow en voeg 'n onverwante aksie (soos "teken in die geskiedenis").
- Stoor die workflow.
Uitslag: In hierdie geval, SPD het nie her-skep die vorm.
Toets 2:
- Doen dieselfde as #1 behalwe direk verander die data in te samel van 'n gebruiker" aksie.
Uitslag: Hierdie her-skep die vorm van nuuts af, Oormekaarskryf jou veranderinge.
Finale Notes:
- Ten minste twee SPD aksies skep vorms soos hierdie: "Versamel data van 'n gebruiker" and "Assign To Do Item". Both of these actions’ vorms kan met die hand verander word.
- Ek was in staat om my skakel tot dispform.aspx te genereer, want, in hierdie geval, 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 ek weet nie of kry aan die ander kant van die kloof.
- Ek het nie ondersoek, maar ek sal nie verbaas wees as daar is 'n soort van template lêer in die 12 korf wat ek kon verander om te beïnvloed hoe SPD die standaard vorms genereer (baie soos ons wakker templates kan verander).
</einde>
Paul,
Goeie inligting. Ek wil graag 'n scenario wat herskep die vorm te voeg:
Toets 3:
<li>Doen dieselfde as #1 behalwe die naam van die Workflow (kliek op die <Terug knoppie om die "Gee jou nuwe workflow te kry" bladsy).</li>
Uitslag: SPD herbenoem die gids wat bevat die workflow en die vorms. Want dit is die skep dit in 'n "nuwe" directory, die vorm van nuuts af herskep, Oormekaarskryf jou veranderinge.
http://www.batteryfast.co.uk/compaq/310924-b25.htm Compaq 310.924-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 battery,
http://www.batteryfast.co.uk/dell/inspiron-9200.htm Dell Inspiron 9200 battery,
http://www.batteryfast.co.uk/dell/inspiron-9300.htm Dell Inspiron 9300 battery,
http://www.batteryfast.co.uk/dell/inspiron-9400.htm Dell Inspiron 9400 battery,
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 battery,
http://www.batteryfast.co.uk/dell/cg036.htm dell cg036 battery,
http://www.batteryfast.co.uk/dell/t6840.htm dell t6840 battery,
http://www.batteryfast.co.uk/dell/latitude-x1.htm Dell Latitude x1 battery,
http://www.batteryfast.co.uk/dell/xd187.htm dell xd187 battery,
http://www.batteryfast.co.uk/dell/inspiron-1300.htm Dell Inspiron 1300 battery,
http://www.batteryfast.co.uk/dell/inspiron-b120.htm Dell Inspiron b120 battery,
http://www.batteryfast.co.uk/dell/inspiron-b130.htm Dell Inspiron b130 battery,
http://www.batteryfast.co.uk/gateway/m680.htm gateway m680 battery,
http://www.batteryfast.co.uk/gateway/m360.htm gateway m360 battery,
http://www.batteryfast.co.uk/gateway/m460.htm gateway m460 battery,
http://www.batteryfast.co.uk/hp/m2000.htm hp m2000 battery,
http://www.batteryfast.co.uk/hp/dv1000.htm HP dv1000 battery,
http://www.batteryfast.co.uk/hp/dv4000.htm HP dv4000 battery,
http://www.batteryfast.co.uk/hp/ze2000.htm hp ze2000 battery,
http://www.batteryfast.co.uk/hp/hstnn-db17.htm hp hstnn-db17 battery,
http://www.batteryfast.co.uk/hp/n6000.htm HP n6000 battery,
http://www.batteryfast.co.uk/hp/n6100.htm HP n6100 battery,
http://www.batteryfast.co.uk/hp/f2019.htm hp f2019 battery,
http://www.batteryfast.co.uk/hp/f2019a.htm hp f2019a battery,
http://www.batteryfast.co.uk/hp/f2019b.htm hp f2019b battery,
http://www.batteryfast.co.uk/hp/hstnn-db02.htm hp hstnn-db02 battery,
http://www.batteryfast.co.uk/hp/dp399a.htm hp dp399a battery,
http://www.batteryfast.co.uk/hp/383968-001.htm hp 383968-001 battery,
http://www.batteryfast.co.uk/hp/f1739a.htm hp f1739a battery,
Dankie vir hierdie is dit net wat ek is op soek na!
Ek het 'n paar data van 'n gebruiker in 'n SharePoint Designer workflow stap ingesamel en ek wil nou dat die data in 'n tweede vertoon “Versamel data uit die verbruiker” vorm 'n daaropvolgende stap in my workflow. Hoe kan ek die inhoud van my Workflow data veranderlike in die data in te samel van die gebruiker vorm?
Kan jy asseblief wys die kode wat jy gebruik om dit te bereik?
Dankie,
Kirsten
Sorry for never responding. Ek is besig met 'n reuse-blog opruim proses nou en ek vra om verskoning vir mis jou. Ek hoop dat jy uitgepluis het 'n goeie oplossing.