【发布时间】:2018-12-03 22:04:31
【问题描述】:
我用 Genexus 15 中的数据填充了 SDT,需要将其保存在事务中。 SDT 有一个包含标题信息和详细项目的两级结构。
我尝试使用此 DataProvider 但出现问题,因为我在尝试执行它时遇到外键违规错误:
规则:
parm(in: &NewInvoice); // SDT variable
来源:
DPInvoice
{
StampId = &NewInvoice.StampId
InvoiceNumber = &NewInvoice.InvoiceNumber
CustomerId = &NewInvoice.CustomerId
Concept
{
ProductId = &NewInvoice.Concept.CurrentItem.ProductId
ConceptQty = &NewInvoice.Concept.CurrentItem.ConceptQty
}
}
Webpanel 中触发 DP 的事件:
&Invoice = DPInvoice(&NewInvoice)
&Invoice.Insert()
commit
This is the transaction structure
请帮帮我!
【问题讨论】:
标签: dataprovider genexus bc