I was checking out a few threads, and
this one was the closest, but it's not quite what I'm trying to do. It appears to be addressing how to set a DCT field from .ipl, and I'm looking to update an array value in the .js.
Here's the procedure:
-They click the browse button and an .ipl file opens a child window (See attachment for .ipl code)
-They 'browse' and choose a file to upload.
-The file is uploaded to a temporary directory and they close child
-When the form is saved, the temp. file is moved to a permanent location.
What I want to track in the array is the xpath for the "attach file" elements that have been updated. This way when the form is saved, I can just go through the array and pull out the xpath value for all the fields that have been updated and need to have their temp files moved.
So, what I have been researching is how to have a child window send information back to the parent window to update a global variable (array).
Should I just update a hidden field on the DCT and then recursively scan all those fields when they save the form to pull values in? That seems kind of sloppy and a bit of a resource waste to me, though.
Is this even possible to do?