Removing columns in InfoPath 2007 form

A

Anders J

Hi

I have a web enabled form which contains a repeating section bound to a
table. Each row contains a new company. Now. I also need th columns to be
dynamic since they should contin from 3 to 10 years like

Number of year: [ 6]
--------------------------

Company | Year 1 | Year xxx | Year 10
Company 1 xxxx xxxxx xxxxx
Company 2 xxxx xxxxx xxxxx

It seems that i can't set conditional formating on a colum. I have then
tried to manipulate the DOM by iterating each row in the reapting section
and node.DeleteSelf();

But this only results on that the textboxes (the data fields) is removed.
Not the columns in the table. :(

I have also investegated if I could set the Width of the extra columns
(7=>10) to 0 px. But I have no idea how to do that.

Any suggestions?

Anders J
 
S

Sheetal D [MSFT]

Hi,

One cannot access InfoPath form controls programmatically. So dynamically
adding/deleting columns to repeating table will not be possible. If
required you can add rows but not columns because the form schema doesn't
allow this.

----------------------------------------------------------------------
Best Regards,
Sheetal, MCSD.NET
Blog: http://sheetal-d.spaces.live.com

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top