Update query against InfoPath form data

Hi,
We are using SharePoint Enterprise 2010, and have set up a series of InfoPath forms to manage various aspects of the projects we run (request forms, change control, toll gating, status reports, etc).  The forms are all created in InfoPath and save the
data to form libraries on SharePoint.
We are in the process of revamping the status report.  The fields for Accomplishments, Planned Activities, Risks and Dependencies were origianally set up as plain text.  We are moving to a bullted field for each.  My concern is that once we
add the new fields to the published form, the old ones will disappear fom view.  So if we pull up an older status report, the information wont be available to view.
Is there any way to write an update query against this form data?  Supposed I add a new bulleted field for "Accomplishments_NEW" and change the existing field to "Accomplishments_OLD".  If I were working with in Access, it would
be a simple update query where the field selected would be "Accomplishments_NEW" and the update value would be "Accomplishments_OLD".  I have actually tried this through Access but we only seem to be able to read this data through
Access, not write to it.
Is there any way to make such a change on the SharePoint side?
Dennis

Yes.
The approach is to add two fields:
- Accomplishments_v2 and Accomplishments_v1_Loaded (true/false)
when the form loads, if _v1_Loaded is false, migrate the data from the old field into _v2, and then set _v1_loaded = true
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs

Similar Messages

  • How to create Reports for the infopath form data

    Hi All,
    I have a requirement to generate reports in SharePoint based on InfoPath form data which is submitted into form library. Do I need to store each InfoPath form data into SQL Database/MS Access Database. if yes, can any one  help me on this how
    to save InfoPath form data into DB while submitting into "Form Library". based on the data stored in DB how to create  and view the report in SharePoint?.
    Thanks in Advance,
    Satish
    Thanks & Regards Satish Dugasani

    Thank you for asking the questions for clarification, my requirement is like below
    1. Need to insert all infopath form fields data into Access Database when i am submitting to the Form library
    2. Create Access Reports like based on time period, based on submitter name, based on state, city, and combination of these etc.
    3. Sync Access Database every time i am updating the form
    4. View Access Reports in share point site
    PS: I worked on this like below approch
    1. Written Web Service to Sync Access Database for the Infopath form
    2. Create Access Reports
    3. Publish using "Publish to Access Services" by providing site URL it will create a subsite there i can able to see reports, tables, macros etc. but that is not an user friendly like i am not able to apply my branding because it is pointing to /_Layouts/accsrv/Modifyapplication.aspx.
    could any one suggest me on this.
    Thanks & Regards Satish Dugasani

  • How to submit InfoPath form data to multiple SharePoint lists at one time?

    Hi,
    I'm looking for a way to submit certain data in InfoPath form to separate SharePoint lists at the same time. I have a form that has two views with many data in them. I want to keep these data in separate SharePoint list besides keeping them in the XML. I know that you can submit to a form library using SharePoint document library data connection, but I'm not sure if you can use several data connections for submitting data to multiple SharePoint lists. Is it only possible to do using code? If yes, can anyone show a sample. I have never coded in InfoPath, though I used C# a lot in .Net.
    Thank you!Regards,
    R.D.M.

    This is an old thread but I tripped over a codeless method to do this with OOB InfoPath 2010 and SP 2010. 
    Assuming your main InfoPath form is published to a document library with the promoted fields that you want to see.
      Publish your form to a new document library to capture the secondary data fields that you want separated out.
    Using the Publishing Wizard do the following:
    Go to – File then Publish
    Select SharePoint Server “ Publish form to a SharePoint Library”
    Enter location of your SharePoint or InfoPath Forms Services Site: 
    accept the default in this field from the first published event
    Next screen, keep the default or change it, Form Library, Site Content Type or Admin Approved
    Next screen, What do you want to do?
    Create a new form library
    Add new document library name and description
    Next screen, Remove all promoted fields not applicable to the new library and add all of the ones you want to see data for.
    Click Next and Publish
    Come back into the form: If you don’t have buttons added directly to the form to submit or update, add them.
    Create a new Action rule on the button
    Label the rule to keep it straight
    Condition, occurs when button clicked
    Add action, Submit data
    Use data connection to the second library created
    Create a second new Action rule on the same button
    Label the rule to keep it straight
    Condition, occurs when button clicked
    Add action, Submit data
    Use original data connection to the library
    Then you can add another action to close the form or do whatever you need.
    Republish the form to both libraries to set the template for both.
    File – Publish – SharePoint Server
    Select Secondary library from drop down follow the rest of the prompts
    Follow step 5a again, select Primary library from drop down, Add back in all of the promoted fields needed for the primary library and follow the prompts.
    DOCUMENT YOUR FORM WELL FOR MAINTENANCE
    Special considerations, your primary library needs a unique ID to reference in your secondary library.
    Your secondary library will need a unique ID that is not related to the primary if you are going to store multiple records for a single primary library reference. 
    Example: One form, multiple updates.

  • Using web service to update rows on InfoPath form

    I managed to get a proof of concept working where I can read data from a web service to populate a table on my InfoPath form. I have found information about how to use a web service to "submit" data from the InfoPath form. But what if I want to
    update an existing record from the read that I displayed on the InfoPath form?
    I have some simple methods in my web service for "read employees", "insert employee", and "update employee". Nothing really fancy. I think I can manage to tell InfoPath to use "insert employee" for the submit command,
    but I'm not entirely sure how it knows exactly what to submit. I have no idea how to tell InfoPath to use the "update employee" method if a user edits a record, nor, what button to push to do that.
    I have a feeling that "submit" is supposed to cover both "insert" and "update" but I can't find anything to confirm that. If that is true, I am not sure how to handle responses from multiple calls if the user tries to update
    or add multiple rows at a time.
    If "submit" does handle both "insert" and "update" then is best practice to make the web method intelligent enough to tell the difference?

    Given that IP has been killed off by Microsoft, and that you are still in the dev process, I might not recommend its use. Consider BCS instead.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs
    Looks interesting but it appears to be not an option on our server. The business data connectivity metadata store is offline.

  • For Update Query from ORACLE Forms

    Hi
    We are using Oracle Forms 10g running with 10g database 10.2.0.1.0. We happend to see a query which is getting generated in AWR report like Select rowid, all_columns from TableName for Update of C1 Nowait. But no such query is really written in forms and we are aware that, Any query prefixed with rowid is definitely executing from Forms. But how the ForUpdate and Nowait clause is appended to the query.
    We have checked the following properties in the database Block
    *1) Locking Mode is set to Automatic*
    *2) Update Changed Columns only is set to YES*
    *3) Query all records is set to No (Though this particular property may not be relevant to the issue)*
    What is the property or setting which might trigger such a query from ORACLE Forms with ForUpdate and Nowait clause.
    Any ideas/suggestions on why such behaviour. Please have a healthy discussion on this. Thanks in advance.

    you can't dynamically add a query to the data model in reports.
    You should look into the XML based customization of Oracle Reports. This will enable you to define a report dynamically by creating a definition in XML.
    Also another option is to have the report with a query in it and use lexical parameters in reports to pass the query definition or just the where part of it.
    Look at the reports online help for both of these solutions.

  • UPDATE query for GEOMETRY (spatial data)

    Hi,
    how to update values dynamically for this geometry type " MDSYS.SDO_GEOMETRY(2002,8307,MDSYS.SDO_POINT_TYPE(0,0,'null'),MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(-0.44106912,0.46456902,-0.72306504,0.09942102))" please help me.

    Thanks Reetesh for your reply.
    As this is a simple task I wan't to do it via OAF query rather than writing PL/SQL procedure.
    I have two tables , say error table and interface table, (there is a foreign key relation ship between these tables, ie. i have to show the interface name present in the interface table via the foreign key in the error table). I used the following query to get the data
    SELECT xxgblErrorMasterEO1.ERROR_ID_NO,
    xxgblErrorMasterEO1.ERROR_CODE,
    xxgblErrorMasterEO1.ERROR_MESSAGE,
    xxgblErrorMasterEO1.CREATED_BY,
    xxgblErrorMasterEO1.CREATION_DATE,
    xxgblErrorMasterEO1.LAST_UPDATED_BY,
    xxgblErrorMasterEO1.LAST_UPDATE_DATE,
    xxgblIntfProgramMaster.INTERFACE_NAME,
    xxgblErrorMasterEO1.ERROR_TYPE
    FROM XXEEG.XXGBL_ERROR_MASTER xxgblErrorMasterEO1,
    XXEEG.XXGBL_INTF_PROGRAM_MASTER xxgblIntfProgramMaster
    where xxgblErrorMasterEO1.INTERFACE_ID_NO =
    xxgblIntfProgramMaster.INTERFACE_ID_NO
    I like the idea of Advanced table while going through the tutorial (example 2) and would want to show certain fields by expanding on the + mark ( just like in the explorer)
    now i want to update any of the fields that i show to the user (except the WHO fields). Say for example if the user updates the error_message and Interface_name, so how should i write the update method in the AM ?
    Pardon me if this sounds simple :(

  • How to execute a update query when the particular date changes

    hi all,
    i am using date base 11.1.0.6.0,
    i am trying a small update query it should fire when particular date changes in year.
    i think for trigger but i didn't get how to execute it.
    Regards,
    Pavan

    Hi, Pavan,
    Use dbms_scheduler to run a procedure at a given time (or at repeatedly, at given times).
    A trigger is good for re-acting to certain actions in the database, someone INSERTing a row in a given table, for example. Nothing will necessarily be happening when you want your procedure to run, so a trigger is not good in this case.

  • Sharepoint 2013 Infopath form Date Picker causes screen to move shift to the top in non-IE browsers

    I created a list in Sharepoint 2013 that has a date field. I then created an Infopath form that has that date field in there. When I go to insert a new item in the list, clicking on the datefield brings up the calendar control. In IE the page doesn't move,
    in non-IE browsers it moves the page to the top. Is there a fix for this?

    Also want to know how to fix this behaviour!

  • In Sharepoint browser enabled Infopath form Date & Date Time Pickers throws Script errors using https url.

    HI All,
    I am working in Sharepoint 2010 browser enabled Infopath form and is have two Infopath date picker controls. The form is working fine in normal "http://" url. while the same site we are using opening with "https://" and select the date
    from picker then we got the script errors.
    There are no scripts used in this site. It is by default sharepoint 2010 publishing site.
    One more i checked with "Date Time picker" Infopath control also but same issue.
    Below are the errors for reference:-
    Any help is appreciated..!
    Thanks.

    Thanks Linda, for your quick response.
    The  Minimal
    Download strategy  feature is not available
    in SharePoint 2010 and start.js file is also not available.
    can you please suggest the exact location of "start.js"
    file in SharePoint 2010 then i go further or please suggest other way to find or debug the process.

  • Infopath form data coming only for published user

    Hello,
    I have published one web browser based infopath form all the data is coming only for me ,but when other user opened that form with his/her loginid all fields are blank.Why is it so? Any help
    Thanks,

    Hi,
    According to your description, my understanding is that the form data cannot be displayed when other users accessed the form.
    As Hemendra suggested, please check if there are any rules in the form to display the data to specified users.
    To match a user with the current login user, then we can set the filter with AccountId inside the Login Account group to equal userName() to get the corresponding employee id.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Filtering InfoPath Form Data Based on Sharepoint Login

    We have a form designed in InfoPath that updates a SharePoint list.  We've added a data connection in InfoPath to an SQL database that holds information we'd like to have populated in the form.  One of the columns in the database is username which
    matches the username someone accesses SharePoint with.  
    Our question is this - how can we add a filter or rule to our form so that when user x logs into Sharepoint, the form populates with all the data  in the SQL database for user x   
    We've been able to pull all the data into the form for each user, but not a specific user like we're trying to. 
    Any suggestions or reference would be most appreciated.  
    Thanks in advance. 

    Hello,
    As i understand, you want to get filter data from SQL based on current user name. You need to use "where" operator in SQL query to get specific user data from SQL. First create a SQL connection and overwrite query in your code. Refer this link for code:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/5aa4519c-b8e0-4a7c-85b4-09f7e1d0747a/dynamic-sql-data-connection-in-infopath?forum=sharepointcustomizationprevious
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Client updating/changing their own form data

    We've added some fields to our form for a 4th day of volunteering after many people have already signed up.  We want them to be able to sign up for the added day. 
    Is there a way to for individuals to update their own data on their form or do we have to do it from the backside?
    This is our form:
    https://adobeformscentral.com/?f=OH3E-aGP4i0WAwYAhSt3BA
    We added the option for Monday after 50 or so people had already signed up.
    There are lots of required fields and show/hide fields within the form.
    We don't want duplicates which is what would happen if I just asked people to repeat fillingout the whole form.
    Any options???
    Terri

    Users cannot go back to the form and update their data. I would just create a new, shorter form that has only their name/email address and info about 4th day. You can then merge the data sets from the 2 forms using the email address.
    Hope that makes sense and is helpful...
    Randy

  • Update Benefit Confirmation PDF Form Date value

    Dear Experts,
    I need to update date value which comes as a system date to some custom date  for instance (01/10/2010)  within Benefit Confirmation PDF Form
    Can somebody suggest which component I have to update  to make it happen.
    Please let me know if you need further information.
    regards
    Costa

    Instructions for editing the Benefits Confirmation form are in this thread:
    /thread/1427067 [original link is broken]

  • Updating a secondary datasource to a Sharepoint list via infopath form rules

    Using SharePoint 2010 and InfoPath 2010 I created a form that prior to submission it gets an integer value from a separate SharePoint list via a secondary datasource.  Just before the rule that submits the form to a document folder via the
    main datasource I increment the integer value and try to write it back to the secondary datasource I got it from.  I know that I have the correct value.  That is, it is reading from the data source the correct integer information and it is incrementing
    it in the form but when it writes the value back to the same column in the same secondary datasource it doesn't give any indication that it didn't work.  But when I look at the list of the secondary data source I see that the integer value is
    not updated.

    Hi Jonas,
    You can attach your Excel doucment into InfoPath form and send InfoPath form to a custom web service. Then you can parse the Excel data and combine the Excel data and additional fields into SharePoint list in the customized  web service.
    For more information, you can have a look at the thread:
    http://dandeng.blogspot.com/2012/03/submit-infopath-form-data-to-web.html
    http://www.codeproject.com/Articles/88547/Submit-entire-InfoPath-form-to-web-service
    https://social.msdn.microsoft.com/Forums/office/en-US/590f1e78-5c08-47bd-8af4-9709102b568d/webservice-to-send-attachments-in-infopath-form-to-different-location?forum=sharepointcustomization
    https://msdn.microsoft.com/en-us/library/office/gg575571.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Upload Excel data to Sharepoint list VIA infopath form

    Hi,
    I'll try to explain the process of what I want to do first.
    1. In Excel
    I have an exceldocument (XLS, XLSX or XLSM) with 4 named columns and a named worksheet saved locally on my computer.
    I want to upload this data into preferably a custom list in sharepoint but it needs to run via a infopath template first.
    2. In Infopath
    The Infopath template will prompt the user to specify values in 2 additional fields.
    After giving input to these fields user may browse for the locally stored excel document and upload the document.
    In the same infopath template a dynamic array should be visible containing 6 columns (4 from excel + 2 from headerlevel of template) and the amount of rows based on the number of rows from excelsheet.
    At the end of template a submit button is found for uploading the entire array into sharepoint custom list.
    Is this possible to do at all?
    NOTE! End user should not have to save the excelsheet as XML file nor do a XML mapping.
    Infopath should, perhaps with help of VBA read excelsheet and transfer data to correct destination in sharepoint on it self.
    Looking forward to your reply

    Hi Jonas,
    You can attach your Excel doucment into InfoPath form and send InfoPath form to a custom web service. Then you can parse the Excel data and combine the Excel data and additional fields into SharePoint list in the customized  web service.
    For more information, you can have a look at the thread:
    http://dandeng.blogspot.com/2012/03/submit-infopath-form-data-to-web.html
    http://www.codeproject.com/Articles/88547/Submit-entire-InfoPath-form-to-web-service
    https://social.msdn.microsoft.com/Forums/office/en-US/590f1e78-5c08-47bd-8af4-9709102b568d/webservice-to-send-attachments-in-infopath-form-to-different-location?forum=sharepointcustomization
    https://msdn.microsoft.com/en-us/library/office/gg575571.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Favorites in Outlook 2010

    I have multiple email accounts set up in Outlook 2010 and I have added the inboxes for each one to my Favorites list for ease of access. Outlook displays them all as "Inbox" but also kindly adds the name of the account next to each one. The only prob

  • Loading files in browserlab hanging up.

    Hi I was trying to use browserlab for the first time, and as it was "loading" my files, it seems to be hung on one jpg file. It's just a button image, so its not a big file, but I dont know why it would hang up on loading that file. Any ideas as to w

  • User Exits in SD and MM Modules

    Hi Guys, Please send some User Exits in SD or MM modules and its  functionality . it should be great if you send some real time scenarios with screen shots. Regards, Madhu

  • SCSM 2012 - all business services reporting - which cube can I report from

    I want to report on all business services, does anyone know which cube i can report on business services from? any other advise relating to this appreciated.

  • Incoming mail: SMTP or POP?

    Hi, I'm quite new to OS X Server and I got the following question. There's a mail server in the internet for (let's say) example.net that receives emails via SMTP. There are some Adresses configured at this server. Now I'm running an OS X Server for