-
1. Re: Still don't seem to understand removeInstance correctly...
Steve L Walker Jan 3, 2011 4:29 PM (in response to Bill95722)Try
_subform.removeInstance(this.parent.index);
Steve
-
2. Re: Still don't seem to understand removeInstance correctly...
Jay S A Jan 4, 2011 1:07 AM (in response to Bill95722)Hi,
Take the count of the subform by using the following syntax
var StrCount = SubformPath.instanceManager.count
here SubformPath is the path of the repeating subform.
Subformpath.instanceManager.removeInstance(StrCount-1);
Try with this option it would delete the last added subform. hope you are looking for this.
Regards,
Jayakar
-
3. Re: Still don't seem to understand removeInstance correctly...
Bill95722 Jan 4, 2011 7:04 AM (in response to Bill95722)Thanks for the responses.
I have already tried (this.parent.index) with the same results, only (0) is removed.
My goal is to be able to delete any instance of the subform, not only the last added. I'm building n instances in a sequence (primary and secondary sort keys).
The user may save the form and come back to it later if incomplete, or perhaps use one form as the template for another version with much but not all of the information the same. Unneeded instances of the subform may be anywhere and need to be deleted in any sequence.
Ideas? Thanks!
-
4. Re: Still don't seem to understand removeInstance correctly...
Steve L Walker Jan 4, 2011 7:07 AM (in response to Bill95722)It would be easiest so see the form. I can take a look if possible. stwalker.adobe.@gmail.com.
Steve
-
5. Re: Still don't seem to understand removeInstance correctly...
Bill95722 Jan 4, 2011 7:17 AM (in response to Steve L Walker)Thanks Steve, I will send it along with some words of "how its supposed to work" but to double-
check does your email really have a dot before the @?
Thanks
-
6. Re: Still don't seem to understand removeInstance correctly...
Steve L Walker Jan 4, 2011 7:45 AM (in response to Bill95722)Sorry. Good catch. stwalker.adobe@gmail.com
-
7. Re: Still don't seem to understand removeInstance correctly...
Bill95722 Jan 4, 2011 1:39 PM (in response to Steve L Walker)Just checking that you received my form?
Thanks
Bill
530-878-1002
530-210-4840 cell
From: Steve L Walker <forums@adobe.com>
To: Bill Spahn <billspahn@ymail.com>
Cc:
Sent: Tuesday, January 4, 2011 7:45:56 AM
Subject: Still don't seem to understand removeInstance correctly...
Sorry. Good catch. mailto:stwalker.adobe@gmail.com
-
8. Re: Still don't seem to understand removeInstance correctly...
Bill95722 Jan 5, 2011 7:37 AM (in response to Bill95722)Ok, found the problem. I wan't properly qualifying the name of the Delete button. I had to add an additional "parent" to the name thus:
(this.parent.parent.index)
Just relying on ctl to give the fully qualified name was not sufficient.


