p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

Go Back   p2p.wrox.com Forums > Microsoft Office > Other Office > Infopath
I forgot my password
Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Infopath Programming and automation discussions only please. :)
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Infopath section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 10th, 2007, 03:02 PM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query from a Repeating Table (via WS and C#)


I'm creating my first relatively complex Infopath application.

This system lets users create new work requests. These requests are then processed by other users who later update the requests when they are completed. This is all done in one form with 3 different views (status of all open requests, new request form, detail of a specific request).

The 'view' that shows the status of all open requests uses a repeating table to display a few details of each request. I then insert an extra column and insert a button (switches to the 'detail view') that would allow a user to see all of the details of that specific request.

I had this working until I switched to web services and C#. It was setup with Infopath talking directly to the database and JScript.

C# WS Query Method

VB.Net DB List Method (this is the method that actually pulls all the details of a request and populates the 'repeating table')



Each request has a unique number (reqID) associated with it. I'm trying to pull this parameter from the repeating table, query the rest of the details and switch to the 'detailed' view.

Example of what the repeating table looks like with different data:




C# Infopath Detail - OnClick Code (My problem is here.)

Infopath gives the following error when I try to use the 'detail' button. I think it's something around the 'selectSingleNode' statement, because of the nullRef error I get.

I get a System.NullReferenceException
Object reference not set to an instance of an object.
   at reqForm_2_0.reqForm_2_0.mainOpen_OnClick(DocAction Event e)
   at Microsoft.Office.Interop.InfoPath.SemiTrust._Butto nEventSink_SinkHelper.OnClick(DocActionEvent pEvent)


Any ideas?
Thanks,
-C


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old July 13th, 2007, 04:27 PM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I fixed this: http://www.infopathdev.com/forums/21...ead.aspx#21641

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old September 10th, 2007, 06:15 AM
Registered User
 
Join Date: Sep 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am very new to Infopath and apologize if my question seems too simple for advanced users. I have created a repeating table. I need to be able to access the individual entries. For example, I enter 4 names as participating in an event. I need to be able to create reports by person showing in which events they participated. I thought about just having individual entries but I must relate all back to the same event so that didn't work. Can anyone help me with this? thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Repeating table problem liorlankri BOOK: Professional InfoPath 2003 1 April 29th, 2008 06:54 AM
How to INVOKE any WS on server by WS on client ? Abhinavnaresh ASP.NET 2.0 Professional 1 April 4th, 2008 02:09 PM
Repeating Table Clone Row edove Infopath 1 February 22nd, 2007 09:03 AM
Copy values from repeating table / hiding sections gill BOOK: Professional InfoPath 2003 0 February 28th, 2005 11:37 AM
Chapter 4 Repeating Table Loretta BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 7 March 26th, 2004 03:48 AM



All times are GMT -4. The time now is 12:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Wiley Publishing, Inc