Hello All,
I have a custom table where I have to update a field based on a variable. The variable value is calculated in OnAfterGetRecord trigger of the page.
I have to update the field value in the table based on this variable value. How can I achieve it? I came across one post which said to use CurrPage.SAVERECORD. I tried it but it doesn't work. It gives error "You cannot make any changes in the database until a transaction has been started."
Please suggest me a way to update the field value in the record based on calculated variable and see updated values on the page when the page is run.
Thank you in advance for your replies.
I have a custom table where I have to update a field based on a variable. The variable value is calculated in OnAfterGetRecord trigger of the page.
I have to update the field value in the table based on this variable value. How can I achieve it? I came across one post which said to use CurrPage.SAVERECORD. I tried it but it doesn't work. It gives error "You cannot make any changes in the database until a transaction has been started."
Please suggest me a way to update the field value in the record based on calculated variable and see updated values on the page when the page is run.
Thank you in advance for your replies.