if( $.SmartForm.ResponseContext.ActivityCode == "Activity2" ) {
            // 添加一行子表空白行
            var controlManager = that.D150516Addthemerchants;//获取子表控件对象
            var controlManager1 = that.D150516shoppingList;
            controlManager1.ClearRows();//清除子表行
            var subObjectId = $.IGuid();  //创建行ID
            controlManager.AddRow( subObjectId, {
                "D150516Addthemerchants.names": "",
                "D150516Addthemerchants.SupplierCategory": "",
                "D150516Addthemerchants.Principal2": "",
                "D150516Addthemerchants.iphone": "",
                "D150516Addthemerchants.bankofdeposits": "",
                "D150516Addthemerchants.bankcards": "",
                "D150516Addthemerchants.address": "",
                "D150516Addthemerchants.site": "",
            })

前端在某个节点清除子表行和添加子表行

posted on 2022-05-09 15:35  天涯何  阅读(30)  评论(0编辑  收藏  举报