Monday, January 19, 2009

Automatically add new row to repeating control

Some time ago, I wrote some post how to add a new record to a repeating table, using some code.  The code was working very well, but an answer of Jimmy (Japan) brought me to another solution. 

The code behind the Add New Record button is very simply and we don't need the overhead of opening the manifest.xsf file anymore.

The code is:  (c#)

CurrentView.ExecuteAction(ActionType.XCollectionInsert, "group2_1");

Where

Group2_1 can be found in the Advanced tab of the repeating table, the property called XmlToEdit

Friday, January 16, 2009

Thank You - TOP 100 and Cascading Dropdows

I want to thank all of you interested in InfoPath.  I became a TOP 100 contributor on the InfoPathDev.com website, and I see several times that the solutions I gave are working.

Also when searching for How to use Cascading Dropdown ListBoxes with InfoPath Services (webbassed) I see many companies implemented the out-of-the-box solution I proposed in my article and many others are using the link in their blogs and replies on forums.

Thanks!