VirtualBob Posted March 8, 2022 Posted March 8, 2022 I was looking for simple lightbox layout for images. I'm using FMP 15 and the only example I could find was from FM7. I got most of the script imported set up but it stalled on FoundSetValues("ImageData::ImageID") and says the function doesn't exist. It works if I open the original converted file but not if I import it into my current image database. Is there a quick replacement for this? The script is below and link to the lightbox file further down. Set Field [ Lightbox::gSetValues; FoundSetValues("ImageData::ImageID") ] Set Variable [ $SetSize; Value:ValueCount(Lightbox::gSetValues) / 7 ] Go to Layout [ “Lightbox” (Lightbox) ] Show All Records Loop Exit Loop If [ Get(TotalRecordCount) ≥ $SetSize ] New Record/Request End Loop Go to Record/Request/Page [ First ] https://fmforums.com/applications/core/interface/file/attachment.php?id=9576
comment Posted March 9, 2022 Posted March 9, 2022 7 hours ago, VirtualBob said: it stalled on FoundSetValues("ImageData::ImageID") and says the function doesn't exist. FoundSetValues() is a custom function. If you have the Advanced version, you can copy/paste or import it into your file. 7 hours ago, VirtualBob said: Is there a quick replacement for this? Yes, but ... are you really using version 12?
VirtualBob Posted March 9, 2022 Author Posted March 9, 2022 24 minutes ago, comment said: Yes, but ... are you really using version 12? Apologies - I'm on version 15 (I used 12 for years and its wired into my brain :-) 24 minutes ago, comment said: FoundSetValues() is a custom function. If you have the Advanced version, you can copy/paste or import it into your file. I don't use custom functions, although I suspected it might be one but its not referenced elsewhere that I could see, but as it worked in the converted (v7>v15) file I thought it would import OK. But when I import it that functions string gets commented out and if I un-comment it it says "this function cannot be found". I could be missing some other background connection so I thought I'd post here.
comment Posted March 9, 2022 Posted March 9, 2022 4 minutes ago, VirtualBob said: its not referenced elsewhere that I could see If you don't have the Advanced version, then you cannot manage (create, edit, import) custom functions. You can only use custom functions installed by someone else. In your case you could define a summary field in the ImageData table as List of [ImageID]. Then make the script set the global field to this summary field. -- P.S. Please update your profile so that we know what you can use.
Recommended Posts
This topic is 1063 days old. Please don't post here. Open a new topic instead.
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