问题后的信息路径子字符串 [英] infopath substring after problem

查看:53
本文介绍了问题后的信息路径子字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在sharepoint中有多行文本列,我更改了 将更改添加到现有文本 是.

I have a multiple line text column in sharepoint, I change Append Changes to Existing Text to yes.

我希望该字段采用每个项目中每个附件的名称.因此,在InfoPath中,我在公式后使用了子字符串来取词附件后的名称:

I want this field to take the name of each attachment in each item. So, In InfoPath I used substring after formula to take the name that is after word Attachment :

附件不为空时

substring-after(substring-after(attachmentURL,"Attachments/"),"/")

substring-after(substring-after(attachmentURL, "Attachments/"), "/")

问题在于,仅在每次添加附件时,它才给我第一个附件名称,如下所示.

The problem is that it gives me the first attachment name only each time that I add an attachment as shown bellow.

我认为如果找到"Attachments/../",它将是最后一次出现. ;,它搜索另一个附件/../",因此每次返回第一个附件 名称.

I think that it take the last occurrence, if it finds "Attachments/../", It search for another "Attachments/../", so every time it returns the first attachment name.

因为此列保存如下网址:http://....../Attachmens/../Flowchart.png http://...../Attachments/../ e1.png

because this column save the url like this: http://....../Attachmens/../Flowchart.png http://...../Attachments/../e1.png

因此,每次发生最后一次出现(e1.png).我希望它每次都第一次出现,如何解决此问题?

So every time it takes the last occurrence (e1.png). I want it to take the first occurrence everytime, How can I solve this problem?

Se cond问题 附件它没有直接给我起名字.我必须关闭它,然后再次打开它,然后 它的名称将在文本中显示.因此,我必须再次单击提交"(这不切实际).

Second problem, when I add the attachment It doesn't give me it's name direct in the field. I have to close it and then open it again and then it's name will be available in the text. So, I have to click submit again(which is not practical).

第三个问题,每当我编辑列表中的内容时,字段中将提供最后一个附件名称,文本将一次又一次提交.解决办法是什么?

Third problem, Whenever I edit something in the list, The last attachment name will be available in the field text will be submitted again and again. What is the solution?

请我需要快速帮助

推荐答案

您好Zahra1234,

Hi Zahra1234,

我已经在SharePoint 2013中进行了测试,并且可以重现您的问题.  

I have done a test in my SharePoint 2013 and i can reproduce your issue.  

要显示一列列表项中附件的名称,可以在列表中创建一个名为Attachments的隐藏字段,并在事件接收器的帮助下,在添加,更新,删除附件时进行设置.因此,现在您有了附件名称(如果需要) 将它们添加为链接,为此,列的类型必须为多行文本框(富文本字段).

To show names of attachments from a list item in a column, you can create a hidden field in the list named Attachments, and with the help of event receiver, set it when attachment added, updated, deleted. So, now you have the attachment names (if needed add them as links, for this the column must be of type multi line text box (rich text field)).

最好的问候,

Lisa Chen

Lisa Chen


这篇关于问题后的信息路径子字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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