UI Action to update current record and go to next based on order

mmcbride1007
Tera Contributor

I'm trying to make a UI action that will update a record's status to pass/fail and then go to the next record in a list. We're looking for similar functionality to the up/down arrows you get when tabbing through rows in a list but we want to be able to update the record before it goes to the next item. I've tried using two functions that are attached to the OOB actions, gsftSubmit(true) and iterateList() but I haven't found a way to make either of those work. gsftSubmit() just submits the record, and we have no way yet to duplicate the dynamic parts of the iterateList() method. Has anyone found a way to do something like this?

1 ACCEPTED SOLUTION

What we ended up doing to solve this was we updated the record via a GlideAjax call and the value returned from the server was a string that was the URL of our next record, which we then loaded into the current frame.


View solution in original post

5 REPLIES 5

sach1
Tera Guru

This UI action will be a list button right ? and are there any specific record which you want to update in a list ?


Actually it will be a form action. From a record, we're clicking a form link action that will open up the first item on one of its related lists in a new window, then from there the Pass/Fail actions will go through each item on that related list, much like when you click into the first item on a list and use the arrows to go up and down. You're in the record, but the UI Action knows you're trying to loop through the items from a list...


What we ended up doing to solve this was we updated the record via a GlideAjax call and the value returned from the server was a string that was the URL of our next record, which we then loaded into the current frame.


Can you provide your solution?