Solved

Infopath repeating section,repeating table

Posted on 2010-11-08
3
1,290 Views
Last Modified: 2012-05-10
Infopath 2007 using a sql database. I tracking problem cases. When I search by server I can get mutiple repeatinging sections back with case number,server number, date. On each repeating section there should be a repeating table that track multiple lines of history relating to each case. I just can't seem to get the right combination.
repeating section
_______________
case number
server number
date
issue
___________________
repeating table
date  user name action taken
date user name action taken
date user name action taken
_____________________
0
Comment
Question by:tuckcorp
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
clayfox earned 500 total points
Comment Utility
Not sure if you have data connections to both tables or if you need to also submit a history record.

The key is to create your main repeating section, often using a layout table is best. Then drag in your history and select repeating table.
Put a filter on the history so that it only displays the history that matches the id of the main record.

If this is a child table then it will happen automatically.
0
 

Author Comment

by:tuckcorp
Comment Utility
thank you. i have tried adding another table to the data coonection from the sql server,i tried adding a second data connection to receive data, but this show everything in the database. the ,closest i came was using a repeating section with the history table placed inside but this showed  all history not just the history for the info specfic to the repeating section.
0
 
LVL 28

Expert Comment

by:clayfox
Comment Utility
You have to use conditional formatting.

On the repeating table add a conditional format
server number != server number then Hide the row


That way only history for that item is shown inside the item.
This is not very performant and it would be better to go into your main data connection and modify.
Use the add table button and select the history table. Then set the relationship on the server ID or whatever.
Then when a query is made, only the associated history will be loaded.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
This collection of functions covers all the normal rounding methods of just about any numeric value.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

771 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

11 Experts available now in Live!

Get 1:1 Help Now