具有自定义新表单的 Sharepoint 自定义列表无法添加到文件夹

发布于 2024-07-19 06:58:41 字数 292 浏览 8 评论 0原文

我有一个自定义列表,其中包含用户所需的自定义编辑和新表单。

然后,我尝试将新项目添加到文件夹(文件夹具有年份文本,例如 2010 年),当我单击自定义新表单上的“保存”时,它会正确保存,但始终保存到列表的根目录。

我想知道是否有修复或解决此问题的方法,因为它非常烦人。

或者,任何人都可以推荐一种实现字段的方法,该字段将自动计算自创建日期起 1 年的时间,这可能是一种可能的替代方案,但必须考虑以下因素。

当前年份为十月至九月。

感谢您的帮助,这让我疯狂地寻找解决方案。

I have a custom list which has customized edit and new forms which were required by the user.

I then tried to add a new item to a folder (folders have the text of the year e.g. 2010) and when I click save on the customized new form it saves correctly but always to the root of the list.

I am wondering if there is a fix or a work around for this as it is highly annoying.

Alternatively can anyone recommend a way to implement a field which will auto calculate + 1 year from creation date, which might be a possible alternative however it will have to take into account the following.

Where the current year runs october to september.

Thanks for any help this has been driving me mad trying to find a solution.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

煮茶煮酒煮时光 2024-07-26 06:58:41

如果不知道自定义表单基于什么,则无法提供太多帮助,但对于新表单,要保存的文件夹通常会显示在查询字符串中。

Can't help much without knowing what you based the custom form on, but for a new form the folder to save to usually shows up in the query string.

帝王念 2024-07-26 06:58:41

该表单是一个基本的自定义表单列表,然后我只是修改了部分内容以删除不需要或需要只读的字段。

原始表单运行良好,允许将项目添加到列表子文件夹中。

新的没有额外的代码,并且使用标准共享点 DataFormWebPart 来创建自定义列表表单,因此我没有后端代码来插入项目等,尽管我可能不得不诉诸于此......我会吗?

The form is a basic custom form list which I have then just modified parts to remove fields that are not required or need to be read only.

The original form worked perfectly and allowed items to be added to the list subfolders.

The new one has no additional code and is using the standard sharepoint DataFormWebPart to create the custom list form and so I have no back end code to insert the item etc, although I may have to resort to this...will I?

℉服软 2024-07-26 06:58:41

修改标准表格时需要小心。 我建议您返回标准表格的副本并验证是否正确保存。 删除“不需要的”字段,直到其停止工作。

有时,通过这种自定义,您需要使用 css 而不是服务器端更改来修改表单,以便在隐藏组件后功能仍然存在。

You need to be careful when modifying standard forms. I recommend you go back to a copy of the standard form and verify that that saves correctly. Remove the "unneeded" fields until it stops working.

Sometimes with this sort of customisation you need to use css rather than server side changes to modify the form so that the functionality remains in place after the component is hidden.

彼岸花ソ最美的依靠 2024-07-26 06:58:41

删除字段绝对不是问题,因为我创建了原始字段的新副本,然后将其更改为自定义字段,保存了它并尝试添加项目。

它直接进入了根部。

我尝试了原始表单,它正确保存到子文件夹中。

It is definitely not an issue with the removal of fields as I created a new copy of the original and then changed it to a custom field saved it and tried to add an item.

It went straight into the root.

I tried the original form and it saves to the sub folder correctly.

罗罗贝儿 2024-07-26 06:58:41

好吧,目前我唯一能解决的问题是(我目前正在与 MS 讨论)。

http://blogs.msdn.com/sharepointdesigner/archive/2007/06/13/using-javascript-to-manipulate-a-list-form-field.aspx

我使用了方法 getTagFromIdentifierAndTitle(tagName,identifier , title)

这返回了我想要的元素,然后我基本上转到了 row dom 节点并将其删除。

我希望有一个更好的方法,但至少目前这是一个解决方法。

Okay only work around I have for this at moment (I am currently in discussion with MS) is this.

http://blogs.msdn.com/sharepointdesigner/archive/2007/06/13/using-javascript-to-manipulate-a-list-form-field.aspx

I used the method getTagFromIdentifierAndTitle(tagName, identifier, title)

This returned the element I was after and then I basically went to the row dom node and deleted it.

I am hoping to have a nicer method but at least it is a work around for now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文