Hello community,
I have created a custom action button ("Post WHT") on a custom page ("WHT Transaction"). Now I want that whenever the action is executed all the values currently present on the custom page should be appended to the payment journal new line. Below pictures will clear this more. In the first image, the custom action and custom page is shown and in the second image payment journal lines are shown. Now whenever I execute the action, the values from my custom page should be appended to the new line of payment journal. I tried posting this but I am getting primary key error in shown in third image. There is no primary key used in the custom table or page. Kindly help.
It worked for me. Thanks to both of you Mohana and Pankaj. Your efforts are highly appreciated specially Pankaj. Thank you once again.
You have to use Rec_payment_journal .Insert and not Modify.
you need to user debugger that will help you more of share your full code and error detail
It is done. Thank you. but I'm getting the error below. Although I have inspected the payment journal page and the first line no. is 10000 so the second should be 20000 but still I'm getting error.
use your table name befor the function
Rec_payment_journal
Show your code.
But Pankaj GetNewLineNo is not a built-in method. So I am getting an error when using this.
Use the below function that will help to increase the line number.
Hi Mohana, GetNewLineNo is a user-defined method maybe. Can you give me the source code?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148