Notifications
Announcements
No record found.
I want to fetch some columns from the selected row and insert it into another tables on action click . I have added one action on list page.
*This post is locked for comments
You can use SETSELECTIONFILTER to get selected record and then do the insert
docs.microsoft.com/.../setselectionfilter-function
If only select one raw, define a variable: l_anotherTable link to anther table
Under <XX> - OnAction()
l_anotherTable.RESET;
l_anotherTable.INIT;
CLEAR(l_anotherTable);
l_anotherTable.FIELD := Rec.FIELD;
...
l_anotherTable.INSERT(TRUE);
IF SECTECT MORE THAN ONE LINE, we need to define a variable link to currenct page source table: l_currenctTable
l_currenctTable.RESET;
CurrPage.SETSELECTIONFILTER(l_currenctTable);
if l_currenctTable.FINDFIRST THEN
REPEAT
l_anotherTable.FIELD := l_currenctTable.FIELD;
UNTIL l_currenctTable.NEXT = 0;
And what did you tried so far?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HoangNam 7