我有两个数据模型,一个名为Requested_Allocations,另一个名为Approved_Allocations。用一个按钮将记录从一个数据模型移动到另一个数据模型
我想为显示Requested_Allocations记录的表的每一行添加一个“批准”按钮。当用户单击此按钮时,该记录将添加到Approved_Allocations中并从Requested_Allocations中删除。
我已经设置了两个数据模型,并且已将Requested_Allocations表中的'Approve'按钮添加到该表中。我想我需要添加一个OnClick事件到按钮,但我不确定究竟该做什么。任何指导都会很棒!