ows.js里面的ctx和itemTable到底有哪些参数?

在大家对SPS文档库页面中的文档上下文菜单进行定制的时候,几乎免不了和两个很常见的变量打交道:ctx、itemTable,通过它们的某些属性,就能够得到相关文档的很多信息,供开发人员使用。但是它们到底一共有哪些参数呢?呵呵,已经有几个朋友表示过郁闷了,希望下面的文字能够让大家不再郁闷。

ctx变量是一个名为ContextInfo的自定义类型,它的完整定义可以在ows.js的第10031行找到,如下:
function ContextInfo()
{
    this.listBaseType   = null;
    this.listTemplate   = null;
    this.listName       = null;
    this.listUrlDir     = null;
    this.HttpPath       = null;
    this.HttpRoot       = null;
    this.imagesPath     = null;
    this.PortalUrl      = null;
    this.isWebEditorPreview = null;
    this.rootFolderForDisplay = null;
    this.isPortalTemplate = null;
    this.isModerated = false; 
    this.recursiveView = false; 
    this.displayFormUrl = null;
    this.editFormUrl    = null;
    this.newFormUrl     = null;   
    this.ctxId          = null;
}

itemTable变量实际上就是一个Table类型的页面对象,但是它有一些额外自定义的属性,如下:
SourceUrl
COUId
FSObjType
DocIcon
FileType
HTMLType
FileDirRef
ServerUrl
ItemId
CTXName


至于这些属性的作用,大家应该都能够望名知意,就不用再额外解释了,呵呵。





本文转自 kaneb0y 51CTO博客,原文链接:http://blog.51cto.com/kaneboy/281314,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值