Solved

filling a repeating table based on selection

Posted on 2008-10-10
4
634 Views
Last Modified: 2012-05-05
We are creating an infopath form for adding a new user to our network.  We are a financial institution, so we have many applications that we need to add access for.  We would like to create a form in which one secion is the employee information (i.e. Name, Location, Position) and a repeating table below that is the applications needed for the Position (field).  When i select a position I would like the repeating table to fill in a row for each application needed so that each officer could check off that particular application when complete.  Is there a way to do this?  

I have an access database created with all the necessary data (for both queries as well as submission).  Ideally the employee table would populate with the top portion of the table, and the Application table would populate with a record number (for indexing purposes) as well as a completion status.  Any help is greatly appreciated.
0
Comment
Question by:cjg1979
  • 2
4 Comments
 
LVL 28

Expert Comment

by:clayfox
ID: 22696470
Typically you would have a table of possible applications that would be a secondary data connection.

They would have a repeating table of selections. Inside would be at least a drop down listing possible applications, maybe even filtered by employee department of something. Then they would select one and then use the default insert link to add additional rows and select additional applications.
This is the default InfoPath behavior and implementation of this type of data picking.

For the top part, it woul dprobably be secondary data unless you want them to edit their employee data.  So the Applications selected would be the main table for submission.

I would recommend www.infopathdev.com as a resource.

you also should look at some of the web services suites at qdabra.com.  They have all the web services to work with SQL directly.  Which for an enterprise application is best practice. Access is not the ideal choice.
Also they have a Active Directory web service which can identify each user, even via VPN, so you always have the correct employee, or know who is completing the form.

Good Luck
0
 

Author Comment

by:cjg1979
ID: 22702921
I can get the repeating table to work with dropdowns they can select.  This works like a charm, but what I'd like is for them not to have to add rows and applications manually, but rather a default list of necessary applications to fill the repeating table.  I'm one step away at this point.  They can enter employee information, build the application access necessary manually, and submit all the data (employee, access needed, and even completion status upon updates), but I'd like the repeating table of applications to be automatic based on a selection in the employee data.  
0
 
LVL 28

Accepted Solution

by:
clayfox earned 500 total points
ID: 22717736
This requires code to auto create the records for them.

www.infopathdev.com has some examples I believe.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

803 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