I am in a situaltion where we want people to be able to approve Purchase Invoice, on page 662 Approval Request Entries.
But it has a OnAfterGetCurrRecord trigger where it gets the record in the Table ID field with a RecRef, so you would need to have the Read permission for that record, Purchase Header in this instance.
But i dont want them to have read permission to Purchase Header, and i cant seem to get an indirect permission to work, because i am not able to add the permission property to a page extension.
So i dont know what to do in this situation, i dont see a solution atm.
The code from page 662
trigger OnAfterGetCurrRecord() var RecRef: RecordRef; begin ShowRecCommentsEnabled := RecRef.Get("Record ID to Approve"); end;