i can't access the record's id in beforeSubmit/beforeLoad but I can in afterSubmit
c
Chandu
01/26/2020, 4:55 PM
If it is the brand new record, it is not yet saved to DB until after submit is triggered. That's why we will not have id in before Load/ submit. But if we open an existing record we will have it.
m
mg2017
01/26/2020, 6:40 PM
hey @Chandu - according to @battk it is still possible to obtain the record id via context in BeforeSubmit
b
battk
01/27/2020, 12:54 AM
Keep in mind i said you could get and modify the record in beforeSubmit. Not get the id.
m
mg2017
01/27/2020, 7:56 AM
Ah right. Thanks. That means we dont load the record - instead get a reference from the context which would be the oldRecord?