Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Infopath
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
View Poll Results: Is this relevan to users?
Yes 0 0%
No 0 0%
Voters: 0. You may not vote on this poll

 
Old August 21st, 2009, 12:30 PM
Registered User
 
Join Date: May 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can a field & heading in a repeating table be shrunk to 0 width?

I have a section with a repeating table and field headings inside it. One of the fields is for currency, e.g., "Dollar", "Pound", etc (via a drop-down list box). Users can choose from 1 of 2 accounts. One account uses several currencies, while the other is only in Dollars. Otherwise all the fields are the same in the 2 repeating tables. Since the Dollar-only account doesn't need the currency field ("Dollar" is the default value), I would like the user not even have to see this field and heading. How can I make this field invisible, or to make the width 0, when the user chooses the Dollar-only account?

I tried conditional formating, but it is still visible even though I disable it or hide it. Can this be done with a rule (I'm not a programmer), or if not, can it be done with code?

I did create 2 identical sections and repeating tables with the currency manually shrunk as much as possible in one of the repeating tables. I then used conditional formating to hide one or the other section and repeating table, depending on the account chosen. However, I'm not sure that this is the best method, especially since both are bound to the same data source.

By the way the data source is a SQL Server endpoint used as the web service that uses stored procedures with input parameters, e.g., the account ID is an input parameter.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Query from a Repeating Table (via WS and C#) CSSmitty Infopath 2 September 10th, 2007 05:15 AM
Repeating Table Clone Row edove Infopath 1 February 22nd, 2007 09:03 AM
sql & join tables & find a field in multiple table trangd Beginning PHP 2 January 29th, 2004 07:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.