When I run this as a script trigger (OnRecordLoad) I often get a "user is modifying this record" type of error. I had thought that Get(RecordOpenState) = 0 meant the record was committed and saved.
Commit Records/Requests [ Skip data entry validation ; With dialog: Off ; Force Commit ]
If [ Get(RecordOpenState) = 0 ]
Set Variable [ $SetupData ; Value: TextStyleAdd("Course: ";Bold) & COURSES::CourseName...
Set Field [ COURSES::CourseSummary ; "Updated: " & Get(CurrentTimestamp) & "¶-----¶" & $SetupData ]
FMHelp says that 0 is for a closed (committed) record. Is there a different value for 0?
Puzzled! or maybe just missing something obvious.