Hi Niall,
A few years ago, you helped a user who asked "How to remove all instance in a repeatable subform". Please could you do again with approximately the same problem ?
In a click event, I have the script "_CarteEN.addInstance();". Well ! Many cards appear. To protect them, I put above a mask (it's a button with a background Fill). Now, how can I do to remove all masks with only one click using the resetdata or anything else...
I try this but it doesn't work.
while (flowedSubform.CarteEN._CacheCV.count > 2)
{
flowedSubform.CarteEN._CacheCV
.removeInstance(1);
}
Many thanks for your help !
Views
Replies
Total Likes
Drop me an email with the sample PDF you tried. I don't see anything wrong in this code.
or the best way is to add try..catch block and see the error thrown.
Nith
Views
Replies
Total Likes
Hi Nith
Here is the link to download the file : https://workspaces.acrobat.com/?d=jqora4lVrY98N94rk*O*xw
Many thanks
Views
Replies
Total Likes
There is no subform named "flowedSubform"
The "CacheCV" is not a container object (subform). so you can't access the instanceManger of this object.
the below lines should work
while(_CarteEN.count >1)
{
_CarteEN.removeInstance(1);
}
Nith
Views
Replies
Total Likes
All I do is in the click
CP1218_SubformSet.instanceManager.removeInstance(true)
CP1218_SubformSet - being the subform name.
Views
Replies
Total Likes
Thanks Nith,
I have corrected the file but it doesn't work. I don't know what is wrong. I downloaded it.
https://workspaces.acrobat.com/?d=Ut7ZF7iLin7sbL3tAA791Q
Thanks by advance
Views
Replies
Total Likes