Pre-populated Form Input
The way we did this was as follows (I think as I'm not at my desk/with document)
Assume read the last record...
Create a page variable of type API with query to get the last record
Create variables referencing the page variable to get the individual fields
Change the form fields to point to these new variables
Change the formOutput variable from the generated $data.formoutput... to reference the individual fields so it can return them rather than the input fields....
Something like that.
Thank you for sharing your method.
I think it would do what I want, but I was looking for a simpler method. Something like reading the BDM object from the table, assign it to the Input structure, and just create the form starting from the input structure.