• 几个小知识


    1、js调用sharepoint自己上传

    var options = {
                                        url: finalUrl + "/_layouts/RteUploadDialog.aspx?LCID=2052&Dialog=UploadImage&UseDivDialog=true&Source=" + window.location.href + "&seed=0.5107540191200195&IsDlg=1&from=WordConvert",
                                        400,
                                        height: 300,
                                        title: "上传",
                                        dialogReturnValueCallback: onWordDialogClose
                                        };
                                        SP.UI.ModalDialog.showModalDialog(options);
                               }

    2、js查询列表

    var list = oWebSite.get_lists().getByTitle("审批人列表");
    fieldCollection = list.get_fields();
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml("<View><ViewFields>" +
    "<FieldRef Name=\"Title\" /><FieldRef Name=\"ApprovalSection\" /><FieldRef Name=\"ApproveAccount\" /></ViewFields></View>");
    listItemCollection = list.getItems(camlQuery);
    clientContext.load(fieldCollection);
    clientContext.load(listItemCollection);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onSearchListSucceeded), Function.createDelegate(this, this.onSearchListFailed));

    3、根据权限进行相应的操作

    <Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl3" runat="server"  AuthenticationRestrictions="AnonymousUsersOnly"><script type="text/javascript">
            document.getElementById("customlogon").style.display = "inline";
    </script></Sharepoint:SPSecurityTrimmedControl>

  • 相关阅读:
    对接天猫精灵X1 (https 的申请)
    第二个 SignalR,可以私聊的聊天室
    抽象工厂模式
    装饰者模式
    Signal 第一个简单Demo
    策略模式
    完美删除vector的内容与释放内存
    VC++的窗口句柄和窗口ID
    如何让模态对话画框达到非模态对话框 焦点无限制效果
    指针初始化为NULL的作用
  • 原文地址:https://www.cnblogs.com/Believeme/p/2556397.html
Copyright © 2020-2023  润新知