Solved

InfoPath 2010 repeating table from SharePoint 2010 list

Posted on 2011-03-16
4
820 Views
Last Modified: 2012-08-14
Hi,
I would like to change some fields after I have created a listitem with a InfoPath formular.

I used the page: http://www.infopathdev.com/forums/t/15477.aspx?PageIndex=1
to create the form and the settings

So I created in the formular a listitem.

Title: Test
Firstname: Scott
Lastname: Heim
Email: someone@hotmail.com
Phone: 555-1212

now I would change only the email field into somebody@hotmail.com
I will only update the emailfield. I dont want to delete this and create a new one.

Is that possible in the form?

I can change the emailaddress. But if I click on submit the emailaddress is still the same as before. It is someone@hotmail.com and not somebody@hotmail.com.

best regards


0
Comment
Question by:pa_gmbh
  • 3
4 Comments
 
LVL 28

Accepted Solution

by:
clayfox earned 500 total points
ID: 35148664
You have to use the update command with the CAML.

So you need a CAML for each function, one to insert, one to delete, one to Update.

It looks like you have the insert working.

For the update you also have to reference the item that you want to update.

It has been a long time but I think I have had Update working with a CAML once before.

0
 

Author Comment

by:pa_gmbh
ID: 35148702
hi, thanks for your fast replay.

I`ve created a second xml:

<?xml version="1.0" encoding="UTF-8"?>
<Batch OnError="Continue">
    <Method ID="" Cmd="Update">
        <Field Name='Title'></Field>
        <Field Name="FirstName"></Field>
        <Field Name="LastName"></Field>
        <Field Name="Email"></Field>
        <Field Name="Phone"></Field>
      <Field Name="Test"></Field>
      <Field Name="Ampel"></Field>
      <Field Name="ID"></Field>
    </Method>
</Batch>

I named it: updateitem.xml

and added the above xml to a new dataconnection.

dataconnection -> receive -> xml -> updateitem.xml

But what is the next step?

Sorry, I´m still a newbie in InfoPath...

I have to change something at the submitbutton I guess, isnt it?

0
 

Author Comment

by:pa_gmbh
ID: 35149502
I have the power...

thanks for your help.
0
 

Author Closing Comment

by:pa_gmbh
ID: 35199046
there was no example or a link to a example.
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Display Sharepoint 2010 List data in InfoPath 2010 form 4 824
No page break between views 15 951
Infopath 2010 to word 2010 2 406
Infopath people picker - shading 3 122
Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question