I'm trying to use a portal based on a child table to create a contents page against the parent record. The idea I want to follow is that the user can click either an up or down arrow to move an individual portal row up or down on the contents list. I have the buttons set up for this and a field to hold a number which I want to sort on - the lower the number, the higher in the contents the portal row will appear.
I am having an issue refreshing the portal once a script to change the sort number has run. The sort number between the row above and the row below are exchanged fine, but on finishing the script my portal does not resort, despite my trying refresh portal, refresh window, goto the child table layout, sort that, come back to the parent layout.....etc etc
Script is here and this should be working ok, I think FM is having a laugh at my expense!
The last two rows simply are not working as I would expect, so any help is appreciated here - chances are I missed something glaringly obvious.
Have a ScriptTrigger and use Ctrl/Cmd + arrow up and down to navigate in your portal.
Arrow down to navigate down with Script Step Go to Portal Row Next and opposite for up.