Hello, you should put some data into the new record i.e the date, an ID etc., and THEN commit the record, you'll see the recent created record on top of your portal.
Of course via script.
Go to the last portal row
Go to the field
Insert some data
Commit the record
Go to the first portal row
Go to the field
As I use FM in sànish I don't know the exact english sintaxis of the script.
Much as I admire the option to 'Create new records', I find so many problems with it (such as the one you have) that I long since stopped users creating new records via a portal. I also read on a few occasions that it was 'bad practice' though I couldn't really see why.
I always put a button at the top of the portal for 'Create new Contact History'. Then my standard practice would be:
- Show a Custom Dialogue asking for connfirmation that they really did want to create a new record. (Something you can't do as easily if they accidentally click on the 'New Record' portal row.)
- If they choose to proceed, capture the parent KeyField as a variable, $KeyField
- Go to the portal's Base Table layout
- Create a new record
- Set the child KeyField from the variable.
- Automatically add any other data you want (such as the Account Name)
- Leave the tab in the next field you want the user to enter data into.
If the details to be added to the report are small then you can make the complete data entry be the dialogue box itself, and seem to never leave the Contact Layout. Just present the Contact History Report field you want as part of the dialogue box and they can fill it in directly there.