Started a new thread as progress has been made and I'm on to the next hurdle. I've received tremendous help from users here; their assistance has been both educational and helpful!
I have a layout with a portal (this is till my, now infamous, Gigs solution. The Gigs layout has a portal with gigs_PERFORMANCE which includes each song in a given Gig. gigs_Performances contains a unique field called PerformanceNo. To assign a singer to a given song in the gig, I have a Roster field in the portal record a script to assign singers to the song which uses a card with checkboxes. This is the thread we recently commented on.
The challenge is that when running the script on previously entered [portal] records, everything's just great. However, if I run the script on the most recently entered portal record, it doesn't find the record. For example, in the Gigs layout, clicking the scripted button on the 2nd portal line (Join 900=PerformanceNo 900) the correct record in the gigs_PERFORMANCES table is served up in the card. Notice I have (temporarily) added the fields populated by global variables as well as the actual record on the card for troubleshooting. The Roster field at the bottom of the card is what puts the initials in the Roster field.
After checking box(es),
However, when entering a new song in a gig (so the last record on the portal), the global variables are correct and the portal record does in fact exist. I know this because I have a second window open with a table view of the gigs_PERFORMANCES table and can see the record appear as I'm entering new lines in the portal on the Gigs layout. However, even though I see that record created, when I invoke the script, it doesn't find the record for me to assign singers. So when I click a checkbox in the card, I get the error message that "No records are present. To create a new record choose the New Record menu command."
I can't help but think this is a simple thing I'm missing somewhere, but I'm completely baffled.Here's my script: