How to load list values programatically into infopathform - InfoPath Dev
in

InfoPath Dev

How to load list values programatically into infopathform

Last post 05-27-2010 07:48 AM by mgarant. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-27-2010 02:11 AM

    How to load list values programatically into infopathform

    Hi,

    without using the code i succesfully loaded the sharepointlist values into infopathform.

    But the form becomes slow...so i want to try this using custom code..but i am new to coding so any one can  pls tell me how to do this

     

    Thanks in advance..

     

  • 05-27-2010 07:48 AM In reply to

    Re: How to load list values programatically into infopathform

    There's some different way to do this, depending on what control you want to load your list in. But there is a general way to do it :

     - First you need to connect to the sharepoint list you want to load your values from with the Microsoft.Sharepoint assembly

    - You need to make the CAML query to retrieve the data;

    - Put the query in a SPQuery Object;

    - Load the value inside a SPListItemCollection object;

    - Populate your control.

     I'm not sure if it is going to be faster tough...

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.