问题描述
我想插入 2 个列表项,它们将作为父项和子项插入一个提交按钮, 检查下图
RelatedID 列应该获取父列的 ID,以便在获取记录时我可以识别两者来自同一个提交。
RelatedID 列逻辑为 “Campaign_ParentID”
我尝试了不同的方法,但我只能插入一条记录,如果可以正常记录两行,则 ID 不可用。 也尝试过类似的方法,但对两者都不起作用。
clientContext.executeQueryAsync(
Function.createDelegate(this,onQuerySucceeded),Function.createDelegate(this,onQueryFailed)
);
function onQuerySucceeded(){
alert (currentUser.get_id());
//add list item code goes here.. Pass current users id as currentUser.get_id()
}
function onQueryFailed(){
alert("Fail!" + args.get_message() + "\n" + args.get_stackTrace());
}
你能在这里帮助我或给我建议吗?提前致谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)