I know we already solved this together. I'm just placing the solution here for others who might be searching for it.
I'll just briefly cover the initial steps in creating a GAF before I explain the ruby script.
1. Right click on the Solution Explorer or folder where you want to create the GAF.
2. Select Add > New Item > Guided Activity Floorplan
3. There will be a prompted to select the Business Object that the GAFwill be on.
Once created, the GAF will require configuration in the UI designer. The view in the GAF is changed by setting the value in ViewSwitchSelectedItem to the name of the view that should be focused on.
This value should be set by events attached to the "previous" & "next" buttons.
These events are created the same way as any other button events.
The ruby script for this demo is shown below. In this demo the views are named "Step", "Review" and "Confirmation". SAP Ruby supports code completion using CTRL + SPACE and a guide to front end scripting can be found here:
It is also possible to create these actions exclusively through DataOperations and Conditions for those who prefer or require a code free front end.
I hope this helps anybody who has the same issue,
Pierce