具有自定义动作的自定义表单 [英] Custom Form with custom Actions

查看:166
本文介绍了具有自定义动作的自定义表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在努力寻找一种可以让我解决的方案:

I'm struggling with getting a solution that will allow me:

1.合并3个托管元数据1个数字列(文档ID)进入完整的文档号列"

1. Merge 3 Managed Metadata Column & 1 number column (doc ID) into a full Doc Number Column

(格式:CC + LT + FFF + DocID)

(format:CC+LT+FFF+DocID)

2.自动增加文档ID"列-但诀窍在于,文档ID"列应仅对具有相同LT& amp; FFF代码(抄送代码将保持不变)

2. Autoincrement Doc ID column - but the trick is that doc id column should only increment for items having the same LT & FFF code (cc code will stay the same)

a.我想到的第一个解决方案-如果是LT& FFF将+1与最新的文档ID匹配

a. The first solution that came to my mind - if LT & FFF match +1 to latest doc id

b.第二个-在包含LT&的文档编号列中搜索最大编号. FFF

b. The second one - search for greatest number in doc number column that contains LT & FFF

我只能访问SP Designer,对我来说自定义代码的使用受到限制,并且由于明显的原因,我无法为此使用InfoPath.

I have only access to SP Designer, custom code usage is limited for me, and for obvious reasons, I'm unable to use InfoPath for this.

有任何想法吗?

推荐答案

您好Bartosz-我将结合使用计算列,Designer工作流程和CAML查询.第一部分是简单的计算列,就像您布置的一样.

Hi Bartosz- I would use a combination of calculated column, Designer workflow and CAML query. The first part is an easy calculated column, just like you laid out.

第二部分有些困难.您必须使用if/else语句来确定该值,如果是,则向其添加2.

The second part is a little difficult. You'll have to use an if/else statement to determine that, and if so, add 2 to it.

最后一部分确实很困难.您可以执行此操作的唯一方法是查询.下面是一个示例:

The last part is real difficult. The only way you can do that is with a query. An example is below:

https://stackoverflow.com/questions/516073/max-query-using -caml/1265240#1265240

您可能需要在工作流程中利用变量来完成某些工作.

You may need to utilize variables in your workflow to make some of this work.


这篇关于具有自定义动作的自定义表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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