BilalAli Posted February 23, 2019 Posted February 23, 2019 Dear Sir, i have 12 Images Random forms are irregular and i want to enter values (numbers) depending of these number how can i change these images color such example: if value no1 = 10 change color image no1 to red and if the number is 5 change the color to green ( 3 color for each value)
doughemi Posted February 23, 2019 Posted February 23, 2019 There is no way to change the color of an image within FileMaker. You will have to store each color of each image in a table. One way to do this is in a repeating field. See attached example. BilalAli.fmp12
BilalAli Posted February 23, 2019 Author Posted February 23, 2019 Dear doughemi thank you again attach my idea 1) i want to input 12 data numbers 2) for each number we have 3 pictures different colors as you say 3) after input data numbers the system appear one of three pictures (condition) if number >5 appear green picture if number > 10 appear red picture if number > 0 appear blue at final we input 12 number and appeared 12 picture Regards Bilal Ali BilalAli.fmp12
BilalAli Posted February 23, 2019 Author Posted February 23, 2019 not like this i attach the sample with notes thank you Map.fmp12
comment Posted February 23, 2019 Posted February 23, 2019 What do these 12 fields represent? It seems you should have 12 records in a related table instead. That would mean - among other things - one calculation instead of 12.
BilalAli Posted February 23, 2019 Author Posted February 23, 2019 you know lego? this is like a game the big picture split for 12 piece and i fill number each piece color appear depending of value that entered such as the last attach
comment Posted February 23, 2019 Posted February 23, 2019 (edited) 35 minutes ago, BilalAli said: he big picture split for 12 piece That describes a one-to-many structure, as I suggested earlier: one game has many (12 in your example) pieces - so that would require one record in the Games table and 12 related records in the Pieces table. The missing piece 😊 for me is how many images in total would you have for this. Your file shows 3 different pieces x 3 colors = 9 images. If you have 12 pieces, you should have 12 x 3 = 36 different images. - Another thing: there is a way to conditionally format images; if the images are in the SVG format and conform to Filemaker's standard for icon images. Such icons can be used in buttons and in button bars, and you can apply conditional formatting to change their background and/or foreground color. In such case you would need only 12 images. -- Finally, if you plan to show the pieces assembled together into a single image, then that's an entirely different matter. For this, I would suggest using a web viewer, and change the color of the pieces by modifying the HTML code (somewhat similar to: https://fmforums.com/topic/103625-drawing-in-web-viewer/?do=findComment&comment=470194). Edited February 23, 2019 by comment
BilalAli Posted February 23, 2019 Author Posted February 23, 2019 please check my example, i think you understand the idea Map.fmp12
comment Posted February 23, 2019 Posted February 23, 2019 It's the same file you posted earlier, isn't it?
BilalAli Posted February 23, 2019 Author Posted February 23, 2019 yes i created everything almost but i don't know how they can work as i want
comment Posted February 24, 2019 Posted February 24, 2019 I have seen this file before my fist post in this thread. We're not making progress here.
BilalAli Posted February 24, 2019 Author Posted February 24, 2019 thank you doughemi for your assistance, but i'm still until now without solve the project, can you help me to as attached file Regards
Recommended Posts
This topic is 2155 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