获取列表模板的字段名称 [英] Get field name for List Template

查看:62
本文介绍了获取列表模板的字段名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用一个列表模板,该模板修改列表的视图以相对于标准表布局水平定位.  而且通过在列表的jslink调用的脚本中使用ctx.Templates.Fields,我获得了一些成功.我遇到了麻烦 查找字段的名称.该列表将参数传递给另一个列表,因此我在名为选择"的列中获得了SharePoint的记录选择器"字段.

I have been playing with a list template that modifies the list's view to orient horizontally vs the standard table layout.  And I've had some success by using a ctx.Templates.Fields in a script called from the list's jslink.  I am having a trouble finding a field's name.  This list is passing a parameter off to another list and so I get SharePoint's "record selector" field in a column named "Select".

该字段不是我的字段,因此我无法在列表列中查找其名称.   aspx页面定义中也没有提及.  

This field is not mine so I can't look it up its name in the list columns.  It's not mentioned in the aspx page definition either.   What is it's name so I can format the html?

推荐答案

EasyCom-Craig Fox,

我们可以从编辑列"的URL中找到字段的内部名称此字段的页面.

打开列表>列表设置>单击该字段,检查编辑列"页面的URL.

例如,创建者"的编辑列"页面的网址字段是

For example, the URL of the Edit Column page for the "Created By" field is

因此,"Created By"(创建者)字段的内部名称是"Author"(作者)

最好的问候,

Linda Zhang


这篇关于获取列表模板的字段名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆