• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

Import files count

Is there any way to count the number of files imported into a richtext field.I have a employee form which should display the employee's photograph.I need to keep a check of the number of files imported and the type of files.
Is there any way to do this.
0
sampa
Asked:
sampa
  • 4
1 Solution
 
Jean Marie GeeraertsCommented:
Are the files attachments in the rich text field ?
Is it okay if the info is displayed in a view ?

If you answer yes to both of above questions here's a possible solution:

In a view insert the following two columns:
1. Display the number of attachments
Formula : @Attachments
2. Display the file types
Formula : @Unique(@RightBack(@AttachmentNames; "."));
Indicate the seperator to display multiple values in this column (if you use new line, don't forget to make sure that the view can display multiple lines per row). @Unique makes sure that multiple attachments with the same file extension only show up once as a file type. If you really want to see all file types, leave out this part of the formula, so it's just : @RightBack(@AttachmentNames; ".");

If this is not what you want, please comment and tell us what exactly it is you want to do.
0
 
Jean Marie GeeraertsCommented:
To count the attachments, just add a total to the column with the @Attachments formula and you will see in the total the total number of attachments.
0
 
sampaAuthor Commented:
No they are not attachments.They are imported using @Command([fileImport])
0
 
Jean Marie GeeraertsCommented:
Once they are imported the files become part of the rich text field and are no longer recognized as a seperate item in your notes document.
During import the files are translated to an embedded picture, regardless of the format they were originally in.

If you for example import an excel spreadsheet, this will automatically be converted to a table in your rich text field.

You can only check for the availability of attachments, so I'm afraid it can't be done.
0
 
Jean Marie GeeraertsCommented:
Sorry, I couldn't be of more help to you with this one.
Thanks for the points anyway :-)
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now