Solved

InfoPath 2010 repeating table from SharePoint 2010 list

Posted on 2011-03-16
4
826 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

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…
The goal of this blog is: - To define the incident management process - To go over the key elements of an incident management system - To look into incident alert management tools that integrate with ConnectWise.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

732 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