The Duplicate Record/Request step works on the current record...which is the record on the table the layout is based. Portals are windows into another table, showing related records.
In layout mode, give the portal an object name (using the Object Info palette). For example, "LaborPortal".
Set the Hours field as a text field with an auto-enter option. Use "" (that's 2 double quotes) as the text to enter.
You script will do something like this:
You will need some way to get to the desired portal row. Which will depend a lot on how you have the portal sorted (if at all).You could also have the person enter the data in the related record before going back to the original layout...it's up to you.
- Use Go to Related Records to go to the record from the Table Occurrence that the portal is based on.
- Duplicate the record.
- Go back to the original layout.
- Use Go to Object to go to the portal.