ron G Posted November 28, 2014 Posted November 28, 2014 I have (still) a Members database. There is a field in Members:: called Photo. Photo is a container field. I want to produce a report whereby I show just members who have a NotIsempty(Photo) find. But, in setting up the FIND, the Photo field is grayed out?! Huh? Is there a work around for this? (I know I could setup a boolean field "PhotoYesNo" and then Find on it.... but am I missing something native?) Thanks Ron
Lee Smith Posted November 29, 2014 Posted November 29, 2014 Are they referenced or inserted w/o reference?
Wim Decorte Posted November 29, 2014 Posted November 29, 2014 Typically when you have a container field like this you also store a textual reference to it with whatever properties you want to track (like size, file type, location,...). So I've never had the need to try and use a container field for a search. Given the nature of a container and the different types of data that can go in there I would not expect that to work. Find on the stored properties of the container will of course always work.
comment Posted November 29, 2014 Posted November 29, 2014 (I know I could setup a boolean field "PhotoYesNo" and then Find on it.... but am I missing something native?) No. Container fields (just like summary fields and global fields) cannot be searched. To find data in container fields, create a text or number field that describes or identifies the contents of the container field. Then perform a find on that field. 1
ron G Posted November 29, 2014 Author Posted November 29, 2014 Sounds like the consensus is that there is no 'native' way to include a 'isempty(::container)' so I will have to create a reference field and then find on that field. Thanks fo rthe input all.
Wim Decorte Posted November 29, 2014 Posted November 29, 2014 Well, there is a native way: loop through the records and check the field...
Lee Smith Posted November 30, 2014 Posted November 30, 2014 Am I missing the point? or did something change in 12 with the Remote containers. Why not create a calculation field = not isEmpty (YourContainerField) Then you can search for 0 depending to find the records without images. HTH Lee
Wim Decorte Posted November 30, 2014 Posted November 30, 2014 Why not create a calculation field = not isEmpty (YourContainerField) Seems a waste to create a calc field just to figure out if it is empty. There is a lot of info you can get from a container field so if you want to create a calc field, make it just = YourContainerField That way you can get all that info and can still search on it being empty. Two birds, one stone etc..
bruceR Posted November 30, 2014 Posted November 30, 2014 Making sure to declare the calc result as text, I presume.
comment Posted November 30, 2014 Posted November 30, 2014 See also: GetContainerAttribute() http://www.filemaker.com/help/13/fmp/en/html/func_ref1.31.15.html#1063605
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