I am using a script to delete all related records in a portal called 'general'...
It only deletes the first row ... I think there is something wrong in the loop ....
Debugger shows the following .... cant make sense of it ...
Fixed it ... This is working perfectly !
If you're on the first portal row record, and you delete it, you're now on the next portal row, because that's now the first. Don't need to go to next portal row.
Actually, you're going to next record, not next portal row, so that would be an even bigger problem.
Go to Portal Row [ next ; exit after last ]
I am getttng a spining beach ball and the mac-command icon ... I think its in an endless loop
Since you are obviously trying to delete all child records related to the parent, why don't you just use GoToRelatedRecord > Result Options > Show Only Related Records > Match Current Record Only and then Delete All of the related records.
Go to Object [Object Name: "gerneral"]
Go to Portal Row [First[
Delete Portal Row (no dialog)
Go to Portal Row [next;exit after last]
Retrieving data ...