October 19, 201015 yr Newbies My apologies if this topic has previously been discussed but I wasn't able to find a thread on this specific issue. I'm trying to script the import of a found set of records from one table to another within the same file. Unlike importing between tables of different files, the current import copies over all records in the table despite there being a window for that table with a found set. I've scripted this numerous times between files without a hitch (and in various versions). Is there an additional step that needs to be taken when the import takes place within a single file? ...or is importing a found set only supported between different files? Thanks for your help.
October 19, 201015 yr Author Newbies Sorry for wasting space here... In verbalizing the problem to a coworker it dawned on me that it might be an active window issue. Sure enough, when I added a step to make the found set window active (versus the destination table window) the import performed correctly. The need to do so didn't initially occur to me because I've typically performed imports between different files, each with only one window open, so specifying the active window was never necessary. Hopefully my rambling here will serve as a help for someone else in a similar position :)
October 20, 201015 yr the current import copies over all records in the table despite there being a window for that table with a found set. Is this the same window in which the script runs? If yes, then make sure the layout with the found set belongs to the same TO that is used in the import.
October 20, 201015 yr Author Newbies Yes, it's the same TO. The problem was simply that I wasn't making it the active window during the import script step. (see my comment above)
Create an account or sign in to comment