Hi All,
I have a form with multipul subforms. I was able to figure out how to have a reset button that reset and remerged the entire form using xfa.host.resetData() and xfa.form.remerge().
Armed with this knowledge I then wanted to do the same except for a subform. When I use xfa.host.resetData(Subform1.somExpression) the data in Subform1 is reset (great). The problem comes when I use xfa.form.remerge(Subform1.somExpression). The data resets but no merging happens (not great), if I use xfa.form.remerge() the data resets but the whole document remerges.
How can I get it so that just for example Subform1 resets and remerges?
ps. the button I am using is within the subform I want to reset and remerge. But I can create one out of the subform if needed (prefer not to though (only for the look of the form)).
Thanks in advance
Pete
Views
Replies
Total Likes
Anyone got any ideas that may help with the above. I have search the web and tried many things yet still can't get it to work.
Thanks
Pete
Views
Replies
Total Likes
Hi there,
I've just modified a function that reset forms to fit with remerging subforms... I did not try it yet, it would need some testing but I'm confident it would remerge parts of any forms.
By downloading the forms under this thread :
Validation / Reset Functions, easy to manipulate and to change Forms!!!!
If you look for the function remergeForm(rootObject) within the objReset script object.
Hope this will work!
Views
Replies
Total Likes
Thanks for the reply. I had a light bulb moment yesterday afternoon and figured out a way to do it using actions. A lot of actions but I was able to achieve what I wanted.
I have not had a chance to have a good look at your suggestion as yet. I hope to be able to do that tomorrow and see if it is easier than what I have done. I will let you know how I go.
Thanks again
Pete
Views
Replies
Total Likes