سؤال

I want to create an application form which would allow the user to make multiple entries for the same set of columns (like a table) e.g.
Name: XYZ
Emp ID: nnnnnnnn
"Shift Worked" "Date" "No. of Hours"
Entry1 ----> '7 AM' '8/23/10' '8'
Entry2 ----> '7 AM' '9/1/10 '4'
Entry3 ----> '4 PM' '9/2/10 '8'

How do I incorporate this? I tried researching on the net - but haven't been able to find the answer. Appreciate any help!!

هل كانت مفيدة؟

المحلول

Sounds like you're wanting the equivalent of subforms within a form, like you would get in Access.

What I would do first is focus on how the information is stored.

Assuming you have your employees details stored in a list, which contains Name and ID, and have a separate list to store the shifts, with columns EmpID, Shift Worked, Date, Total Hours.

To display this, you can use DataViewWebParts in SharePoint Designer 2007 to link the two tables, and display the Shift data per Employee (this is done using a kind of "manual group-by", may require some XSLT hacking, though should be possible without touching any code).

Basically create a DataView of all the employees, and create a cell (either in a new column or in a row below the name) which displays a subtable to your shift data list.

The topics I mention here to read up on are "Linked Sources" and "Inserting Data As Subforms" in SharePoint Designer 2007, in case you want to read up elsewhere what I'm mentioning here.

نصائح أخرى

If you have InfoPath Services, take a look at InfoPath's repeating sections.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top