July 13, 200817 yr [color:red]Hello, I am creating a simple picture browser and would like to be able to display the filename of the picture that I insert into a container field (as a reference). There is no obvious script step or function to do that. I'd love to get some help her, thanks 1M
July 13, 200817 yr No, it's not obvious. But GetAsText ( container field ) returns 3 lines of info (result Text). Here is a calculation which extracts the file name (target your container field where I put "Contain"). Let ( [ txt = GetAsText ( Contain ); path = GetValue ( txt; ValueCount (txt)); pat = PatternCount ( path; "/"); pos = Position ( path ; "/" ; 1 ; pat ) ]; Right ( path; Length (path) - pos) )
Create an account or sign in to comment