![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
I have tried the suggested method and other variations (with and without the "/" before pic) without success. I have even tried using a dialog box to check that the $$pic string is correct before the Go to Field step. I can combine path and field value in the Insert Picture (as suggested by Ursus) but just using a global variable $$pic does not seem to work. Also mixing $$pic with a field value gives an error message in Scriptmaker. Since I can obtain the desired output with IF ELSE statements I will go that way for now. Thanks for the suggestions but I dont have time to experiment more. Michael Paine Michael Paine wrote: Thanks Howard. I will try it again. Maybe the Help text is out of date? Michael Paine Howard Schlossberg wrote: Michael Paine wrote: The script below did not work as I expected (one problem may be that the global variable $$pic is not recognised within the insert picture statement (it automatically puts quotes around it). When I checked Help it came up with the limitation I mentioned before Enter Browse Mode Go to Layout [ “fancy_test” (Vehicles) ] Set Variable [ $$pic; Value:"image ics/" & Vehicles::head_drv_colour ]Go to Field [ Vehicles::head_drv_pic ] Insert Picture [ “$$pic” ] [ Reference ] I just tried the equivalent of this and it worked: Set Variable [ $$pic; Value:"image:/pics/" & Vehicles::head_drv_colour ] Go to Field [ Vehicles::head_drv_pic ] Insert Picture [ “$$pic” ] Note the extra slash after image: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg (818) 883-2846 FM Pro Solutions Los Angeles, California FileMaker 7 Certified Developer Associate Member, FileMaker Solutions Alliance |
#12
| |||
| |||
|
|
In the filemaker help it is clearly stated that the new script variables can't be used for path statements. Search on using variables, then clicking on the same title produces a page with basic variable explanation. Scroll down and it says: Notes Variables are only supported in script steps that use stored file paths. Variables are not supported in file paths that are stored in container fields. Variables are not supported in file references. Ursus "Michael Paine" <mpaine (AT) tpgi (DOT) com.au> schreef in bericht news:436e8487$0$16565$afc38c87 (AT) news (DOT) optusnet.com.au... I have tried the suggested method and other variations (with and without the "/" before pic) without success. I have even tried using a dialog box to check that the $$pic string is correct before the Go to Field step. I can combine path and field value in the Insert Picture (as suggested by Ursus) but just using a global variable $$pic does not seem to work. Also mixing $$pic with a field value gives an error message in Scriptmaker. Since I can obtain the desired output with IF ELSE statements I will go that way for now. Thanks for the suggestions but I dont have time to experiment more. Michael Paine Michael Paine wrote: Thanks Howard. I will try it again. Maybe the Help text is out of date? Michael Paine Howard Schlossberg wrote: Michael Paine wrote: The script below did not work as I expected (one problem may be that the global variable $$pic is not recognised within the insert picture statement (it automatically puts quotes around it). When I checked Help it came up with the limitation I mentioned before Enter Browse Mode Go to Layout [ “fancy_test” (Vehicles) ] Set Variable [ $$pic; Value:"image ics/" & Vehicles::head_drv_colour ]Go to Field [ Vehicles::head_drv_pic ] Insert Picture [ “$$pic” ] [ Reference ] I just tried the equivalent of this and it worked: Set Variable [ $$pic; Value:"image:/pics/" & Vehicles::head_drv_colour ] Go to Field [ Vehicles::head_drv_pic ] Insert Picture [ “$$pic” ] Note the extra slash after image: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg (818) 883-2846 FM Pro Solutions Los Angeles, California FileMaker 7 Certified Developer Associate Member, FileMaker Solutions Alliance |
#13
| |||
| |||
|
|
In the filemaker help it is clearly stated that the new script variables can't be used for path statements. Search on using variables, then clicking on the same title produces a page with basic variable explanation. Scroll down and it says: Notes Variables are only supported in script steps that use stored file paths. Variables are not supported in file paths that are stored in container fields. Variables are not supported in file references. |
#14
| |||
| |||
|
|
I have tried the suggested method and other variations (with and without the "/" before pic) without success. I have even tried using a dialog box to check that the $$pic string is correct before the Go to Field step. I can combine path and field value in the Insert Picture (as suggested by Ursus) but just using a global variable $$pic does not seem to work. Also mixing $$pic with a field value gives an error message in Scriptmaker. Since I can obtain the desired output with IF ELSE statements I will go that way for now. Thanks for the suggestions but I dont have time to experiment more. Michael Paine Michael Paine wrote: Thanks Howard. I will try it again. Maybe the Help text is out of date? Michael Paine Howard Schlossberg wrote: Michael Paine wrote: The script below did not work as I expected (one problem may be that the global variable $$pic is not recognised within the insert picture statement (it automatically puts quotes around it). When I checked Help it came up with the limitation I mentioned before Enter Browse Mode Go to Layout [ “fancy_test” (Vehicles) ] Set Variable [ $$pic; Value:"image ics/" & Vehicles::head_drv_colour ]Go to Field [ Vehicles::head_drv_pic ] Insert Picture [ “$$pic” ] [ Reference ] I just tried the equivalent of this and it worked: Set Variable [ $$pic; Value:"image:/pics/" & Vehicles::head_drv_colour ] Go to Field [ Vehicles::head_drv_pic ] Insert Picture [ “$$pic” ] Note the extra slash after image: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg (818) 883-2846 FM Pro Solutions Los Angeles, California FileMaker 7 Certified Developer Associate Member, FileMaker Solutions Alliance |
#15
| |||
| |||
|
#16
| |||
| |||
|
|
Howard: I was looking at the info in this link. I am workinig on something similar. However, the "variables" is all new to me. I tried to emulate what you did above. I'm not sure I understand what a variable is. Is it a global field?? When I tried your example above it kept telling me "table not found" in fron of the $$pic. Could you explain a little more to someone new to this. Thanks so much jc |
#17
| |||
| |||
|
#18
| |||
| |||
|
#19
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |