Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Import files count

Posted on 2002-07-29
5
189 Views
Last Modified: 2013-12-18
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
Comment
Question by:sampa
  • 4
5 Comments
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 7187388
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
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 7187394
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
 

Author Comment

by:sampa
ID: 7188238
No they are not attachments.They are imported using @Command([fileImport])
0
 
LVL 8

Accepted Solution

by:
Jean Marie Geeraerts earned 50 total points
ID: 7190085
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
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 7208320
Sorry, I couldn't be of more help to you with this one.
Thanks for the points anyway :-)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question