ibiubu Posted November 8, 2004 Posted November 8, 2004 Is there a way to have a script that would duplicate all the records in a current found set? So if I have 50 records in my database, perorm a find, now have 5 records in my found set, then I want to run a script that would duplicate just those 5 records in the found set. Larry
rdhaden Posted November 8, 2004 Posted November 8, 2004 Off the top of my head, this would do it: Go to Record/Request/Page [Last] Loop Duplicate Record/Request Omit Record Omit Record Exit Loop If [Get ( FoundCount ) = 0] End Loop
ibiubu Posted November 8, 2004 Author Posted November 8, 2004 Thanks. That seems to work. One last question. Is there a way to add one more step. After the records are duplicated, or during the duplication process, I would like to change the value of one single field in each record. I would like to do this by pasting the contents of the clipboard into the field of each duplicated record. I tried: Go to Record/Request/Page [Last] Loop Duplicate Record/Request Paste[select:Questions::recordID] Omit Record Omit Record Exit Loop If [Get ( FoundCount ) = 0] End Loop But that makes the whole script invalid...the found records did not even duplicate. Any thoughts? Larry
rdhaden Posted November 8, 2004 Posted November 8, 2004 Sounds like it should work, unless the record ID field is not on the current layout, the layout is not in the context of Questions, the field is not modifiable, the field is not enterable on that layout, or the field is not of the same data type (text, number, etc.) as the data you're pasting. If I had to guess, I'd bet that a field called recordID is auto-enter and does not allow user to modify.
Recommended Posts
This topic is 7323 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now