| ?????bm??2011-12-28 14:38:36by ?? 在BM中,通过如下标签 <a:form column="2" title="SYS_PROMPT.QUERY_TITLE" width="600"> <cascade-operations> 可设置层级更新,例如: <?xml version="1.0" encoding="UTF-8"?> <bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" extend="testcase.HR.DEPT" extendMode="override"> <bm:cascade-operations> <bm:cascade-operation inputPath="EMPLOYEE-LIST" model="testcase.HR.EMP" operations="insert,update,delete"/> </bm:cascade-operations> </bm:model>
<dept-list> <dept _status="insert" dname="new dept 1"> <EMPLOYEE-LIST> <emp _status="insert" ename="new employee 1" /> <emp _status="insert" ename="new employee 2" /> </EMPLOYEE-LIST> </dept-list> 如果要对多个detail表进行更新,那么在cascade-operations下面设置多条cascade-operation标记就可以了,每条对应一个detail表。 Demo Attachments |
Comments
1 Responses to the article