Separate the "STG" graphics from the real attachments in @AttachmentNames

This quick formula filters out all the associated Icon graphics and leaves you with just the "FilesNames".

I've been trying to use @AttachmentNames in a column to show all the attachments in a document. The problem is @AttachmentNames also shows the "STG-Graphic" associated with the Icon of the attached file. This quick formula filters out all the associated Icon graphics and leaves you with just the "FilesNames".
var_AttachNames := @AttachmentNames + "?#?";
var_STGNumbers := @Trim( @Middle( var_AttachNames ; "STG" ; "?#?" )  );
var_STGNames := @If ( var_STGNumbers != "" ; "STG" +  var_STGNumbers ; "" );
@Trim( @Replace(@AttachmentNames; var_STGNames; "" ) );
This was first published in August 2001

Dig deeper on Domino Resources

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close