Solved

InfoPath 2010 repeating table from SharePoint 2010 list

Posted on 2011-03-16
4
818 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
Comment Utility
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
Comment Utility
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
Comment Utility
I have the power...

thanks for your help.
0
 

Author Closing Comment

by:pa_gmbh
Comment Utility
there was no example or a link to a example.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

12 Experts available now in Live!

Get 1:1 Help Now