I have one view in which each document has attachment in rich text field. The attachment can be a Word file or Excel file or Model file. I want to set the value of field in the documents which are in other view to word if the attchment is of type word ,to Excel if attachment is of type Excel and so on. How can I come to know the type of the attachment present in the document?
Thanks in advance.
Subject: Want the extension of attachment in rich text field
@AttachmentNames gives you a text list with the names of all the attachments that you could scan for the extension.
a := @upper(@AttachmentNames(@True));
@if(@Contains(a;“.DOC”);“word”;@Contains(a;“.XLS”);“excel”;…)
Subject: RE: Want the extension of attachment in rich text field
Thanks for your reply. I will try to achieve the functionality by using the code given by you.But still there is one problem
There are lot of rich text fields which contain lot of attachment of different types.
I want the attachments present in one perticular field.
How can I chieve it?
Thanks in advance.
Subject: RE: Want the extension of attachment in rich text field
This exceedes my skill, sorry.I think it cannot be done at view level and you need to add some LS code to the form to check the attachment to the specific RTF and then store the result into a field in the document.