Tuesday, December 9, 2008

Clone and Write Data in InfoPath

Ok, basically, cloning method in InfoPath is very good but a bit tedious to use. for me personally, i have used it to create the beautiful repeating groups and xml data. below are the steps in getting this cloning method right.

1. bear in mind that in order to clone a section out of a repeating group, there must always be an existing section in the repeating group.
see example below:

repeatgroup
field1
group1
field2

this is because, if there were no existing section in the repeating group, how the hell InfoPath knows what to clone?

2. after having beared in mind 1st step, nx step is to start cloning the group. there are many examples out there explaining how to clone a repeating group, so look for it.

3. after cloning, there is a need to remove the 1st row as it is an empty or duplicated data row.

4. after which if there were to be any adjustment to the data on those groups, there is a need to remove everything and then re-write. but still the same thing, there must always be an existing section in the repeating group.

so the above quite roughly sums up on how to actually clone the rows. if there are anything that you need clarification and understanding, kindly leave me an email or you can add any comments to this post, ty.

No comments: