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; "" ) );

Dig Deeper on Domino Resources

SearchWindowsServer
Search400
  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury

SearchDataCenter
SearchContentManagement
Close