redballoon Posted December 6, 2012 Posted December 6, 2012 HI I have FMP 12 Advanced... One of the starter solutions is "content management" however when I change the storage system to "outside the database" the filename Placeholder field goes all odd and shows the path… size etc of the file… How can I just get the file name for this field …?
NickOE Posted December 7, 2012 Posted December 7, 2012 This will do it: Let( [ var1=GetValue( Documents::Doc_Container ; 1 ) ; var2=Length( var1 ) ] ; Right( var1 ; var2 - 7 ) )
Raybaudi Posted December 7, 2012 Posted December 7, 2012 How can I just get the file name for this field …? Hi you'll need to change the calculation for the field: File Name Placeholder to: Case( IsEmpty ( File | Container ) ; "File" ; ValueCount ( File | Container ) = 1 ; File | Container ; Let( v = GetValue ( File | Container ; ValueCount ( File | Container ) ) ; Middle ( v ; Position ( v ; "/" ; Length ( v ) ; - 1 ) + 1 ; Length ( v ) ) ) )
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now