Solved

InfoPath 2010 repeating table from SharePoint 2010 list

Posted on 2011-03-16
4
819 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

914 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now