« Return to the main article
This works fine, and now I have another dilemma. I want to scan my attachment list and only build image tags to display those attachments that are jpg's or gifs. I'm using this formula:
AttachList := @ReplaceSubstring(@AttachmentNames; " " ;"+" ); Currentview := @ReplaceSubstring(@Subset(@ViewTitle; 1);" ";"+"); AttSuffix := @LowerCase(@Right(@AttachmentNames;3));
@If(AttSuffix="gif" | AttSuffix="jpg"; "<img src=\"/" +@ReplaceSubstring(@Subset(@DbName; -1);"\\";"/") +"/ContentByCategory/" + @Text(@DocumentUniqueID ) + "/$File/" + AttachList + "\">";"")
My question: How do I just pull out only those attachment that are jpgs or gifs? i.e. if a doc contains a jpg and a word doc, for example.
thanks!
This works fine, and now I have another dilemma. I want to scan my attachment list and only build image tags to display those attachments that are jpg's or gifs. I'm using this formula:
AttachList := @ReplaceSubstring(@AttachmentNames; " " ;"+" ); Currentview := @ReplaceSubstring(@Subset(@ViewTitle; 1);" ";"+"); AttSuffix := @LowerCase(@Right(@AttachmentNames;3));
@If(AttSuffix="gif" | AttSuffix="jpg"; "<img src=\"/" +@ReplaceSubstring(@Subset(@DbName; -1);"\\";"/") +"/ContentByCategory/" + @Text(@DocumentUniqueID ) + "/$File/" + AttachList + "\">";"")
My question: How do I just pull out only those attachment that are jpgs or gifs? i.e. if a doc contains a jpg and a word doc, for example.
thanks!