How can I get columns' names in runtime?
I tryed this:
View Complete Post
I need to develop 3 pages.
On the first page user defines atmost 7 column names to be displayed on the report. I'm saving these names in a Sql DB table 'Columns' with Column_Nm and Column_ID as Table columns.
On the second page I'm retrieving column_Nm from the table and displaying them on the page so that the user enters the data. This data is saved in another table 'Summary' with the Columns column1 through column7.
on the 3rd page I need to show a report of 'Summary' table.
How do I dynamically replace column1 through column7 names with that of 'Column_Nm' on the report?
Any help/suggestions would be appreciated.
I have created an InfoPath 2007 form. It works great.. I have 5 data connections to sharepoint lists and profile's database. The form displays public data (profile database) about the user, such as name, manager.. etc.
What I would like to do is have an option on the form that says " If you are not this person , click here" , manually type the persons last name , and bring up their information.
Basically , there are some people who will have someone else fill the form out for them. But I don't want them to be giving out their username and password to the system.
I want the ability to fill out a form as another user without logging off sharepoint.
I'm in the process of migrating from a WSS 2 site to WSS 3/MOSS. On the old site I used an Infopath 2003 form for absence requests. During the migration I now use Infopath 2007. There wasn't any problem initially when the form was stored with the SharePoint form library. However, when I published the form as a content type from Infopath 2007 and then added that content type to the form library, there are two columns for each piece of data from the form. (One from the content type and one from the form list.) I relinked each old form (list content type) to the new AbsenceRequest content type and removed the original one from the list. However, the duplicate column names are still there. Since they came from the Infopath form, they are not editable or deletable from the SharePoint list management interface. The duplicate column names make it tough to build views since it isn't apparent which column to use in the form building UI. It can be determined form the overview display, but it is very cumbersome.
Does anyone know a way to get rid of the old, absolute, columns?
I'm working with an InfoPath2007 form developed to be filled-out through the browser on a SharePoint 2007 site, and I'm testing using Internet Explorer 7. It's a straight-forward form, with a number of text fields and two Contact Selector controls.
The issue I'm encountering is with the Contact Selector control, where if the actor only enters a partial name into the text-field and then TABs away from the control the form will perform its auto-postback to look-up and resolve the partial name (showing the name resolution dialog is necessary), and afterward the actor's cursor is focused on the next field in the form. The actor can type text into the focused field, but any subsequent pressing of the TAB key returns the actor's focus to the browser's ADDRESS bar, which is incorrect as it should proceed to the next field in the form. I understand that the Contact Selector needs to perform its postback to perform the name resolution (so that there is no way through the InfoPath form designer to disable postbacks for the control), but why does the browser not know how to continue the TAB order of the fields on the form even when a field has focus?
1) I have a ORDER form which is a usercontrol(webpart in sharepoint)
the first field is a autogenerated column given as ORD01,ORD02,ORD03...
for this i have a column in the list which stores these values into list after user submits data.
Now i want to show last inserted ORDER + 1 in the first field .
i.e., when user opens this ORDER page it should show the value.
2) the second case would when user submits data simultanoeusly.
Can anyone suggest a solution for this